@Singleton public class DebugPageResolver extends java.lang.Object implements PageResolver
Constructor and Description |
---|
DebugPageResolver(ResponseFactory responseFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(Authentication auth,
RequestTarget target) |
Response |
resolve(Request request,
RequestTarget target)
Resolve the request to a response.
|
@Inject public DebugPageResolver(ResponseFactory responseFactory)
public Response resolve(Request request, RequestTarget target)
PageResolver
resolve
in interface PageResolver
request
- Request in case it is useful for choosing page.target
- Rest of the target coordinates after this page has been solved.public boolean isAuthorized(Authentication auth, RequestTarget target) throws WebUserAuthException
isAuthorized
in interface PageResolver
WebUserAuthException