public class ContextIdOpenApiResource
extends io.swagger.v3.jaxrs2.integration.resources.OpenApiResource
OpenApiResource
that sets a custom context id.Constructor and Description |
---|
ContextIdOpenApiResource() |
Modifier and Type | Method and Description |
---|---|
io.swagger.v3.jaxrs2.integration.resources.OpenApiResource |
contextId(java.lang.String contextId)
Set a custom context id for the
OpenApiContext to use
different cache keys for the OpenAPI specifications. |
protected java.lang.String |
getContextId(javax.servlet.ServletConfig config) |
protected java.lang.String getContextId(javax.servlet.ServletConfig config)
getContextId
in class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
public io.swagger.v3.jaxrs2.integration.resources.OpenApiResource contextId(java.lang.String contextId)
OpenApiContext
to use
different cache keys for the OpenAPI specifications.contextId
- the context id to use