Class CompositeResolver
java.lang.Object
com.djrapitops.plan.delivery.web.resolver.CompositeResolver
- All Implemented Interfaces:
Resolver
Utility Resolver for organizing resolution in a tree-like structure.
CompositeResolver removes first part of the target with URIPath.omitFirst()
before calling the child Resolvers.
Example: resolverService.registerResolver("/test/", compositeResolver);
The Resolvers added to CompositeResolver will be given Request with URIPath "/".
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeResolver.Builder
builder()
boolean
Implement access control if authorization is enabled.boolean
requiresAuth
(Request request) Implement request resolution.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.Resolver
newResponseBuilder
-
Method Details
-
builder
-
canAccess
Description copied from interface:Resolver
Implement access control if authorization is enabled.Is not called when access control is not active.
-
resolve
Description copied from interface:Resolver
Implement request resolution. -
requiresAuth
- Specified by:
requiresAuth
in interfaceResolver
-