Interface NoAuthResolver
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canAccess(Request request)
Implement access control if authorization is enabled.default boolean
requiresAuth(Request request)
java.util.Optional<Response>
resolve(Request request)
Implement request resolution.-
Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.Resolver
newResponseBuilder
-
-
-
-
Method Detail
-
canAccess
default boolean canAccess(Request request)
Description copied from interface:Resolver
Implement access control if authorization is enabled.Is not called when access control is not active.
- Specified by:
canAccess
in interfaceResolver
- Parameters:
request
- HTTP request, contains all information necessary to check access.- Returns:
- true if allowed or invalid target, false if response should be 403 (forbidden)
- See Also:
for that has access permissions.
-
resolve
java.util.Optional<Response> resolve(Request request)
Implement request resolution.- Specified by:
resolve
in interfaceResolver
- Parameters:
request
- HTTP request, contains all information necessary to resolve the request.- Returns:
- Response or empty if the response should be 404 (not found).
- See Also:
for return value
-
requiresAuth
default boolean requiresAuth(Request request)
- Specified by:
requiresAuth
in interfaceResolver
-
-