@Singleton public class PlayerKillsJSONResolver extends java.lang.Object implements PageResolver
Constructor and Description |
---|
PlayerKillsJSONResolver(Identifiers identifiers,
JSONFactory jsonFactory) |
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 PlayerKillsJSONResolver(Identifiers identifiers, JSONFactory jsonFactory)
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