Package org.apache.juneau.rest.swagger
Class BasicSwaggerProvider
java.lang.Object
org.apache.juneau.rest.swagger.BasicSwaggerProvider
- All Implemented Interfaces:
SwaggerProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.juneau.rest.swagger.SwaggerProvider
SwaggerProvider.Builder, SwaggerProvider.Void
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetSwagger
(RestContext context, Locale locale) Returns the Swagger associated with the specified context of aRest
-annotated class.
-
Constructor Details
-
BasicSwaggerProvider
Constructor.- Parameters:
beanStore
- The bean store containing injectable beans for this logger.
-
BasicSwaggerProvider
Constructor.- Parameters:
builder
- The builder containing the settings for this Swagger provider.
-
-
Method Details
-
getSwagger
Returns the Swagger associated with the specified context of aRest
-annotated class.Subclasses can override this to provide their own method for generating Swagger.
- Specified by:
getSwagger
in interfaceSwaggerProvider
- Parameters:
context
- The context of theRest
-annotated class.locale
- The request locale.- Returns:
- A new
Swagger
object. - Throws:
Exception
- If an error occurred producing the Swagger.
-