public class ForwardHandler extends AbstractHttpHandler
Constructor and Description |
---|
ForwardHandler()
Constructor.
|
ForwardHandler(String rootForward)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addForward(String pathSpecInContext,
String newPath)
Add a forward mapping.
|
void |
handle(String pathInContext,
String pathParams,
HttpRequest request,
HttpResponse response)
Handle a request.
|
void |
setHandleQueries(boolean b)
Set the RestishHandler up to cope with forwards to paths that contain query
elements (e.g.
|
void |
setRootForward(String newPath)
Add a forward mapping for root path.
|
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toString
public ForwardHandler()
public ForwardHandler(String rootForward)
rootForward
- public void addForward(String pathSpecInContext, String newPath)
pathSpecInContext
- The path to forward fromnewPath
- The path to forward to.public void setRootForward(String newPath)
newPath
- The path to forward to.public void setHandleQueries(boolean b)
b
- public void handle(String pathInContext, String pathParams, HttpRequest request, HttpResponse response) throws HttpException, IOException
HttpHandler
pathInContext
- The context pathpathParams
- Path parameters such as encoded Session IDrequest
- The HttpRequest requestresponse
- The HttpResponse responseHttpException
IOException
Copyright © 2013. All Rights Reserved.