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 mapsByteBuffer
bytes representation to anHttpHandler
,ApplicationContainer
and ProtocolFilter chain. The mapping result is stored insideMappingData
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
-
Constructor Summary
Constructors Constructor Description ContainerMapper(GrizzlyService service, GrizzlyListener grizzlyListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureMapper()
Configure theContextMapper
.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 associatedAdapter
.protected void
setDefaultHost(String defaultHost)
Set the default host that will be used when we map.protected void
setMapper(ContextMapper mapper)
Set theContextMapper
instance used for mapping the container and its associatedAdapter
.void
unregister(Endpoint endpoint)
void
unregister(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 theContextMapper
instance 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 Exception
Map the request to its associatedAdapter
.- Overrides:
service
in classorg.glassfish.grizzly.http.server.StaticHttpHandlerBase
- Parameters:
request
-response
-- Throws:
IOException
Exception
-
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)
-
-