public class GenericOpenApiContext<T extends GenericOpenApiContext> extends Object implements OpenApiContext
| Modifier and Type | Field and Description |
|---|---|
protected String |
configLocation |
protected String |
id |
protected OpenApiContext |
parent |
protected Set<String> |
resourceClasses |
protected Set<String> |
resourcePackages |
OPENAPI_CONTEXT_ID_DEFAULT, OPENAPI_CONTEXT_ID_KEY, OPENAPI_CONTEXT_ID_PREFIX| Constructor and Description |
|---|
GenericOpenApiContext() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<io.swagger.v3.core.converter.ModelConverter> |
buildModelConverters(OpenAPIConfiguration openApiConfiguration) |
protected ObjectMapperProcessor |
buildObjectMapperProcessor(OpenAPIConfiguration openApiConfiguration) |
protected OpenApiReader |
buildReader(OpenAPIConfiguration openApiConfiguration) |
protected OpenApiScanner |
buildScanner(OpenAPIConfiguration openApiConfiguration) |
T |
cacheTTL(long cacheTTL) |
T |
configLocation(String configLocation) |
long |
getCacheTTL() |
String |
getConfigLocation() |
String |
getId() |
protected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> |
getKnownLocations() |
protected Map<String,OpenApiConfigurationLoader> |
getLocationLoaders() |
Set<io.swagger.v3.core.converter.ModelConverter> |
getModelConverters() |
ObjectMapperProcessor |
getObjectMapperProcessor() |
OpenAPIConfiguration |
getOpenApiConfiguration() |
OpenApiReader |
getOpenApiReader() |
OpenApiScanner |
getOpenApiScanner() |
com.fasterxml.jackson.databind.ObjectMapper |
getOutputJsonMapper() |
com.fasterxml.jackson.databind.ObjectMapper |
getOutputYamlMapper() |
OpenApiContext |
getParent() |
Set<String> |
getResourceClasses() |
Set<String> |
getResourcePackages() |
T |
id(String id) |
T |
init() |
protected OpenAPIConfiguration |
loadConfiguration() |
T |
modelConverters(Set<io.swagger.v3.core.converter.ModelConverter> modelConverters) |
T |
objectMapperProcessor(ObjectMapperProcessor objectMapperProcessor) |
T |
openApiConfiguration(OpenAPIConfiguration openApiConfiguration) |
T |
openApiReader(OpenApiReader openApiReader) |
T |
openApiScanner(OpenApiScanner openApiScanner) |
T |
outputJsonMapper(com.fasterxml.jackson.databind.ObjectMapper outputJsonMapper) |
T |
outputYamlMapper(com.fasterxml.jackson.databind.ObjectMapper outputYamlMapper) |
T |
parent(OpenApiContext parent) |
io.swagger.v3.oas.models.OpenAPI |
read() |
protected void |
register() |
protected void |
resetReader() |
T |
resourceClasses(Set<String> resourceClasses) |
T |
resourcePackages(Set<String> resourcePackages) |
void |
setCacheTTL(long cacheTTL) |
void |
setConfigLocation(String configLocation) |
void |
setId(String id) |
void |
setModelConverters(Set<io.swagger.v3.core.converter.ModelConverter> modelConverters) |
void |
setObjectMapperProcessor(ObjectMapperProcessor objectMapperProcessor) |
void |
setOpenApiConfiguration(OpenAPIConfiguration openApiConfiguration) |
void |
setOpenApiReader(OpenApiReader openApiReader) |
void |
setOpenApiScanner(OpenApiScanner openApiScanner) |
void |
setOutputJsonMapper(com.fasterxml.jackson.databind.ObjectMapper outputJsonMapper) |
void |
setOutputYamlMapper(com.fasterxml.jackson.databind.ObjectMapper outputYamlMapper) |
void |
setParent(OpenApiContext parent) |
void |
setResourceClasses(Set<String> resourceClasses) |
void |
setResourcePackages(Set<String> resourcePackages) |
protected String id
protected OpenApiContext parent
protected String configLocation
public long getCacheTTL()
public void setCacheTTL(long cacheTTL)
public T cacheTTL(long cacheTTL)
public OpenApiReader getOpenApiReader()
public void setOpenApiReader(OpenApiReader openApiReader)
setOpenApiReader in interface OpenApiContextpublic OpenApiScanner getOpenApiScanner()
public void setOpenApiScanner(OpenApiScanner openApiScanner)
setOpenApiScanner in interface OpenApiContextpublic final T openApiReader(OpenApiReader openApiReader)
public final T openApiScanner(OpenApiScanner openApiScanner)
public T openApiConfiguration(OpenAPIConfiguration openApiConfiguration)
public String getConfigLocation()
getConfigLocation in interface OpenApiContextpublic void setConfigLocation(String configLocation)
public String getId()
getId in interface OpenApiContextpublic void setId(String id)
public OpenApiContext getParent()
getParent in interface OpenApiContextpublic void setParent(OpenApiContext parent)
public final T parent(OpenApiContext parent)
public ObjectMapperProcessor getObjectMapperProcessor()
public void setObjectMapperProcessor(ObjectMapperProcessor objectMapperProcessor)
setObjectMapperProcessor in interface OpenApiContextpublic final T objectMapperProcessor(ObjectMapperProcessor objectMapperProcessor)
public Set<io.swagger.v3.core.converter.ModelConverter> getModelConverters()
public void setModelConverters(Set<io.swagger.v3.core.converter.ModelConverter> modelConverters)
setModelConverters in interface OpenApiContextpublic final T modelConverters(Set<io.swagger.v3.core.converter.ModelConverter> modelConverters)
public com.fasterxml.jackson.databind.ObjectMapper getOutputJsonMapper()
getOutputJsonMapper in interface OpenApiContextpublic void setOutputJsonMapper(com.fasterxml.jackson.databind.ObjectMapper outputJsonMapper)
setOutputJsonMapper in interface OpenApiContextpublic final T outputJsonMapper(com.fasterxml.jackson.databind.ObjectMapper outputJsonMapper)
public com.fasterxml.jackson.databind.ObjectMapper getOutputYamlMapper()
getOutputYamlMapper in interface OpenApiContextpublic void setOutputYamlMapper(com.fasterxml.jackson.databind.ObjectMapper outputYamlMapper)
setOutputYamlMapper in interface OpenApiContextpublic final T outputYamlMapper(com.fasterxml.jackson.databind.ObjectMapper outputYamlMapper)
protected void register()
public OpenAPIConfiguration getOpenApiConfiguration()
getOpenApiConfiguration in interface OpenApiContextpublic void setOpenApiConfiguration(OpenAPIConfiguration openApiConfiguration)
protected OpenApiReader buildReader(OpenAPIConfiguration openApiConfiguration) throws Exception
Exceptionprotected OpenApiScanner buildScanner(OpenAPIConfiguration openApiConfiguration) throws Exception
Exceptionprotected ObjectMapperProcessor buildObjectMapperProcessor(OpenAPIConfiguration openApiConfiguration) throws Exception
Exceptionprotected Set<io.swagger.v3.core.converter.ModelConverter> buildModelConverters(OpenAPIConfiguration openApiConfiguration) throws Exception
Exceptionprotected List<org.apache.commons.lang3.tuple.ImmutablePair<String,String>> getKnownLocations()
protected Map<String,OpenApiConfigurationLoader> getLocationLoaders()
protected OpenAPIConfiguration loadConfiguration() throws OpenApiConfigurationException
OpenApiConfigurationExceptionpublic T init() throws OpenApiConfigurationException
init in interface OpenApiContextOpenApiConfigurationExceptionpublic io.swagger.v3.oas.models.OpenAPI read()
read in interface OpenApiContextprotected void resetReader()
Copyright © 2020. All rights reserved.