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 SwaggerUiConfigParameters |
swaggerUiConfigParameters
The Swagger ui config parameters.
|
protected SwaggerUiOAuthProperties |
swaggerUiOAuthProperties
The Swagger ui o auth properties.
|
Constructor and Description |
---|
AbstractSwaggerIndexTransformer(SwaggerUiConfigProperties swaggerUiConfig,
SwaggerUiOAuthProperties swaggerUiOAuthProperties,
SwaggerUiConfigParameters swaggerUiConfigParameters,
ObjectMapperProvider objectMapperProvider)
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 |
addCSRFSessionStorage(String html)
Add csrf string from Session storage.
|
protected String |
addInitOauth(String html)
Add init oauth string.
|
protected String |
addParameters(String html)
Add parameters string.
|
protected String |
addSyntaxHighlight(String html)
Add syntax highlight string.
|
protected String |
defaultTransformations(InputStream inputStream)
Default transformations string.
|
protected String |
overwriteSwaggerDefaultUrl(String html)
Overwrite swagger default url string.
|
protected String |
readFullyAsString(InputStream inputStream)
Read fully as string string.
|
protected String |
setConfiguredApiDocsUrl(String html)
Setting the url configured with swagger ui properties
|
protected SwaggerUiOAuthProperties swaggerUiOAuthProperties
protected SwaggerUiConfigParameters swaggerUiConfigParameters
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected SwaggerUiConfigProperties swaggerUiConfig
public AbstractSwaggerIndexTransformer(SwaggerUiConfigProperties swaggerUiConfig, SwaggerUiOAuthProperties swaggerUiOAuthProperties, SwaggerUiConfigParameters swaggerUiConfigParameters, ObjectMapperProvider objectMapperProvider)
swaggerUiConfig
- the swagger ui configswaggerUiOAuthProperties
- the swagger ui o auth propertiesswaggerUiConfigParameters
- the swagger ui config parametersobjectMapperProvider
- the object mapper providerprotected 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 String setConfiguredApiDocsUrl(String html)
html
- protected String defaultTransformations(InputStream inputStream) throws IOException
inputStream
- the input streamIOException
- the io exceptionprotected String addParameters(String html) throws com.fasterxml.jackson.core.JsonProcessingException
html
- the htmlcom.fasterxml.jackson.core.JsonProcessingException
- the json processing exceptionprotected String addCSRF(String html)
html
- the htmlprotected String addCSRFLocalStorage(String html)
html
- the htmlprotected String addCSRFSessionStorage(String html)
html
- the htmlCopyright © 2024. All rights reserved.