Class SnifferAdapter


  • @Service
    @PerLookup
    public class SnifferAdapter
    extends org.glassfish.grizzly.http.server.HttpHandler
    These adapters are temporarily registered to the mapper to handle static pages request that a container would like to process rather than serving them statically unchanged. This is useful for things like .jsp or .php files saved in the context root of the application server.
    Author:
    Jerome Dochez, Jeanfrancois Arcand
    • Constructor Summary

      Constructors 
      Constructor Description
      SnifferAdapter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void initialize​(Sniffer sniffer, ContainerMapper mapper)  
      void service​(org.glassfish.grizzly.http.server.Request req, org.glassfish.grizzly.http.server.Response resp)  
      • 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
    • Constructor Detail

      • SnifferAdapter

        public SnifferAdapter()
    • Method Detail

      • service

        public void service​(org.glassfish.grizzly.http.server.Request req,
                            org.glassfish.grizzly.http.server.Response resp)
                     throws Exception
        Specified by:
        service in class org.glassfish.grizzly.http.server.HttpHandler
        Throws:
        Exception