|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.http.handler.AbstractHttpHandler | +--org.mortbay.http.handler.ForwardHandler
Forward Request Handler. Forwards a request to a new URI. Experimental - use with caution.
Constructor Summary | |
ForwardHandler()
Constructor. |
|
ForwardHandler(java.lang.String rootForward)
Constructor. |
Method Summary | |
void |
addForward(java.lang.String pathSpecInContext,
java.lang.String newPath)
Add a forward mapping. |
void |
handle(java.lang.String pathInContext,
java.lang.String pathParams,
HttpRequest request,
HttpResponse response)
Handle a request. |
void |
setHandleQueries(boolean b)
Set the Handler up to cope with forwards to paths that contain query elements (e.g. |
void |
setRootForward(java.lang.String newPath)
Add a forward mapping for root path. |
Methods inherited from class org.mortbay.http.handler.AbstractHttpHandler |
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ForwardHandler()
public ForwardHandler(java.lang.String rootForward)
rootForward
- Method Detail |
public void addForward(java.lang.String pathSpecInContext, java.lang.String newPath)
pathSpecInContext
- The path to forward fromnewPath
- The path to forward to.public void setRootForward(java.lang.String newPath)
newPath
- The path to forward to.public void setHandleQueries(boolean b)
b
- public void handle(java.lang.String pathInContext, java.lang.String pathParams, HttpRequest request, HttpResponse response) throws HttpException, java.io.IOException
HttpHandler
pathInContext
- The context pathpathParams
- Path parameters such as encoded Session IDrequest
- The HttpRequest requestresponse
- The HttpResponse response
HttpException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |