Constructor and Description |
---|
GraphsJSONResolver(Identifiers identifiers,
GraphJSONCreator graphJSON) |
Modifier and Type | Method and Description |
---|---|
boolean |
canAccess(Request request)
Implement access control if authorization is enabled.
|
java.util.Optional<Response> |
resolve(Request request)
Resolves the request.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newResponseBuilder, requiresAuth
@Inject public GraphsJSONResolver(Identifiers identifiers, GraphJSONCreator graphJSON)
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)
resolve
in interface Resolver
request
- HTTP request, contains all information necessary to resolve the request.BadRequestException
- If 'type' parameter is not defined or supported.BadRequestException
- If 'server' parameter is not defined or server is not found in database.for return value
,
for path /example/path etc
,
for parameters ?param=value etc