Class Http2Route

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

public class Http2Route extends Object implements HttpRoute
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.
  • Method Details

    • route

      public static Http2Route route(io.helidon.http.Method method, String path, Handler handler)
      Create a new HTTP/2 only route.
      Parameters:
      method - method to handle
      path - path pattern
      handler - handler
      Returns:
      a new route
    • accepts

      public io.helidon.http.PathMatchers.MatchResult accepts(io.helidon.http.HttpPrologue prologue)
      Specified by:
      accepts in interface HttpRoute
    • handler

      public Handler handler()
      Specified by:
      handler in interface HttpRoute
    • beforeStart

      public void beforeStart()
      Specified by:
      beforeStart in interface ServerLifecycle
    • afterStop

      public void afterStop()
      Specified by:
      afterStop in interface ServerLifecycle