public abstract class TreePageHandler extends java.lang.Object implements PageHandler
Modifier and Type | Field and Description |
---|---|
protected ResponseFactory |
responseFactory |
Constructor and Description |
---|
TreePageHandler(ResponseFactory responseFactory) |
Modifier and Type | Method and Description |
---|---|
PageHandler |
getPageHandler(RequestTarget target) |
PageHandler |
getPageHandler(java.lang.String targetPage) |
Response |
getResponse(Request request,
RequestTarget target)
Get the Response of a PageHandler.
|
void |
registerPage(java.lang.String targetPage,
PageHandler handler) |
void |
registerPage(java.lang.String targetPage,
Response response,
int requiredPerm) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAuthorized
protected final ResponseFactory responseFactory
public TreePageHandler(ResponseFactory responseFactory)
public void registerPage(java.lang.String targetPage, PageHandler handler)
public void registerPage(java.lang.String targetPage, Response response, int requiredPerm)
public Response getResponse(Request request, RequestTarget target) throws WebException
PageHandler
getResponse
in interface PageHandler
request
- Request in case it is useful for choosing page.target
- Rest of the target coordinates after this page has been solved.WebException
public PageHandler getPageHandler(RequestTarget target)
public PageHandler getPageHandler(java.lang.String targetPage)