java.lang.Object
io.helidon.webserver.Http1Route
io.helidon.webserver.http2.Http2Route
- All Implemented Interfaces:
HttpRoute,ServerLifecycle
A route for HTTP/2 only.
To create a route valid for any version of HTTP, please use
HttpRoute.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionSet<io.helidon.common.http.Http.RequestMethod>default Set<io.helidon.common.http.Http.RequestMethod>booleanaccepts(io.helidon.common.http.Http.RequestMethod arg0) default booleanaccepts(io.helidon.common.http.Http.RequestMethod arg0) handler()match(CharSequence arg0) booleanmatchVersion(io.helidon.common.http.Http.Version version) static Http2RouteCreate an HTTP/2 specific route.static Http2Routeroute(PathMatcher pathMatcher, Handler handler, io.helidon.common.http.Http.Method... methods) Create an HTTP/2 specific route.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.webserver.ServerLifecycle
afterStop, beforeStart
-
Field Details
-
EMPTY_PATH_MATCHER
-
-
Method Details
-
matchVersion
public boolean matchVersion(io.helidon.common.http.Http.Version version) - Specified by:
matchVersionin interfaceHttpRoute- Overrides:
matchVersionin classHttp1Route
-
route
public static Http2Route route(io.helidon.common.http.Http.Method method, String path, Handler handler) Create an HTTP/2 specific route.- Parameters:
method- accepted methodpath- path patternhandler- handler- Returns:
- a new HTTP/2.0 specific route
-
route
public static Http2Route route(PathMatcher pathMatcher, Handler handler, io.helidon.common.http.Http.Method... methods) Create an HTTP/2 specific route.- Parameters:
pathMatcher- URI Path Matcherhandler- handlermethods- HTTPmethodshandled by this route- Returns:
- a new HTTP/2 specific route
-
acceptedMethods
-
accepts
default boolean accepts(io.helidon.common.http.Http.RequestMethod arg0) -
acceptedMethods
-
accepts
public boolean accepts(io.helidon.common.http.Http.RequestMethod arg0) -
handler
-
diagnosticEvent
-
match
-
toString
-