@Singleton public class PlayersPageResolver extends java.lang.Object implements PageResolver
Constructor and Description |
---|
PlayersPageResolver(DBSystem dbSystem,
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 PlayersPageResolver(DBSystem dbSystem, ResponseFactory responseFactory)
public Response resolve(Request request, RequestTarget target) throws WebException
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.WebException
public boolean isAuthorized(Authentication auth, RequestTarget target) throws WebUserAuthException
isAuthorized
in interface PageResolver
WebUserAuthException