Home » apache-tomcat-6.0.26-src » org.apache » tomcat » util » http » mapper » [javadoc | source]
org.apache.tomcat.util.http.mapper
public final class: Mapper [javadoc | source]
java.lang.Object
   org.apache.tomcat.util.http.mapper.Mapper
Mapper, which implements the servlet API mapping rules (which are derived from the HTTP rules).
Nested Class Summary:
abstract protected static class  Mapper.MapElement   
protected static final class  Mapper.Host   
protected static final class  Mapper.ContextList   
protected static final class  Mapper.Context   
protected static class  Mapper.Wrapper   
Field Summary
protected  Host[] hosts    Array containing the virtual hosts definitions. 
protected  String defaultHostName    Default host name. 
protected  Context context    Context associated with this wrapper, used for wrapper mapping. 
Method from org.apache.tomcat.util.http.mapper.Mapper Summary:
addContext,   addHost,   addHostAlias,   addWrapper,   addWrapper,   addWrapper,   addWrapper,   addWrapper,   addWrapper,   getContextNames,   getDefaultHostName,   getHosts,   getWrapperNames,   getWrappersString,   map,   map,   removeContext,   removeHost,   removeHostAlias,   removeWrapper,   removeWrapper,   removeWrapper,   setContext,   setDefaultHostName
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tomcat.util.http.mapper.Mapper Detail:
 public  void addContext(String hostName,
    String path,
    Object context,
    String[] welcomeResources,
    Context resources) 
    Add a new Context to an existing Host.
 public synchronized  void addHost(String name,
    String[] aliases,
    Object host) 
    Add a new host to the mapper.
 public synchronized  void addHostAlias(String name,
    String alias) 
    Add an alias to an existing host.
 public  void addWrapper(String path,
    Object wrapper) 
    Add a wrapper to the context associated with this wrapper.
 public  void addWrapper(String path,
    Object wrapper,
    boolean jspWildCard) 
 protected  void addWrapper(Context context,
    String path,
    Object wrapper) 
 public  void addWrapper(String hostName,
    String contextPath,
    String path,
    Object wrapper) 
    Add a new Wrapper to an existing Context.
 protected  void addWrapper(Context context,
    String path,
    Object wrapper,
    boolean jspWildCard) 
    Adds a wrapper to the given context.
 public  void addWrapper(String hostName,
    String contextPath,
    String path,
    Object wrapper,
    boolean jspWildCard) 
 public String[] getContextNames() 
    Return all contexts, in //HOST/PATH form
 public String getDefaultHostName() 
    Get default host.
 public String[] getHosts() 
 public String[] getWrapperNames(String host,
    String context) 
 public String getWrappersString(String host,
    String context) 
 public  void map(MessageBytes uri,
    MappingData mappingData) throws Exception 
    Map the specified URI relative to the context, mutating the given mapping data.
 public  void map(MessageBytes host,
    MessageBytes uri,
    MappingData mappingData) throws Exception 
    Map the specified host name and URI, mutating the given mapping data.
 public  void removeContext(String hostName,
    String path) 
    Remove a context from an existing host.
 public synchronized  void removeHost(String name) 
    Remove a host from the mapper.
 public synchronized  void removeHostAlias(String alias) 
    Remove a host alias
 public  void removeWrapper(String path) 
    Remove a wrapper from the context associated with this wrapper.
 protected  void removeWrapper(Context context,
    String path) 
 public  void removeWrapper(String hostName,
    String contextPath,
    String path) 
    Remove a wrapper from an existing context.
 public  void setContext(String path,
    String[] welcomeResources,
    Context resources) 
    Set context, used for wrapper mapping (request dispatcher).
 public  void setDefaultHostName(String defaultHostName) 
    Set default host.