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 TypeMethodDescriptionio.helidon.http.PathMatchers.MatchResultaccepts(io.helidon.http.HttpPrologue prologue) voidvoidhandler()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
public io.helidon.http.PathMatchers.MatchResult accepts(io.helidon.http.HttpPrologue prologue) -
handler
-
beforeStart
public void beforeStart()- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStop
public void afterStop()- Specified by:
afterStopin interfaceServerLifecycle
-