Class SwaggerUI
Generates a Swagger-UI interface from a Swagger document.
See Also:
-
Field Summary
Fields inherited from class org.apache.juneau.swap.ObjectSwap
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis UI applies to HTML requests only.swap(BeanSession beanSession, Swagger swagger) If this transform is to be used to serialize non-serializable objects, it must implement this method.Methods inherited from class org.apache.juneau.swap.ObjectSwap
forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
-
Constructor Details
-
SwaggerUI
public SwaggerUI()
-
-
Method Details
-
forMediaTypes
This UI applies to HTML requests only.- Overrides:
forMediaTypesin classObjectSwap<Swagger,Div> - Returns:
- The media types that this swap is applicable to, or
null if it's applicable for all media types.
-
swap
Description copied from class:ObjectSwapIf this transform is to be used to serialize non-serializable objects, it must implement this method.The object must be converted into one of the following serializable types:
-
String -
Number -
Boolean -
Collectioncontaining anything on this list. -
Mapcontaining anything on this list. - A java bean with properties of anything on this list.
- An array of anything on this list.
- Overrides:
swapin classObjectSwap<Swagger,Div> - Parameters:
beanSession- The bean session to use to get the class meta. This is always going to be the same bean context that created this swap.swagger- The object to be transformed.- Returns:
- The transformed object.
- Throws:
Exception- If a problem occurred trying to convert the output.
-
-