Class Http1Route

java.lang.Object
io.helidon.webserver.http1.Http1Route
All Implemented Interfaces:
HttpRoute, Route, ServerLifecycle

public class Http1Route extends Object implements HttpRoute
A route for HTTP/1.1 only. To create a route valid for any version of HTTP, please use HttpRoute.
  • Method Details

    • route

      public static Http1Route route(io.helidon.http.Method method, String path, Handler handler)
      Create an HTTP/1 specific route.
      Parameters:
      method - accepted method
      path - path pattern
      handler - handler
      Returns:
      a new HTTP/1.1 specific route
    • accepts

      public io.helidon.http.PathMatchers.MatchResult accepts(io.helidon.http.HttpPrologue prologue)
      Description copied from interface: HttpRoute
      Whether this route accept the provided request.
      Specified by:
      accepts in interface HttpRoute
      Parameters:
      prologue - prologue of the request
      Returns:
      result of the validation
      See Also:
      • PathMatchers.MatchResult.notAccepted()
    • handler

      public Handler handler()
      Description copied from interface: HttpRoute
      Handler of this route.
      Specified by:
      handler in interface HttpRoute
      Returns:
      handler
    • beforeStart

      public void beforeStart()
      Description copied from interface: ServerLifecycle
      Before server start.
      Specified by:
      beforeStart in interface ServerLifecycle
    • afterStart

      public void afterStart(WebServer webServer)
      Description copied from interface: ServerLifecycle
      After server start.
      Specified by:
      afterStart in interface ServerLifecycle
      Parameters:
      webServer - the WebServer that was started
    • afterStop

      public void afterStop()
      Description copied from interface: ServerLifecycle
      After server stop.
      Specified by:
      afterStop in interface ServerLifecycle