Constructor and Description |
---|
PlayerJSONResolver(Identifiers identifiers,
PlayerJSONCreator jsonCreator) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccess(Request request)
Implement access control if authorization is enabled.
|
java.util.Optional<Response> |
resolve(Request request)
Implement request resolution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newResponseBuilder, requiresAuth
@Inject public PlayerJSONResolver(Identifiers identifiers, PlayerJSONCreator jsonCreator)
public boolean canAccess(Request request)
Resolver
Is not called when access control is not active.
canAccess
in interface Resolver
request
- HTTP request, contains all information necessary to check access.for {@link WebUser} that has access permissions.
public java.util.Optional<Response> resolve(Request request)
Resolver
resolve
in interface Resolver
request
- HTTP request, contains all information necessary to resolve the request.for return value
,
for path /example/path etc
,
for parameters ?param=value etc