Class ContextIdOpenApiResource


  • public class ContextIdOpenApiResource
    extends io.swagger.v3.jaxrs2.integration.resources.OpenApiResource
    An OpenApiResource that sets a custom context id.
    • Field Summary

      • Fields inherited from class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource

        configLocation, openApiConfiguration, resourcePackages
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class io.swagger.v3.jaxrs2.integration.resources.OpenApiResource

        getOpenApi
      • Methods inherited from class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource

        configLocation, getConfigLocation, getOpenApi, getOpenApiConfiguration, getResourcePackages, openApiConfiguration, resourcePackages, setConfigLocation, setOpenApiConfiguration, setResourcePackages
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContextIdOpenApiResource

        public ContextIdOpenApiResource()
    • Method Detail

      • getContextId

        protected java.lang.String getContextId​(javax.servlet.ServletConfig config)
        Overrides:
        getContextId in class io.swagger.v3.jaxrs2.integration.resources.BaseOpenApiResource
      • contextId

        public 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.
        Parameters:
        contextId - the context id to use
        Returns:
        this instance