public interface RouteStarter
Modifier and Type | Method and Description |
---|---|
StreamingHttpService |
buildStreaming()
Builds the
StreamingHttpService that performs the configured routing. |
RouteContinuation |
when(java.util.function.BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)
Begin a route that matches
StreamingHttpRequest and ConnectionContext with a user-specified
predicate . |
RouteContinuation |
when(java.util.function.Predicate<StreamingHttpRequest> predicate)
Begin a route that matches
StreamingHttpRequest s with a user-specified predicate . |
CookieMatcher |
whenCookie(java.lang.String name)
|
StringMultiValueMatcher |
whenHeader(java.lang.CharSequence name)
Begin a route with a
StringMultiValueMatcher that matches against the value(s) of the
name headers. |
RouteContinuation |
whenIsNotSsl()
Begin a route that matches requests that are not over SSL/TLS.
|
RouteContinuation |
whenIsSsl()
Begin a route that matches requests that are over SSL/TLS.
|
RouteContinuation |
whenMethod(HttpRequestMethod method)
Begin a route that matches requests where the
HttpRequestMethod is method . |
RouteContinuation |
whenMethodIsOneOf(HttpRequestMethod... methods)
Begin a route that matches requests where the
HttpRequestMethod is one of the methods . |
RouteContinuation |
whenPathEquals(java.lang.String path)
Begin a route that matches requests where the path is equal to
path . |
RouteContinuation |
whenPathIsOneOf(java.lang.String... paths)
Begin a route that matches requests where the path is equal to any of the specified
path s. |
RouteContinuation |
whenPathMatches(java.util.regex.Pattern pathRegex)
Begin a route that matches requests where the path matches the regex
pathRegex . |
RouteContinuation |
whenPathMatches(java.lang.String pathRegex)
Begin a route that matches requests where the path matches the regex
pathRegex . |
RouteContinuation |
whenPathStartsWith(java.lang.String pathPrefix)
Begin a route that matches requests where the path starts with
pathPrefix . |
StringMultiValueMatcher |
whenQueryParam(java.lang.String name)
Begin a route with a
StringMultiValueMatcher that matches against the value(s) of the request
parameter name . |
RouteContinuation whenMethod(HttpRequestMethod method)
HttpRequestMethod
is method
.method
- the method to match.RouteContinuation
for the next steps of building a route.RouteContinuation whenMethodIsOneOf(HttpRequestMethod... methods)
HttpRequestMethod
is one of the methods
.methods
- the methods to match.RouteContinuation
for the next steps of building a route.RouteContinuation whenPathEquals(java.lang.String path)
path
.path
- the path to match.RouteContinuation
for the next steps of building a route.RouteContinuation whenPathIsOneOf(java.lang.String... paths)
path
s.paths
- the paths to match.RouteContinuation
for the next steps of building a route.RouteContinuation whenPathStartsWith(java.lang.String pathPrefix)
pathPrefix
.pathPrefix
- the path prefix to match.RouteContinuation
for the next steps of building a route.RouteContinuation whenPathMatches(java.lang.String pathRegex)
pathRegex
.pathRegex
- the regex to match against the request path.RouteContinuation
for the next steps of building a route.RouteContinuation whenPathMatches(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 whenQueryParam(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 whenHeader(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 whenCookie(java.lang.String 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 whenIsSsl()
RouteContinuation
for the next steps of building a route.RouteContinuation whenIsNotSsl()
RouteContinuation
for the next steps of building a route.RouteContinuation when(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 when(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.StreamingHttpService buildStreaming()
StreamingHttpService
that performs the configured routing.StreamingHttpService
.