java.lang.Object
io.helidon.webserver.http.HttpRouting
- All Implemented Interfaces:
Prototype.Api
,Routing
,ServerLifecycle
HTTP routing.
This routing is capable of handling any HTTP version.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
After server stop.void
Before server start.static HttpRouting.Builder
builder()
Creates new instance ofrouter builder
.static HttpRouting
create()
Create a default router.static HttpRouting
empty()
Empty routing (all requests will returnStatus.NOT_FOUND_404
.void
route
(ConnectionContext ctx, RoutingRequest request, RoutingResponse response) Route a request.security()
Security associated with this routing.
-
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
-
route
Route a request. Handler HTTP filters and finds a route.- Parameters:
ctx
- contextrequest
- routing requestresponse
- routing response
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycle
Before server start.- Specified by:
beforeStart
in interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycle
After server stop.- Specified by:
afterStop
in interfaceServerLifecycle
-
security
Security associated with this routing.- Returns:
- security
-