public static interface Routing.Rules
Routing.Builder| Modifier and Type | Method and Description |
|---|---|
Routing.Rules |
any(Handler... requestHandlers)
Routes all requests to provided handler(s).
|
Routing.Rules |
any(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes all requests with corresponding path to provided handler(s).
|
Routing.Rules |
any(String pathPattern,
Handler... requestHandlers)
Routes all requests with corresponding path to provided handler(s).
|
Routing.Rules |
anyOf(Iterable<Http.RequestMethod> methods,
Handler... requestHandlers)
Routes requests any specified method to provided handler(s).
|
Routing.Rules |
anyOf(Iterable<Http.RequestMethod> methods,
PathMatcher pathMatcher,
Handler... requestHandlers)
Routes requests with any specified method and corresponding path to provided handler(s).
|
Routing.Rules |
anyOf(Iterable<Http.RequestMethod> methods,
String pathPattern,
Handler... requestHandlers)
Routes requests with any specified method and corresponding path to provided handler(s).
|
Routing.Rules |
delete(Handler... requestHandlers)
Routes all DELETE requests to provided handler(s).
|
Routing.Rules |
delete(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes DELETE requests with corresponding path to provided handler(s).
|
Routing.Rules |
delete(String pathPattern,
Handler... requestHandlers)
Routes DELETE requests with corresponding path to provided handler(s).
|
Routing.Rules |
get(Handler... requestHandlers)
Routes all GET requests to provided handler(s).
|
Routing.Rules |
get(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes GET requests with corresponding path to provided handler(s).
|
Routing.Rules |
get(String pathPattern,
Handler... requestHandlers)
Routes GET requests with corresponding path to provided handler(s).
|
Routing.Rules |
head(Handler... requestHandlers)
Routes all HEAD requests to provided handler(s).
|
Routing.Rules |
head(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes HEAD requests with corresponding path to provided handler(s).
|
Routing.Rules |
head(String pathPattern,
Handler... requestHandlers)
Routes HEAD requests with corresponding path to provided handler(s).
|
Routing.Rules |
onNewWebServer(Consumer<WebServer> webServerConsumer)
Registers callback on created new
WebServer instance with this routing. |
Routing.Rules |
options(Handler... requestHandlers)
Routes all OPTIONS requests to provided handler(s).
|
Routing.Rules |
options(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes OPTIONS requests with corresponding path to provided handler(s).
|
Routing.Rules |
options(String pathPattern,
Handler... requestHandlers)
Routes OPTIONS requests with corresponding path to provided handler(s).
|
Routing.Rules |
post(Handler... requestHandlers)
Routes all POST requests to provided handler(s).
|
Routing.Rules |
post(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes POST requests with corresponding path to provided handler(s).
|
Routing.Rules |
post(String pathPattern,
Handler... requestHandlers)
Routes POST requests with corresponding path to provided handler(s).
|
Routing.Rules |
put(Handler... requestHandlers)
Routes all PUT requests to provided handler(s).
|
Routing.Rules |
put(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes PUT requests with corresponding path to provided handler(s).
|
Routing.Rules |
put(String pathPattern,
Handler... requestHandlers)
Routes PUT requests with corresponding path to provided handler(s).
|
Routing.Rules |
register(Service... services)
Registers builder consumer.
|
Routing.Rules |
register(String pathPattern,
Service... services)
Registers builder consumer.
|
Routing.Rules |
register(String pathPattern,
Supplier<? extends Service>... serviceBuilders)
Registers builder consumer.
|
Routing.Rules |
register(Supplier<? extends Service>... serviceBuilders)
Registers builder consumer.
|
Routing.Rules |
trace(Handler... requestHandlers)
Routes all TRACE requests to provided handler(s).
|
Routing.Rules |
trace(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes TRACE requests with corresponding path to provided handler(s).
|
Routing.Rules |
trace(String pathPattern,
Handler... requestHandlers)
Routes TRACE requests with corresponding path to provided handler(s).
|
Routing.Rules register(Service... services)
services - services to registerRouting.Rules register(Supplier<? extends Service>... serviceBuilders)
serviceBuilders - service builder to register; they will be built as a first step of this
method executionRouting.Rules register(String pathPattern, Service... services)
pathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.services - services to registerRouting.Rules register(String pathPattern, Supplier<? 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 executionRouting.Rules get(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules get(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 requestRouting.Rules 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 requestRouting.Rules put(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules put(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 requestRouting.Rules 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 requestRouting.Rules post(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules post(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 requestRouting.Rules 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 requestRouting.Rules delete(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules delete(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 requestRouting.Rules 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 requestRouting.Rules options(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules options(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 requestRouting.Rules 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 requestRouting.Rules head(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules head(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 requestRouting.Rules 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 requestRouting.Rules trace(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules trace(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 requestRouting.Rules 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 requestRouting.Rules any(Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.requestHandlers - handlers to tryProcess HTTP requestRouting.Rules any(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 requestRouting.Rules 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 requestRouting.Rules anyOf(Iterable<Http.RequestMethod> methods, Handler... requestHandlers)
ServerRequest.next()
to continue processing on the next registered handler.methods - HTTP methodsrequestHandlers - handlers to tryProcess HTTP requestRouting.Rules anyOf(Iterable<Http.RequestMethod> methods, 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 requestRouting.Rules anyOf(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 requestRouting.Rules onNewWebServer(Consumer<WebServer> webServerConsumer)
WebServer instance with this routing.webServerConsumer - a WebServer creation callbackCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.