Interface RouteContinuation
-
public interface RouteContinuationMethods for continuing a route.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteContinuationand(java.util.function.BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)Extends the current route such that it matchesStreamingHttpRequestandConnectionContextwith a user-specifiedpredicate.RouteContinuationand(java.util.function.Predicate<StreamingHttpRequest> predicate)Extends the current route such that it matchesStreamingHttpRequests with a user-specifiedpredicate.CookieMatcherandCookie(java.lang.String name)Extends the current route with aCookieMatcherthat matches againstHttpSetCookies with the namename.StringMultiValueMatcherandHeader(java.lang.CharSequence name)Extends the current route with aStringMultiValueMatcherthat matches against the value(s) of thenameheaders.RouteContinuationandIsNotSsl()Extends the current route such that it matches requests that are not over SSL/TLS.RouteContinuationandIsSsl()Extends the current route such that it matches requests that are over SSL/TLS.RouteContinuationandMethod(HttpRequestMethod method)Extends the current route such that it matches requests where theHttpRequestMethodismethod.RouteContinuationandMethodIsOneOf(HttpRequestMethod... methods)Extends the current route such that it matches requests where theHttpRequestMethodis one of themethods.RouteContinuationandPathEquals(java.lang.String path)Extends the current route such that it matches requests where the path is equal topath.RouteContinuationandPathIsOneOf(java.lang.String... paths)Extends the current route such that it matches requests where the path is equal to any of the specifiedpaths.RouteContinuationandPathMatches(java.lang.String pathRegex)Extends the current route such that it matches requests where the path matches the regexpathRegex.RouteContinuationandPathMatches(java.util.regex.Pattern pathRegex)Extends the current route such that it matches requests where the path matches the regexpathRegex.RouteContinuationandPathStartsWith(java.lang.String pathPrefix)Extends the current route such that it matches requests where the path starts withpathPrefix.StringMultiValueMatcherandQueryParam(java.lang.String name)Extends the current route with aStringMultiValueMatcherthat matches against the value(s) of the request parametername.RouteContinuationexecutionStrategy(HttpExecutionStrategy routeStrategy)Specifies anHttpExecutionStrategyto be used for this route.RouteStarterthenRouteTo(BlockingHttpService service)Completes the route by specifying theBlockingHttpServiceto route requests to that match the previously specified criteria.RouteStarterthenRouteTo(BlockingStreamingHttpService service)Completes the route by specifying theBlockingStreamingHttpServiceto route requests to that match the previously specified criteria.RouteStarterthenRouteTo(HttpService service)Completes the route by specifying theHttpServiceto route requests to that match the previously specified criteria.RouteStarterthenRouteTo(StreamingHttpService service)Completes the route by specifying theStreamingHttpServiceto route requests to that match the previously specified criteria.
-
-
-
Method Detail
-
andMethod
RouteContinuation andMethod(HttpRequestMethod method)
Extends the current route such that it matches requests where theHttpRequestMethodismethod.- Parameters:
method- the method to match.- Returns:
RouteContinuationfor the next steps of building a route.
-
andMethodIsOneOf
RouteContinuation andMethodIsOneOf(HttpRequestMethod... methods)
Extends the current route such that it matches requests where theHttpRequestMethodis one of themethods.- Parameters:
methods- the methods to match.- Returns:
RouteContinuationfor the next steps of building a route.
-
andPathEquals
RouteContinuation andPathEquals(java.lang.String path)
Extends the current route such that it matches requests where the path is equal topath.- Parameters:
path- the path to match.- Returns:
RouteContinuationfor the next steps of building a route.
-
andPathIsOneOf
RouteContinuation andPathIsOneOf(java.lang.String... paths)
Extends the current route such that it matches requests where the path is equal to any of the specifiedpaths.- Parameters:
paths- the paths to match.- Returns:
RouteContinuationfor the next steps of building a route.
-
andPathStartsWith
RouteContinuation andPathStartsWith(java.lang.String pathPrefix)
Extends the current route such that it matches requests where the path starts withpathPrefix.- Parameters:
pathPrefix- the path prefix to match.- Returns:
RouteContinuationfor the next steps of building a route.
-
andPathMatches
RouteContinuation andPathMatches(java.lang.String pathRegex)
Extends the current route such that it matches requests where the path matches the regexpathRegex.- Parameters:
pathRegex- the regex to match against the request path.- Returns:
RouteContinuationfor the next steps of building a route.
-
andPathMatches
RouteContinuation andPathMatches(java.util.regex.Pattern pathRegex)
Extends the current route such that it matches requests where the path matches the regexpathRegex.- Parameters:
pathRegex- the regex to match against the request path.- Returns:
RouteContinuationfor the next steps of building a route.
-
andQueryParam
StringMultiValueMatcher andQueryParam(java.lang.String name)
Extends the current route with aStringMultiValueMatcherthat matches against the value(s) of the request parametername.- Parameters:
name- the request parameter name that must be present in the request in order to continue evaluation of this route.- Returns:
StringMultiValueMatcherfor the next steps of building a route.
-
andHeader
StringMultiValueMatcher andHeader(java.lang.CharSequence name)
Extends the current route with aStringMultiValueMatcherthat matches against the value(s) of thenameheaders.- Parameters:
name- The header name that must be present in the request in order to continue evaluation of this route.- Returns:
StringMultiValueMatcherfor the next steps of building a route.
-
andCookie
CookieMatcher andCookie(java.lang.String name)
Extends the current route with aCookieMatcherthat matches againstHttpSetCookies with the namename.- Parameters:
name- the cookie name that must be present in the request in order to continue evaluation of this route.- Returns:
CookieMatcherfor the next steps of building a route.
-
andIsSsl
RouteContinuation andIsSsl()
Extends the current route such that it matches requests that are over SSL/TLS.- Returns:
RouteContinuationfor the next steps of building a route.
-
andIsNotSsl
RouteContinuation andIsNotSsl()
Extends the current route such that it matches requests that are not over SSL/TLS.- Returns:
RouteContinuationfor the next steps of building a route.
-
and
RouteContinuation and(java.util.function.Predicate<StreamingHttpRequest> predicate)
Extends the current route such that it matchesStreamingHttpRequests with a user-specifiedpredicate.- Parameters:
predicate- the predicate to evaluate against requests.- Returns:
RouteContinuationfor the next steps of building a route.
-
and
RouteContinuation and(java.util.function.BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)
Extends the current route such that it matchesStreamingHttpRequestandConnectionContextwith a user-specifiedpredicate.- Parameters:
predicate- the predicate to evaluate against the request and connection context.- Returns:
RouteContinuationfor the next steps of building a route.
-
executionStrategy
RouteContinuation executionStrategy(HttpExecutionStrategy routeStrategy)
Specifies anHttpExecutionStrategyto be used for this route.- Parameters:
routeStrategy-HttpExecutionStrategyto be used for this route.- Returns:
RouteContinuationfor the next steps of building a route.
-
thenRouteTo
RouteStarter thenRouteTo(StreamingHttpService service)
Completes the route by specifying theStreamingHttpServiceto route requests to that match the previously specified criteria. Each call tothenRouteToresets the criteria, prior to building the next route.- Parameters:
service- theStreamingHttpServiceto route requests to.- Returns:
RouteStarterfor building another route.
-
thenRouteTo
RouteStarter thenRouteTo(HttpService service)
Completes the route by specifying theHttpServiceto route requests to that match the previously specified criteria. Each call tothenRouteToresets the criteria, prior to building the next route.- Parameters:
service- theHttpServiceto route requests to.- Returns:
RouteStarterfor building another route.
-
thenRouteTo
RouteStarter thenRouteTo(BlockingHttpService service)
Completes the route by specifying theBlockingHttpServiceto route requests to that match the previously specified criteria. Each call tothenRouteToresets the criteria, prior to building the next route.- Parameters:
service- theBlockingHttpServiceto route requests to.- Returns:
RouteStarterfor building another route.
-
thenRouteTo
RouteStarter thenRouteTo(BlockingStreamingHttpService service)
Completes the route by specifying theBlockingStreamingHttpServiceto route requests to that match the previously specified criteria. Each call tothenRouteToresets the criteria, prior to building the next route.- Parameters:
service- theBlockingStreamingHttpServiceto route requests to.- Returns:
RouteStarterfor building another route.
-
-