java.lang.Object
io.helidon.webserver.http2.Http2Route
- All Implemented Interfaces:
HttpRoute,Route,ServerLifecycle
A route for HTTP/2 only.
To create a route valid for any version of HTTP, please use
HttpRoute or methods
defined on HttpRouting.Builder.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.http.HttpRoute
HttpRoute.Builder -
Method Summary
Modifier and TypeMethodDescriptionaccepts(HttpPrologue prologue) Whether this route accept the provided request.voidAfter server stop.voidBefore server start.handler()Handler of this route.static Http2RouteCreate a new HTTP/2 only route.
-
Method Details
-
route
Create a new HTTP/2 only route.- Parameters:
method- method to handlepath- path patternhandler- handler- Returns:
- a new route
-
accepts
Description copied from interface:HttpRouteWhether this route accept the provided request. -
handler
Description copied from interface:HttpRouteHandler of this route. -
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycleBefore server start.- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycleAfter server stop.- Specified by:
afterStopin interfaceServerLifecycle
-