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.Path matcher for this HTTP route.static Http2Route
Create a new HTTP/2 only route.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart
-
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
-
pathMatcher
Description copied from interface:HttpRoute
Path matcher for this HTTP route.- Specified by:
pathMatcher
in interfaceHttpRoute
- Returns:
- optional path matcher
-