T - the type to be returned by the subclasses (to support fluent API style)Routing.Builderpublic static interface Routing.Rules<T extends Routing.Rules>
Routing.Builder| Modifier and Type | Method | Description |
|---|---|---|
T |
any(Handler... requestHandlers) |
Routes all requests to provided handler(s).
|
T |
any(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes all requests with corresponding path to provided handler(s).
|
T |
any(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes all requests with corresponding path to provided handler(s).
|
T |
anyOf(java.lang.Iterable<Http.RequestMethod> methods,
Handler... requestHandlers) |
Routes requests any specified method to provided handler(s).
|
T |
anyOf(java.lang.Iterable<Http.RequestMethod> methods,
PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes requests with any specified method and corresponding path to provided handler(s).
|
T |
anyOf(java.lang.Iterable<Http.RequestMethod> methods,
java.lang.String pathPattern,
Handler... requestHandlers) |
Routes requests with any specified method and corresponding path to provided handler(s).
|
T |
delete(Handler... requestHandlers) |
Routes all DELETE requests to provided handler(s).
|
T |
delete(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes DELETE requests with corresponding path to provided handler(s).
|
T |
delete(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes DELETE requests with corresponding path to provided handler(s).
|
T |
get(Handler... requestHandlers) |
Routes all GET requests to provided handler(s).
|
T |
get(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes GET requests with corresponding path to provided handler(s).
|
T |
get(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes GET requests with corresponding path to provided handler(s).
|
T |
head(Handler... requestHandlers) |
Routes all HEAD requests to provided handler(s).
|
T |
head(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes HEAD requests with corresponding path to provided handler(s).
|
T |
head(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes HEAD requests with corresponding path to provided handler(s).
|
T |
onNewWebServer(java.util.function.Consumer<WebServer> webServerConsumer) |
Registers callback on created new
WebServer instance with this routing. |
T |
options(Handler... requestHandlers) |
Routes all OPTIONS requests to provided handler(s).
|
T |
options(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes OPTIONS requests with corresponding path to provided handler(s).
|
T |
options(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes OPTIONS requests with corresponding path to provided handler(s).
|
T |
post(Handler... requestHandlers) |
Routes all POST requests to provided handler(s).
|
T |
post(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes POST requests with corresponding path to provided handler(s).
|
T |
post(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes POST requests with corresponding path to provided handler(s).
|
T |
put(Handler... requestHandlers) |
Routes all PUT requests to provided handler(s).
|
T |
put(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes PUT requests with corresponding path to provided handler(s).
|
T |
put(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes PUT requests with corresponding path to provided handler(s).
|
T |
register(Builder<? extends Service>... serviceBuilders) |
Registers builder consumer.
|
T |
register(Service... services) |
Registers builder consumer.
|
T |
register(java.lang.String pathPattern,
Builder<? extends Service>... serviceBuilders) |
Registers builder consumer.
|
T |
register(java.lang.String pathPattern,
Service... services) |
Registers builder consumer.
|
T |
trace(Handler... requestHandlers) |
Routes all TRACE requests to provided handler(s).
|
T |
trace(PathMatcher pathMatcher,
Handler... requestHandlers) |
Routes TRACE requests with corresponding path to provided handler(s).
|
T |
trace(java.lang.String pathPattern,
Handler... requestHandlers) |
Routes TRACE requests with corresponding path to provided handler(s).
|
T register(Service... services)
services - services to registerT register(Builder<? extends Service>... serviceBuilders)
serviceBuilders - service builder to register; they will be built as a first step of this
method executionT register(java.lang.String pathPattern, Service... services)
pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.services - services to registerT register(java.lang.String pathPattern, Builder<? extends Service>... serviceBuilders)
pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.serviceBuilders - service builder to register; they will be built as a first step of this
method executionT get(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT get(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT get(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT put(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT put(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT put(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for a registered routerrequestHandlers - handlers to tryProcess HTTP requestT post(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT post(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT post(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestT delete(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT delete(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT delete(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestT options(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT options(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT options(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestT head(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT head(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT head(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestT trace(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT trace(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT trace(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestT any(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestT any(java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT any(PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.pathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestT anyOf(java.lang.Iterable<Http.RequestMethod> methods, Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.methods - HTTP methodsrequestHandlers - handlers to tryProcess HTTP requestT anyOf(java.lang.Iterable<Http.RequestMethod> methods, java.lang.String pathPattern, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.methods - HTTP methodspathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestT anyOf(java.lang.Iterable<Http.RequestMethod> methods, PathMatcher pathMatcher, Handler... requestHandlers)
ServerRequest.next() to continue processing on the next registered handler.methods - HTTP methodspathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.