org.glassfish.internal.grizzly
Class ContextMapper
java.lang.Object
com.sun.grizzly.util.http.mapper.Mapper
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 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 |
| Fields inherited from class com.sun.grizzly.util.http.mapper.Mapper |
context, defaultHostName, hosts |
|
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 |
logger
protected final Logger logger
adapter
protected com.sun.grizzly.tcp.Adapter adapter
id
protected String id
ContextMapper
public ContextMapper()
ContextMapper
public ContextMapper(Logger logger)
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.