Class ContainerMapper
- java.lang.Object
-
- org.glassfish.grizzly.http.server.HttpHandler
-
- org.glassfish.grizzly.http.server.StaticHttpHandlerBase
-
- org.glassfish.grizzly.http.server.StaticHttpHandler
-
- com.sun.enterprise.v3.services.impl.ADBAwareHttpHandler
-
- com.sun.enterprise.v3.services.impl.ContainerMapper
-
public class ContainerMapper extends ADBAwareHttpHandler
Container's mapper which mapsByteBufferbytes representation to anHttpHandler,ApplicationContainerand ProtocolFilter chain. The mapping result is stored insideMappingDatawhich 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
-
Constructor Summary
Constructors Constructor Description ContainerMapper(GrizzlyService service, GrizzlyListener grizzlyListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigureMapper()Configure theContextMapper.voidregister(Endpoint endpoint)voidregister(String contextRoot, Collection<String> vs, org.glassfish.grizzly.http.server.HttpHandler httpService, ApplicationContainer container)voidservice(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response)Map the request to its associatedAdapter.protected voidsetDefaultHost(String defaultHost)Set the default host that will be used when we map.protected voidsetMapper(ContextMapper mapper)Set theContextMapperinstance used for mapping the container and its associatedAdapter.voidunregister(Endpoint endpoint)voidunregister(String contextRoot)-
Methods inherited from class com.sun.enterprise.v3.services.impl.ADBAwareHttpHandler
addAlternateDocBase, handle
-
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
-
-
-
-
Constructor Detail
-
ContainerMapper
public ContainerMapper(GrizzlyService service, GrizzlyListener grizzlyListener)
-
-
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 theContextMapperinstance used for mapping the container and its associatedAdapter.- Parameters:
mapper-
-
configureMapper
protected void configureMapper()
Configure theContextMapper.
-
service
public void service(org.glassfish.grizzly.http.server.Request request, org.glassfish.grizzly.http.server.Response response) throws ExceptionMap the request to its associatedAdapter.- Overrides:
servicein classorg.glassfish.grizzly.http.server.StaticHttpHandlerBase- Parameters:
request-response-- Throws:
IOExceptionException
-
register
public void register(String contextRoot, Collection<String> vs, org.glassfish.grizzly.http.server.HttpHandler httpService, ApplicationContainer container)
-
unregister
public void unregister(String contextRoot)
-
register
public void register(Endpoint endpoint)
-
unregister
public void unregister(Endpoint endpoint)
-
-