public static class CompositeResolver.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CompositeResolver.Builder |
add(java.lang.String prefix,
java.util.function.Function<Request,Response> resolver,
java.util.function.Predicate<Request> accessCheck)
Add a new resolver to the CompositeResolver by using functional interfaces
|
CompositeResolver.Builder |
add(java.lang.String prefix,
Resolver resolver)
Add a new resolver to the CompositeResolver.
|
CompositeResolver |
build() |
public CompositeResolver.Builder add(java.lang.String prefix, Resolver resolver)
prefix
- Start of the target (first part of the target string, eg "example" in "/example/target/", or "" in "/")resolver
- Resolver to call for this target, URIPath.omitFirst()
will be called for Resolver method calls.public CompositeResolver.Builder add(java.lang.String prefix, java.util.function.Function<Request,Response> resolver, java.util.function.Predicate<Request> accessCheck)
prefix
- Start of the target (first part of the target string, eg "example" in "/example/target/", or "" in "/")resolver
- Resolver to call for this target, URIPath.omitFirst()
will be called for Resolver method calls.public CompositeResolver build()