Class SwaggerUI
Generates a Swagger-UI interface from a Swagger document.
 
See Also:
- 
Field SummaryFields inherited from class org.apache.juneau.swap.ObjectSwapNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ObjectSwapforMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
- 
Constructor Details- 
SwaggerUIpublic SwaggerUI()
 
- 
- 
Method Details- 
forMediaTypesThis UI applies to HTML requests only.- Overrides:
- forMediaTypesin class- ObjectSwap<Swagger,- Div> 
- Returns:
- The media types that this swap is applicable to, or null if it's applicable for all media types.
 
- 
swapDescription 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 class- ObjectSwap<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.
 
- 
      
 
-