public interface Routing
ServerConfiguration.Builder a cornerstone of the WebServer.WebServer| Modifier and Type | Interface and Description |
|---|---|
static class |
Routing.Builder
A
Routing builder. |
static interface |
Routing.Rules
An API to define HTTP request routing rules.
|
| Modifier and Type | Method and Description |
|---|---|
static Routing.Builder |
builder()
Creates new instance of
routing builder. |
default WebServer |
createServer()
Creates new
WebServer instance with this routing and default configuration. |
default WebServer |
createServer(ServerConfiguration configuration)
Creates new
WebServer instance with provided configuration and this routing. |
void |
route(BareRequest bareRequest,
BareResponse bareResponse)
Process bare minimal request and response using this routing.
|
void route(BareRequest bareRequest, BareResponse bareResponse)
bareRequest - HTTP request to tryProcessbareResponse - HTTP response to tryProcessstatic Routing.Builder builder()
routing builder.default WebServer createServer(ServerConfiguration configuration)
WebServer instance with provided configuration and this routing.configuration - a web server configurationWebServer instanceIllegalStateException - if none SPI implementation founddefault 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.