com.sun.enterprise.v3.services.impl
Class SnifferAdapter

java.lang.Object
  extended by org.glassfish.grizzly.http.server.HttpHandler
      extended by com.sun.enterprise.v3.services.impl.SnifferAdapter

@Service
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
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
SnifferAdapter()
           
 
Method Summary
 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
customizedErrorPage, destroy, doHandle, getName, getRequestURIEncoding, isAllowCustomStatusMessage, isAllowEncodedSlash, sendAcknowledgment, setAllowCustomStatusMessage, setAllowEncodedSlash, setDecodeUrl, setDispatcherHelper, setRequestURIEncoding, setRequestURIEncoding, start, updateContextPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnifferAdapter

public SnifferAdapter()
Method Detail

initialize

public void initialize(Sniffer sniffer,
                       ContainerMapper mapper)

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


Copyright © 2012. All Rights Reserved.