public interface RouteContinuation
| Modifier and Type | Method and Description |
|---|---|
RouteContinuation |
and(BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)
Extends the current route such that it matches
StreamingHttpRequest and ConnectionContext with a
user-specified predicate. |
RouteContinuation |
and(Predicate<StreamingHttpRequest> predicate)
Extends the current route such that it matches
StreamingHttpRequests with a user-specified
predicate. |
CookieMatcher |
andCookie(String name)
Extends the current route with a
CookieMatcher that matches against HttpSetCookies with the name
name. |
StringMultiValueMatcher |
andHeader(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(String path)
Extends the current route such that it matches requests where the path is equal to
path. |
RouteContinuation |
andPathIsOneOf(String... paths)
Extends the current route such that it matches requests where the path is equal to any of the specified
paths. |
RouteContinuation |
andPathMatches(Pattern pathRegex)
Extends the current route such that it matches requests where the path matches the regex
pathRegex. |
RouteContinuation |
andPathMatches(String pathRegex)
Extends the current route such that it matches requests where the path matches the regex
pathRegex. |
RouteContinuation |
andPathStartsWith(String pathPrefix)
Extends the current route such that it matches requests where the path starts with
pathPrefix. |
StringMultiValueMatcher |
andQueryParam(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(String path)
path.path - the path to match.RouteContinuation for the next steps of building a route.RouteContinuation andPathIsOneOf(String... paths)
paths.paths - the paths to match.RouteContinuation for the next steps of building a route.RouteContinuation andPathStartsWith(String pathPrefix)
pathPrefix.pathPrefix - the path prefix to match.RouteContinuation for the next steps of building a route.RouteContinuation andPathMatches(String pathRegex)
pathRegex.pathRegex - the regex to match against the request path.RouteContinuation for the next steps of building a route.RouteContinuation andPathMatches(Pattern pathRegex)
pathRegex.pathRegex - the regex to match against the request path.RouteContinuation for the next steps of building a route.StringMultiValueMatcher andQueryParam(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(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(String name)
CookieMatcher that matches against HttpSetCookies 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(Predicate<StreamingHttpRequest> predicate)
StreamingHttpRequests with a user-specified
predicate.predicate - the predicate to evaluate against requests.RouteContinuation for the next steps of building a route.RouteContinuation and(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.