All Packages Class Hierarchy This Package Previous Next Index
Class org.apache.tomcat.core.Container
java.lang.Object
|
+----org.apache.tomcat.core.Container
- public class Container
- extends Object
- implements Cloneable
A group of resources, with some common properties.
Container is similar with Apache "dir_conf" structue.
In Servlet terminology there are many types of containers:
virtual host, context, prefix map, extension map, security
prefix and extension maps.
The most expensive operation is parsing the request and finding
the match. With ad-literam interpreation of the spec, we need to
parse at least 3 times: find context, find servlet, check security
constraints. There is no difference in those steps - except
the result of the mapping.
Each Interceptor has the chance to alter the Container for a particular
map via addMapping() callback. It can set private informations as
attributes ( the Mapper or security interceptors will probably do so ).
-
Container()
-
-
addContextInterceptor(ContextInterceptor)
-
-
addRequestInterceptor(RequestInterceptor)
-
-
getAttribute(String)
-
-
getAttributeNames()
-
-
getClone()
-
-
getContext()
-
-
getContextInterceptors()
- Return the context interceptors as an array.
-
getContextManager()
-
-
getHandler()
-
-
getPath()
-
-
getProtocol()
-
-
getRequestInterceptors()
- Return the context interceptors as an array.
-
getRoles()
- If not null, this container can only be accessed by users
in roles.
-
getTransport()
-
-
removeAttribute(String)
-
-
setAttribute(String, Object)
-
-
setContext(Context)
-
-
setContextManager(ContextManager)
-
-
setHandler(ServletWrapper)
-
-
setPath(String)
-
-
setProtocol(String)
-
-
setRoles(String[])
- If not null, this container can only be accessed by users
in roles.
-
setTransport(String)
-
-
toString()
-
Container
public Container()
getContextManager
public ContextManager getContextManager()
setContextManager
public void setContextManager(ContextManager cm)
setContext
public void setContext(Context ctx)
getContext
public Context getContext()
setPath
public void setPath(String path)
getPath
public String getPath()
setProtocol
public void setProtocol(String protocol)
getProtocol
public String getProtocol()
addContextInterceptor
public void addContextInterceptor(ContextInterceptor ci)
getContextInterceptors
public ContextInterceptor[] getContextInterceptors()
- Return the context interceptors as an array.
For performance reasons we use an array instead of
returning the vector - the interceptors will not change at
runtime and array access is faster and easier than vector
access
addRequestInterceptor
public void addRequestInterceptor(RequestInterceptor ci)
getRequestInterceptors
public RequestInterceptor[] getRequestInterceptors()
- Return the context interceptors as an array.
For performance reasons we use an array instead of
returning the vector - the interceptors will not change at
runtime and array access is faster and easier than vector
access
getAttribute
public Object getAttribute(String name)
getAttributeNames
public Enumeration getAttributeNames()
setAttribute
public void setAttribute(String name,
Object object)
removeAttribute
public void removeAttribute(String name)
getHandler
public ServletWrapper getHandler()
setHandler
public void setHandler(ServletWrapper h)
setTransport
public void setTransport(String transport)
getTransport
public String getTransport()
getRoles
public String[] getRoles()
- If not null, this container can only be accessed by users
in roles.
setRoles
public void setRoles(String roles[])
- If not null, this container can only be accessed by users
in roles.
toString
public String toString()
- Overrides:
- toString in class Object
getClone
public Container getClone()
All Packages Class Hierarchy This Package Previous Next Index