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.void
After server stop.void
Before server start.handler()
Handler of this route.static Http2Route
Create 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:HttpRoute
Whether this route accept the provided request. -
handler
Description copied from interface:HttpRoute
Handler of this route. -
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
-