java.lang.Object
io.helidon.webserver.http1.Http1Route
- All Implemented Interfaces:
HttpRoute
,Route
,ServerLifecycle
A route for HTTP/1.1 only.
To create a route valid for any version of HTTP, please use
HttpRoute
.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.http.HttpRoute
HttpRoute.Builder
-
Method Summary
Modifier and TypeMethodDescriptionaccepts
(HttpPrologue prologue) Whether this route accept the provided request.void
afterStart
(WebServer webServer) After server start.void
After server stop.void
Before server start.handler()
Handler of this route.static Http1Route
Create an HTTP/1 specific route.
-
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:HttpRoute
Whether this route accept the provided request. -
handler
Description copied from interface:HttpRoute
Handler of this route. -
beforeStart
public void beforeStart()Description copied from interface:ServerLifecycle
Before server start.- Specified by:
beforeStart
in interfaceServerLifecycle
-
afterStart
Description copied from interface:ServerLifecycle
After server start.- Specified by:
afterStart
in interfaceServerLifecycle
- Parameters:
webServer
- theWebServer
that was started
-
afterStop
public void afterStop()Description copied from interface:ServerLifecycle
After server stop.- Specified by:
afterStop
in interfaceServerLifecycle
-