public class RootPageHandler extends java.lang.Object implements PageHandler
Not Available if Authentication is not enabled.
Constructor and Description |
---|
RootPageHandler(ResponseFactory responseFactory,
WebServer webServer,
ServerInfo serverInfo) |
Modifier and Type | Method and Description |
---|---|
Response |
getResponse(Request request,
RequestTarget target)
Get the Response of a PageHandler.
|
boolean |
isAuthorized(Authentication auth,
RequestTarget target) |
public RootPageHandler(ResponseFactory responseFactory, WebServer webServer, ServerInfo serverInfo)
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 boolean isAuthorized(Authentication auth, RequestTarget target)
isAuthorized
in interface PageHandler