@Singleton public class PlayersPageHandler extends java.lang.Object implements PageHandler
Constructor and Description |
---|
PlayersPageHandler(DBSystem dbSystem,
ResponseFactory responseFactory) |
Modifier and Type | Method and Description |
---|---|
Response |
getResponse(Request request,
RequestTarget target)
Get the Response of a PageHandler.
|
boolean |
isAuthorized(Authentication auth,
RequestTarget target) |
@Inject public PlayersPageHandler(DBSystem dbSystem, ResponseFactory responseFactory)
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) throws WebUserAuthException
isAuthorized
in interface PageHandler
WebUserAuthException