Package io.helidon.webserver
Interface Routing
-
public interface RoutingRouting represents composition of HTTP request-response handlers with routing rules. It is together withServerConfiguration.Buildera cornerstone of theWebServer.- See Also:
WebServer
-
-
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 Modifier and Type Method Description static Routing.Builderbuilder()Creates new instance ofrouting builder.default WebServercreateServer()Creates newWebServerinstance with this routing and default configuration.default WebServercreateServer(ServerConfiguration configuration)Creates newWebServerinstance with provided configuration and this routing.voidroute(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 tryProcessbareResponse- HTTP response to tryProcess
-
builder
static Routing.Builder builder()
Creates new instance ofrouting builder.- Returns:
- a new instance
-
createServer
default WebServer createServer(ServerConfiguration configuration)
Creates newWebServerinstance with provided configuration and this routing.- Parameters:
configuration- a web server configuration- Returns:
- new
WebServerinstance - Throws:
IllegalStateException- if none SPI implementation found
-
createServer
default WebServer createServer()
Creates newWebServerinstance with this routing and default configuration.- Returns:
- new
WebServerinstance - Throws:
IllegalStateException- if none SPI implementation found
-
-