-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Routing.Builder
ARouting
builder.static interface
Routing.Rules
An API to define HTTP request routing rules.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static Routing.Builder
builder()
Creates new instance ofrouting builder
.default WebServer
createServer()
Deprecated.since 2.0.0 please useWebServer.builder(Routing)
insteaddefault WebServer
createServer(ServerConfiguration configuration)
Deprecated.since 2.0.0 please useWebServer.builder(Routing)
insteadvoid
route(BareRequest bareRequest, BareResponse bareResponse)
Process bare minimal request and response using this routing.
-
-
-
Method Detail
-
route
void route(BareRequest bareRequest, BareResponse bareResponse)
Process bare minimal request and response using this routing.- Parameters:
bareRequest
- HTTP request to processbareResponse
- HTTP response to process
-
builder
static Routing.Builder builder()
Creates new instance ofrouting builder
.- Returns:
- a new instance
-
createServer
@Deprecated default WebServer createServer(ServerConfiguration configuration)
Deprecated.since 2.0.0 please useWebServer.builder(Routing)
insteadCreates newWebServer
instance with provided configuration and this routing.- Parameters:
configuration
- a web server configuration- Returns:
- new
WebServer
instance - Throws:
IllegalStateException
- if none SPI implementation found
-
createServer
@Deprecated default WebServer createServer()
Deprecated.since 2.0.0 please useWebServer.builder(Routing)
insteadCreates newWebServer
instance with this routing and default configuration.- Returns:
- new
WebServer
instance - Throws:
IllegalStateException
- if none SPI implementation found
-
-