- All Superinterfaces:
Prototype.Api,Routing,ServerLifecycle
HTTP routing.
This routing is capable of handling any HTTP version.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRouting.Builderbuilder()Creates new instance ofrouter builder.static HttpRoutingcreate()Create a default router.static HttpRoutingempty()Empty routing (all requests will returnStatus.NOT_FOUND_404.voidroute(ConnectionContext ctx, RoutingRequest request, RoutingResponse response) Route a request.security()Security associated with this routing.Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart, afterStop, beforeStart
-
Method Details
-
builder
Creates new instance ofrouter builder.- Returns:
- a new instance
-
create
Create a default router.- Returns:
- new default router
-
empty
Empty routing (all requests will returnStatus.NOT_FOUND_404.- Returns:
- empty routing
-
routingType
Description copied from interface:Routing- Specified by:
routingTypein interfaceRouting- Returns:
- this routing type
-
route
Route a request.- Parameters:
ctx- the underlying connection contextrequest- the request to routeresponse- the response for the request
-
security
HttpSecurity security()Security associated with this routing.- Returns:
- security
-