Class ContainerMapper


  • public class ContainerMapper
    extends ADBAwareHttpHandler
    Container's mapper which maps ByteBuffer bytes representation to an HttpHandler, ApplicationContainer and ProtocolFilter chain. The mapping result is stored inside MappingData which is eventually shared with the CoyoteAdapter, which is the entry point with the Catalina Servlet Container.
    Author:
    Jeanfrancois Arcand, Alexey Stashok
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.glassfish.grizzly.http.Note<org.glassfish.grizzly.http.server.util.MappingData> MAPPING_DATA  
      • Fields inherited from class org.glassfish.grizzly.http.server.StaticHttpHandler

        docRoots
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configureMapper()
      Configure the ContextMapper.
      void register​(Endpoint endpoint)  
      void register​(String contextRoot, Collection<String> vs, org.glassfish.grizzly.http.server.HttpHandler httpService, ApplicationContainer container)  
      void service​(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response)
      Map the request to its associated Adapter.
      protected void setDefaultHost​(String defaultHost)
      Set the default host that will be used when we map.
      protected void setMapper​(ContextMapper mapper)
      Set the ContextMapper instance used for mapping the container and its associated Adapter.
      void unregister​(Endpoint endpoint)  
      void unregister​(String contextRoot)  
      • Methods inherited from class org.glassfish.grizzly.http.server.StaticHttpHandler

        addDocRoot, addDocRoot, getDefaultDocRoot, getDocRoots, isDirectorySlashOff, removeDocRoot, setDirectorySlashOff
      • Methods inherited from class org.glassfish.grizzly.http.server.StaticHttpHandlerBase

        addCachingHeaders, addToFileCache, getRelativeURI, isFileCacheEnabled, lookupFileCache, onMissingResource, pickupContentType, sendFile, setFileCacheEnabled
      • Methods inherited from class org.glassfish.grizzly.http.server.HttpHandler

        destroy, getErrorPageGenerator, getName, getRequestExecutorProvider, getRequestURIEncoding, getSessionCookieName, getSessionManager, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updatePaths
    • Field Detail

      • MAPPING_DATA

        protected static final org.glassfish.grizzly.http.Note<org.glassfish.grizzly.http.server.util.MappingData> MAPPING_DATA
    • Method Detail

      • setDefaultHost

        protected void setDefaultHost​(String defaultHost)
        Set the default host that will be used when we map.
        Parameters:
        defaultHost -
      • setMapper

        protected void setMapper​(ContextMapper mapper)
        Set the ContextMapper instance used for mapping the container and its associated Adapter.
        Parameters:
        mapper -
      • configureMapper

        protected void configureMapper()
        Configure the ContextMapper.
      • service

        public void service​(org.glassfish.grizzly.http.server.Request request,
                            org.glassfish.grizzly.http.server.Response response)
                     throws Exception
        Map the request to its associated Adapter.
        Overrides:
        service in class org.glassfish.grizzly.http.server.StaticHttpHandlerBase
        Parameters:
        request -
        response -
        Throws:
        IOException
        Exception
      • unregister

        public void unregister​(String contextRoot)
      • register

        public void register​(Endpoint endpoint)
      • unregister

        public void unregister​(Endpoint endpoint)