-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRouting.BuilderARoutingbuilder.static interfaceRouting.RulesAn 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.Builderbuilder()Creates new instance ofrouting builder.default WebServercreateServer()Deprecated.since 2.0.0 please useWebServer.builder(Routing)insteaddefault WebServercreateServer(ServerConfiguration configuration)Deprecated.since 2.0.0 please useWebServer.builder(Routing)insteadvoidroute(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 newWebServerinstance with provided configuration and this routing.- Parameters:
configuration- a web server configuration- Returns:
- new
WebServerinstance - Throws:
IllegalStateException- if none SPI implementation found
-
createServer
@Deprecated default WebServer createServer()
Deprecated.since 2.0.0 please useWebServer.builder(Routing)insteadCreates newWebServerinstance with this routing and default configuration.- Returns:
- new
WebServerinstance - Throws:
IllegalStateException- if none SPI implementation found
-
-