Class Http2Route

java.lang.Object
io.helidon.webserver.Http1Route
io.helidon.webserver.http2.Http2Route
All Implemented Interfaces:
HttpRoute, ServerLifecycle

public class Http2Route extends Http1Route
A route for HTTP/2 only. To create a route valid for any version of HTTP, please use HttpRoute.
  • Field Details

    • EMPTY_PATH_MATCHER

      static final PathMatcher EMPTY_PATH_MATCHER
  • Method Details

    • matchVersion

      public boolean matchVersion(io.helidon.common.http.Http.Version version)
      Specified by:
      matchVersion in interface HttpRoute
      Overrides:
      matchVersion in class Http1Route
    • 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 method
      path - path pattern
      handler - 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 Matcher
      handler - handler
      methods - HTTP methods handled by this route
      Returns:
      a new HTTP/2 specific route
    • acceptedMethods

      default Set<io.helidon.common.http.Http.RequestMethod> acceptedMethods()
    • accepts

      default boolean accepts(io.helidon.common.http.Http.RequestMethod arg0)
    • acceptedMethods

      public Set<io.helidon.common.http.Http.RequestMethod> acceptedMethods()
    • accepts

      public boolean accepts(io.helidon.common.http.Http.RequestMethod arg0)
    • handler

      public Handler handler()
    • diagnosticEvent

      public Map<String,String> diagnosticEvent()
    • match

      public PathMatcher.Result match(CharSequence arg0)
    • toString

      public String toString()
      Overrides:
      toString in class Object