Package org.apache.catalina.mapper
Class Mapper.ContextList
- java.lang.Object
-
- org.apache.catalina.mapper.Mapper.ContextList
-
- Enclosing class:
- Mapper
protected static final class Mapper.ContextList extends java.lang.ObjectList of mapped contexts.
-
-
Field Summary
Fields Modifier and Type Field Description Mapper.MappedContext[]contextsThe array of mapped contexts.intnestingThe nesting level.
-
Constructor Summary
Constructors Constructor Description ContextList()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mapper.ContextListaddContext(Mapper.MappedContext mappedContext, int slashCount)Add a context to the list.Mapper.ContextListremoveContext(java.lang.String path)Remove a context from the list.
-
-
-
Field Detail
-
contexts
public final Mapper.MappedContext[] contexts
The array of mapped contexts.
-
nesting
public final int nesting
The nesting level.
-
-
Method Detail
-
addContext
public Mapper.ContextList addContext(Mapper.MappedContext mappedContext, int slashCount)
Add a context to the list.- Parameters:
mappedContext- The context to addslashCount- The number of slashes in the path- Returns:
- the new ContextList or null if failed
-
removeContext
public Mapper.ContextList removeContext(java.lang.String path)
Remove a context from the list.- Parameters:
path- The path of the context to remove- Returns:
- the new ContextList or null if failed
-
-