public interface RouteStarter
| Modifier and Type | Method and Description |
|---|---|
StreamingHttpService |
buildStreaming()
Builds the
StreamingHttpService that performs the configured routing. |
RouteContinuation |
when(BiPredicate<ConnectionContext,StreamingHttpRequest> predicate)
Begin a route that matches
StreamingHttpRequest and ConnectionContext with a user-specified
predicate. |
RouteContinuation |
when(Predicate<StreamingHttpRequest> predicate)
Begin a route that matches
StreamingHttpRequests with a user-specified predicate. |
CookieMatcher |
whenCookie(String name)
|
StringMultiValueMatcher |
whenHeader(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(String path)
Begin a route that matches requests where the path is equal to
path. |
RouteContinuation |
whenPathIsOneOf(String... paths)
Begin a route that matches requests where the path is equal to any of the specified
paths. |
RouteContinuation |
whenPathMatches(Pattern pathRegex)
Begin a route that matches requests where the path matches the regex
pathRegex. |
RouteContinuation |
whenPathMatches(String pathRegex)
Begin a route that matches requests where the path matches the regex
pathRegex. |
RouteContinuation |
whenPathStartsWith(String pathPrefix)
Begin a route that matches requests where the path starts with
pathPrefix. |
StringMultiValueMatcher |
whenQueryParam(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(String path)
path.path - the path to match.RouteContinuation for the next steps of building a route.RouteContinuation whenPathIsOneOf(String... paths)
paths.paths - the paths to match.RouteContinuation for the next steps of building a route.RouteContinuation whenPathStartsWith(String pathPrefix)
pathPrefix.pathPrefix - the path prefix to match.RouteContinuation for the next steps of building a route.RouteContinuation whenPathMatches(String pathRegex)
pathRegex.pathRegex - the regex to match against the request path.RouteContinuation for the next steps of building a route.RouteContinuation whenPathMatches(Pattern pathRegex)
pathRegex.pathRegex - the regex to match against the request path.RouteContinuation for the next steps of building a route.StringMultiValueMatcher whenQueryParam(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(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(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(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 when(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.