public interface RouteContinuation
Modifier and Type | Method and Description |
---|---|
RouteContinuation |
and(java.util.function.BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)
Extends the current route such that it matches
StreamingHttpRequest and ConnectionContext with a
user-specified predicate . |
RouteContinuation |
and(java.util.function.Predicate<StreamingHttpRequest> predicate)
Extends the current route such that it matches
StreamingHttpRequest s with a user-specified
predicate . |
CookieMatcher |
andCookie(java.lang.String name)
Extends the current route with a
CookieMatcher that matches against HttpSetCookie s with the name
name . |
StringMultiValueMatcher |
andHeader(java.lang.CharSequence name)
Extends the current route with a
StringMultiValueMatcher that matches against the value(s) of the
name headers. |
RouteContinuation |
andIsNotSsl()
Extends the current route such that it matches requests that are not over SSL/TLS.
|
RouteContinuation |
andIsSsl()
Extends the current route such that it matches requests that are over SSL/TLS.
|
RouteContinuation |
andMethod(HttpRequestMethod method)
Extends the current route such that it matches requests where the
HttpRequestMethod is method . |
RouteContinuation |
andMethodIsOneOf(HttpRequestMethod... methods)
Extends the current route such that it matches requests where the
HttpRequestMethod is one of the
methods . |
RouteContinuation |
andPathEquals(java.lang.String path)
Extends the current route such that it matches requests where the path is equal to
path . |
RouteContinuation |
andPathIsOneOf(java.lang.String... paths)
Extends the current route such that it matches requests where the path is equal to any of the specified
path s. |
RouteContinuation |
andPathMatches(java.util.regex.Pattern pathRegex)
Extends the current route such that it matches requests where the path matches the regex
pathRegex . |
RouteContinuation |
andPathMatches(java.lang.String pathRegex)
Extends the current route such that it matches requests where the path matches the regex
pathRegex . |
RouteContinuation |
andPathStartsWith(java.lang.String pathPrefix)
Extends the current route such that it matches requests where the path starts with
pathPrefix . |
StringMultiValueMatcher |
andQueryParam(java.lang.String name)
Extends the current route with a
StringMultiValueMatcher that matches against the value(s) of the
request parameter name . |
RouteContinuation |
executionStrategy(HttpExecutionStrategy routeStrategy)
Specifies an
HttpExecutionStrategy to be used for this route. |
RouteStarter |
thenRouteTo(BlockingHttpService service)
Completes the route by specifying the
BlockingHttpService to route requests to that match the
previously specified criteria. |
RouteStarter |
thenRouteTo(BlockingStreamingHttpService service)
Completes the route by specifying the
BlockingStreamingHttpService to route requests to that match the
previously specified criteria. |
RouteStarter |
thenRouteTo(HttpService service)
Completes the route by specifying the
HttpService to route requests to that match the
previously specified criteria. |
RouteStarter |
thenRouteTo(StreamingHttpService service)
Completes the route by specifying the
StreamingHttpService to route requests to that match the previously
specified criteria. |
RouteContinuation andMethod(HttpRequestMethod method)
HttpRequestMethod
is method
.method
- the method to match.RouteContinuation
for the next steps of building a route.RouteContinuation andMethodIsOneOf(HttpRequestMethod... methods)
HttpRequestMethod
is one of the
methods
.methods
- the methods to match.RouteContinuation
for the next steps of building a route.RouteContinuation andPathEquals(java.lang.String path)
path
.path
- the path to match.RouteContinuation
for the next steps of building a route.RouteContinuation andPathIsOneOf(java.lang.String... paths)
path
s.paths
- the paths to match.RouteContinuation
for the next steps of building a route.RouteContinuation andPathStartsWith(java.lang.String pathPrefix)
pathPrefix
.pathPrefix
- the path prefix to match.RouteContinuation
for the next steps of building a route.RouteContinuation andPathMatches(java.lang.String pathRegex)
pathRegex
.pathRegex
- the regex to match against the request path.RouteContinuation
for the next steps of building a route.RouteContinuation andPathMatches(java.util.regex.Pattern pathRegex)
pathRegex
.pathRegex
- the regex to match against the request path.RouteContinuation
for the next steps of building a route.StringMultiValueMatcher andQueryParam(java.lang.String name)
StringMultiValueMatcher
that matches against the value(s) of the
request parameter name
.name
- the request parameter name that must be present in the request in order to continue evaluation of
this route.StringMultiValueMatcher
for the next steps of building a route.StringMultiValueMatcher andHeader(java.lang.CharSequence name)
StringMultiValueMatcher
that matches against the value(s) of the
name
headers.name
- The header name that must be present in the request in order to continue evaluation of this route.StringMultiValueMatcher
for the next steps of building a route.CookieMatcher andCookie(java.lang.String name)
CookieMatcher
that matches against HttpSetCookie
s with the name
name
.name
- the cookie name that must be present in the request in order to continue evaluation of this route.CookieMatcher
for the next steps of building a route.RouteContinuation andIsSsl()
RouteContinuation
for the next steps of building a route.RouteContinuation andIsNotSsl()
RouteContinuation
for the next steps of building a route.RouteContinuation and(java.util.function.Predicate<StreamingHttpRequest> predicate)
StreamingHttpRequest
s with a user-specified
predicate
.predicate
- the predicate to evaluate against requests.RouteContinuation
for the next steps of building a route.RouteContinuation and(java.util.function.BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)
StreamingHttpRequest
and ConnectionContext
with a
user-specified predicate
.predicate
- the predicate to evaluate against the request and connection context.RouteContinuation
for the next steps of building a route.RouteContinuation executionStrategy(HttpExecutionStrategy routeStrategy)
HttpExecutionStrategy
to be used for this route.routeStrategy
- HttpExecutionStrategy
to be used for this route.RouteContinuation
for the next steps of building a route.RouteStarter thenRouteTo(StreamingHttpService service)
StreamingHttpService
to route requests to that match the previously
specified criteria. Each call to thenRouteTo
resets the criteria, prior to building the next route.service
- the StreamingHttpService
to route requests to.RouteStarter
for building another route.RouteStarter thenRouteTo(HttpService service)
HttpService
to route requests to that match the
previously specified criteria. Each call to thenRouteTo
resets the criteria, prior to building the next
route.service
- the HttpService
to route requests to.RouteStarter
for building another route.RouteStarter thenRouteTo(BlockingHttpService service)
BlockingHttpService
to route requests to that match the
previously specified criteria. Each call to thenRouteTo
resets the criteria, prior to building the next
route.service
- the BlockingHttpService
to route requests to.RouteStarter
for building another route.RouteStarter thenRouteTo(BlockingStreamingHttpService service)
BlockingStreamingHttpService
to route requests to that match the
previously specified criteria. Each call to thenRouteTo
resets the criteria, prior to building the next
route.service
- the BlockingStreamingHttpService
to route requests to.RouteStarter
for building another route.