public interface Resolver
Modifier and Type | Method and Description |
---|---|
boolean |
canAccess(Request request)
Implement access control if authorization is enabled.
|
default ResponseBuilder |
newResponseBuilder() |
default boolean |
requiresAuth(Request request) |
java.util.Optional<Response> |
resolve(Request request)
Implement request resolution.
|
boolean canAccess(Request request)
Is not called when access control is not active.
request
- HTTP request, contains all information necessary to check access.for {@link WebUser} that has access permissions.
java.util.Optional<Response> resolve(Request request)
request
- HTTP request, contains all information necessary to resolve the request.for return value
,
for path /example/path etc
,
for parameters ?param=value etc
default ResponseBuilder newResponseBuilder()
default boolean requiresAuth(Request request)