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