org.glassfish.internal.grizzly
Class ContextMapper

java.lang.Object
  extended by com.sun.grizzly.util.http.mapper.Mapper
      extended by org.glassfish.internal.grizzly.ContextMapper
Direct Known Subclasses:
V3Mapper

@Service
public class ContextMapper
extends com.sun.grizzly.util.http.mapper.Mapper

Extended that Mapper that prevent the WebContainer to unregister the current Mapper configuration.

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.util.http.mapper.Mapper
com.sun.grizzly.util.http.mapper.Mapper.Context, com.sun.grizzly.util.http.mapper.Mapper.ContextList, com.sun.grizzly.util.http.mapper.Mapper.Host, com.sun.grizzly.util.http.mapper.Mapper.MapElement, com.sun.grizzly.util.http.mapper.Mapper.Wrapper
 
Field Summary
protected  com.sun.grizzly.tcp.Adapter adapter
           
protected  String id
           
protected  Logger logger
           
 
Fields inherited from class com.sun.grizzly.util.http.mapper.Mapper
context, defaultHostName, hosts
 
Constructor Summary
ContextMapper()
           
ContextMapper(Logger logger)
           
 
Method Summary
 void addContext(String hostName, String path, Object context, String[] welcomeResources, Context resources)
          
 void addHost(String name, String[] aliases, Object host)
          
 void addWrapper(String hostName, String contextPath, String path, Object wrapper, boolean jspWildCard, String servletName, boolean isEmptyPathSpecial)
          
 com.sun.grizzly.tcp.Adapter getAdapter()
           
 String getId()
           
 void removeHost(String name)
          
 void setAdapter(com.sun.grizzly.tcp.Adapter adapter)
           
 void setId(String id)
          Sets the id of the associated http-listener on this mapper.
 
Methods inherited from class com.sun.grizzly.util.http.mapper.Mapper
addContext, addWrapper, addWrapper, addWrapper, addWrapper, addWrapper, addWrapper, addWrapper, allowReplacement, getContextNames, getDefaultHostName, getHosts, getPort, getWrapperNames, getWrappersString, map, map, removeContext, removeWrapper, removeWrapper, removeWrapper, setAllowReplacement, setContext, setDefaultContextPath, setDefaultHostName, setPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Logger logger

adapter

protected com.sun.grizzly.tcp.Adapter adapter

id

protected String id
Constructor Detail

ContextMapper

public ContextMapper()

ContextMapper

public ContextMapper(Logger logger)
Method Detail

addWrapper

public void addWrapper(String hostName,
                       String contextPath,
                       String path,
                       Object wrapper,
                       boolean jspWildCard,
                       String servletName,
                       boolean isEmptyPathSpecial)

Overrides:
addWrapper in class com.sun.grizzly.util.http.mapper.Mapper

addHost

public void addHost(String name,
                    String[] aliases,
                    Object host)

Overrides:
addHost in class com.sun.grizzly.util.http.mapper.Mapper

addContext

public void addContext(String hostName,
                       String path,
                       Object context,
                       String[] welcomeResources,
                       Context resources)

Overrides:
addContext in class com.sun.grizzly.util.http.mapper.Mapper

removeHost

public void removeHost(String name)

Overrides:
removeHost in class com.sun.grizzly.util.http.mapper.Mapper

setAdapter

public void setAdapter(com.sun.grizzly.tcp.Adapter adapter)

getAdapter

public com.sun.grizzly.tcp.Adapter getAdapter()

setId

public void setId(String id)
Sets the id of the associated http-listener on this mapper.


getId

public String getId()


Copyright © 2012 GlassFish Community. All Rights Reserved.