|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openqa.jetty.http.handler.AbstractHttpHandler
org.openqa.jetty.http.handler.ForwardHandler
public class ForwardHandler
Forward Request RestishHandler. Forwards a request to a new URI. Experimental - use with caution.
| Constructor Summary | |
|---|---|
ForwardHandler()
Constructor. |
|
ForwardHandler(String rootForward)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openqa.jetty.http.handler.AbstractHttpHandler |
|---|
getHttpContext, getName, handleTrace, initialize, isStarted, setName, start, stop, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ForwardHandler()
public ForwardHandler(String rootForward)
rootForward - | Method Detail |
|---|
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 response
HttpException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||