| Modifier and Type | Method and Description |
|---|---|
Routing.Builder |
any(Handler... requestHandlers)
Routes all requests to provided handler(s).
|
Routing.Builder |
any(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes all requests with corresponding path to provided handler(s).
|
Routing.Builder |
any(String pathPattern,
Handler... requestHandlers)
Routes all requests with corresponding path to provided handler(s).
|
Routing.Builder |
anyOf(Iterable<Http.RequestMethod> methods,
Handler... requestHandlers)
Routes requests any specified method to provided handler(s).
|
Routing.Builder |
anyOf(Iterable<Http.RequestMethod> methods,
PathMatcher pathMatcher,
Handler... requestHandlers)
Routes requests with any specified method and corresponding path to provided handler(s).
|
Routing.Builder |
anyOf(Iterable<Http.RequestMethod> methods,
String pathPattern,
Handler... requestHandlers)
Routes requests with any specified method and corresponding path to provided handler(s).
|
Routing |
build()
Builds a new routing instance.
|
WebServer |
createServer()
Creates new
WebServer instance with this routing and default configuration. |
WebServer |
createServer(ServerConfiguration.Builder configurationBuilder)
Creates new
WebServer instance with provided configuration and this routing. |
WebServer |
createServer(ServerConfiguration configuration)
Creates new
WebServer instance with provided configuration and this routing. |
Routing.Builder |
delete(Handler... requestHandlers)
Routes all DELETE requests to provided handler(s).
|
Routing.Builder |
delete(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes DELETE requests with corresponding path to provided handler(s).
|
Routing.Builder |
delete(String pathPattern,
Handler... requestHandlers)
Routes DELETE requests with corresponding path to provided handler(s).
|
<T extends Throwable> |
error(Class<T> exceptionClass,
ErrorHandler<T> errorHandler)
Registers an error handler that handles the given type of exceptions.
|
Routing.Builder |
get(Handler... requestHandlers)
Routes all GET requests to provided handler(s).
|
Routing.Builder |
get(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes GET requests with corresponding path to provided handler(s).
|
Routing.Builder |
get(String pathPattern,
Handler... requestHandlers)
Routes GET requests with corresponding path to provided handler(s).
|
Routing.Builder |
head(Handler... requestHandlers)
Routes all HEAD requests to provided handler(s).
|
Routing.Builder |
head(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes HEAD requests with corresponding path to provided handler(s).
|
Routing.Builder |
head(String pathPattern,
Handler... requestHandlers)
Routes HEAD requests with corresponding path to provided handler(s).
|
Routing.Builder |
onNewWebServer(Consumer<WebServer> webServerConsumer)
Registers callback on created new
WebServer instance with this routing. |
Routing.Builder |
options(Handler... requestHandlers)
Routes all OPTIONS requests to provided handler(s).
|
Routing.Builder |
options(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes OPTIONS requests with corresponding path to provided handler(s).
|
Routing.Builder |
options(String pathPattern,
Handler... requestHandlers)
Routes OPTIONS requests with corresponding path to provided handler(s).
|
Routing.Builder |
post(Handler... requestHandlers)
Routes all POST requests to provided handler(s).
|
Routing.Builder |
post(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes POST requests with corresponding path to provided handler(s).
|
Routing.Builder |
post(String pathPattern,
Handler... requestHandlers)
Routes POST requests with corresponding path to provided handler(s).
|
Routing.Builder |
put(Handler... requestHandlers)
Routes all PUT requests to provided handler(s).
|
Routing.Builder |
put(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes PUT requests with corresponding path to provided handler(s).
|
Routing.Builder |
put(String pathPattern,
Handler... requestHandlers)
Routes PUT requests with corresponding path to provided handler(s).
|
Routing.Builder |
register(Service... services)
Registers builder consumer.
|
Routing.Builder |
register(String pathPattern,
Service... services)
Registers builder consumer.
|
Routing.Builder |
register(String pathPattern,
Supplier<? extends Service>... serviceBuilders)
Registers builder consumer.
|
Routing.Builder |
register(Supplier<? extends Service>... serviceBuilders)
Registers builder consumer.
|
Routing.Builder |
trace(Handler... requestHandlers)
Routes all TRACE requests to provided handler(s).
|
Routing.Builder |
trace(PathMatcher pathMatcher,
Handler... requestHandlers)
Routes TRACE requests with corresponding path to provided handler(s).
|
Routing.Builder |
trace(String pathPattern,
Handler... requestHandlers)
Routes TRACE requests with corresponding path to provided handler(s).
|
public Routing.Builder register(Supplier<? extends Service>... serviceBuilders)
Routing.Rulesregister in interface Routing.RulesserviceBuilders - service builder to register; they will be built as a first step of this
method executionpublic Routing.Builder register(Service... services)
Routing.Rulesregister in interface Routing.Rulesservices - services to registerpublic Routing.Builder register(String pathPattern, Service... services)
Routing.Rulesregister in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.services - services to registerpublic Routing.Builder register(String pathPattern, Supplier<? extends Service>... serviceBuilders)
Routing.Rulesregister in interface Routing.RulespathPattern - 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 executionpublic Routing.Builder get(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.get in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder get(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.get in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder get(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.get in interface Routing.RulespathMatcher - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder put(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.put in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder put(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.put in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder put(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.put in interface Routing.RulespathMatcher - define path for a registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder post(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.post in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder post(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.post in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder post(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.post in interface Routing.RulespathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder delete(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.delete in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder delete(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.delete in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder delete(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.delete in interface Routing.RulespathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder options(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.options in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder options(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.options in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder options(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.options in interface Routing.RulespathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder head(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.head in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder head(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.head in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder head(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.head in interface Routing.RulespathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder trace(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.trace in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder trace(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.trace in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder trace(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.trace in interface Routing.RulespathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder any(Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.any in interface Routing.RulesrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder any(String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.any in interface Routing.RulespathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder any(PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.any in interface Routing.RulespathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder anyOf(Iterable<Http.RequestMethod> methods, Handler... requestHandlers)
Routing.RulesServerRequest.next()
to continue processing on the next registered handler.anyOf in interface Routing.Rulesmethods - HTTP methodsrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder anyOf(Iterable<Http.RequestMethod> methods, String pathPattern, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.anyOf in interface Routing.Rulesmethods - HTTP methodspathPattern - a URI path pattern. See PathMatcher for pattern syntax reference.requestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder anyOf(Iterable<Http.RequestMethod> methods, PathMatcher pathMatcher, Handler... requestHandlers)
Routing.RulesServerRequest.next() to continue processing on the next registered handler.anyOf in interface Routing.Rulesmethods - HTTP methodspathMatcher - define path for registered routerrequestHandlers - handlers to tryProcess HTTP requestpublic Routing.Builder onNewWebServer(Consumer<WebServer> webServerConsumer)
Routing.RulesWebServer instance with this routing.onNewWebServer in interface Routing.RuleswebServerConsumer - a WebServer creation callbackpublic <T extends Throwable> Routing.Builder error(Class<T> exceptionClass, ErrorHandler<T> errorHandler)
T - an error handler typeexceptionClass - the type of exception to handle by this handlererrorHandler - the error handlerpublic Routing build()
public WebServer createServer(ServerConfiguration configuration)
WebServer instance with provided configuration and this routing.configuration - a web server configurationWebServer instanceIllegalStateException - if none SPI implementation foundpublic WebServer createServer(ServerConfiguration.Builder configurationBuilder)
WebServer instance with provided configuration and this routing.configurationBuilder - a web server configuration builderWebServer instanceIllegalStateException - if none SPI implementation foundpublic WebServer createServer()
WebServer instance with this routing and default configuration.WebServer instanceIllegalStateException - if none SPI implementation foundCopyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.