Class OpenApiUI
java.lang.Object
org.apache.juneau.marshall.swap.spi.ObjectSwap<OpenApi,Div>
org.apache.juneau.bean.openapi3.ui.OpenApiUI
Generates an OpenAPI-UI interface from an OpenAPI document.
See Also:
-
Field Summary
Fields inherited from class org.apache.juneau.marshall.swap.spi.ObjectSwap
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis UI applies to HTML requests only.swap(MarshallingSession marshallingSession, OpenApi openApi) If this transform is to be used to serialize non-serializable objects, it must implement this method.Methods inherited from class org.apache.juneau.marshall.swap.spi.ObjectSwap
forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
-
Constructor Details
-
OpenApiUI
public OpenApiUI()
-
-
Method Details
-
forMediaTypes
This UI applies to HTML requests only.- Overrides:
forMediaTypesin classObjectSwap<OpenApi,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<OpenApi,Div> - Parameters:
marshallingSession- The bean session to use to get the class meta. This is always going to be the same bean context that created this swap.openApi- The object to be transformed.- Returns:
- The transformed object.
- Throws:
Exception- If a problem occurred trying to convert the output.
-
-