Mapper (Catalina Internal API Documentation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface defining methods that a parent Container may implement to select a subordinate Container to process a particular Request, optionally modifying the properties of the Request to reflect the selections made.
A typical Container may be associated with a single Mapper that processes all requests to that Container, or a Mapper per request protocol that allows the same Container to support multiple protocols at once.
Method Summary | |
Container |
getContainer()
Return the Container with which this Mapper is associated. |
java.lang.String |
getProtocol()
Return the protocol for which this Mapper is responsible. |
Container |
map(Request request,
boolean update)
Return the child Container that should be used to process this Request, based upon its characteristics. |
void |
setContainer(Container container)
Set the Container with which this Mapper is associated. |
void |
setProtocol(java.lang.String protocol)
Set the protocol for which this Mapper is responsible. |
Method Detail |
public Container getContainer()
public void setContainer(Container container)
container
- The newly associated Container
java.lang.IllegalArgumentException
- if this Container is not
acceptable to this Mapperpublic java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
protocol
- The newly associated protocolpublic Container map(Request request, boolean update)
null
instead.
request
- Request being processedupdate
- Update the Request to reflect the mapping selection?
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |