Class Http1Route
java.lang.Object
io.helidon.webserver.http1.Http1Route
- All Implemented Interfaces:
HttpRoute, Route, ServerLifecycle
-
Nested Class Summary
Nested classes/interfaces inherited from interface HttpRoute
HttpRoute.Builder -
Method Summary
Modifier and TypeMethodDescriptionaccepts(HttpPrologue prologue) Whether this route accept the provided request.voidafterStart(WebServer webServer) After server start.voidAfter server stop.voidBefore server start.handler()Handler of this route.Path matcher for this HTTP route.static Http1RouteCreate an HTTP/1 specific route.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HttpRoute
acceptsModifier and TypeMethodDescriptiondefault PathMatchers.MatchResultaccepts(HttpPrologue prologue, ServerRequestHeaders headers) Whether this route accept the provided request.
-
Method Details
-
route
Create an HTTP/1 specific route.- Parameters:
method- accepted methodpath- path patternhandler- handler- Returns:
- a new HTTP/1.1 specific route
-
accepts
Description copied from interface:HttpRouteWhether this route accept the provided request. -
pathMatcher
Description copied from interface:HttpRoutePath matcher for this HTTP route.- Specified by:
pathMatcherin interfaceHttpRoute- Returns:
- optional path matcher
-
handler
-
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycleBefore server start. If this method throws an exception, server startup fails and the server attempts startup cleanup.- Specified by:
beforeStartin interfaceServerLifecycle
-
afterStart
Description copied from interface:ServerLifecycleAfter server start. If this method throws an exception, server startup fails and the server attempts startup cleanup.- Specified by:
afterStartin interfaceServerLifecycle- Parameters:
webServer- theWebServerthat was started
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycleAfter server stop. Exceptions thrown by this method failWebServer.stop()after listener cleanup has been attempted. If this method is invoked during startup cleanup, exceptions may failWebServer.start(). If this method is invoked during suspend or resume failure cleanup, exceptions may be suppressed on the original suspend or resume failure.- Specified by:
afterStopin interfaceServerLifecycle
-