public class ForwardHandler extends AbstractHttpHandler
| Constructor and Description |
|---|
ForwardHandler()
Constructor.
|
ForwardHandler(java.lang.String rootForward)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toStringpublic ForwardHandler()
public ForwardHandler(java.lang.String rootForward)
rootForward - 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
HttpHandlerpathInContext - The context pathpathParams - Path parameters such as encoded Session IDrequest - The HttpRequest requestresponse - The HttpResponse responseHttpExceptionjava.io.IOExceptionCopyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.