@Singleton public class PlayerPageHandler extends java.lang.Object implements PageHandler
Constructor and Description |
---|
PlayerPageHandler(ResponseFactory responseFactory,
DBSystem dbSystem,
UUIDUtility uuidUtility) |
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 PlayerPageHandler(ResponseFactory responseFactory, DBSystem dbSystem, UUIDUtility uuidUtility)
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