public class AbstractSwaggerIndexTransformer extends Object
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper
The Object mapper.
|
protected SwaggerUiConfigProperties |
swaggerUiConfig
The Swagger ui config.
|
protected SwaggerUiOAuthProperties |
swaggerUiOAuthProperties
The Swagger ui o auth properties.
|
Constructor and Description |
---|
AbstractSwaggerIndexTransformer(SwaggerUiConfigProperties swaggerUiConfig,
SwaggerUiOAuthProperties swaggerUiOAuthProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Instantiates a new Abstract swagger index transformer.
|
Modifier and Type | Method and Description |
---|---|
protected String |
addCSRF(String html)
Add csrf string.
|
protected String |
addCSRFLocalStorage(String html)
Add csrf string.
|
protected String |
addInitOauth(String html)
Add init oauth string.
|
protected String |
addSyntaxHighlight(String html)
Add syntax highlight string.
|
protected String |
defaultTransformations(InputStream inputStream)
Default transformations string.
|
protected boolean |
hasDefaultTransformations()
Has default transformations boolean.
|
protected String |
overwriteSwaggerDefaultUrl(String html)
Overwrite swagger default url string.
|
protected String |
readFullyAsString(InputStream inputStream)
Read fully as string string.
|
protected SwaggerUiOAuthProperties swaggerUiOAuthProperties
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected SwaggerUiConfigProperties swaggerUiConfig
public AbstractSwaggerIndexTransformer(SwaggerUiConfigProperties swaggerUiConfig, SwaggerUiOAuthProperties swaggerUiOAuthProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
swaggerUiConfig
- the swagger ui configswaggerUiOAuthProperties
- the swagger ui o auth propertiesobjectMapper
- the object mapperprotected String addInitOauth(String html) throws com.fasterxml.jackson.core.JsonProcessingException
html
- the htmlcom.fasterxml.jackson.core.JsonProcessingException
- the json processing exceptionprotected String readFullyAsString(InputStream inputStream) throws IOException
inputStream
- the input streamIOException
- the io exceptionprotected String overwriteSwaggerDefaultUrl(String html)
html
- the htmlprotected boolean hasDefaultTransformations()
protected String defaultTransformations(InputStream inputStream) throws IOException
inputStream
- the input streamIOException
- the io exceptionprotected String addCSRF(String html)
html
- the htmlprotected String addCSRFLocalStorage(String html)
html
- the htmlCopyright © 2021. All rights reserved.