- All Superinterfaces:
Route
,ServerLifecycle
- All Known Implementing Classes:
Http1Route
,Http2Route
A basic HTTP route (should be usable by ANY HTTP protocol version).
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaccepts
(HttpPrologue prologue) Whether this route accept the provided request.default PathMatchers.MatchResult
accepts
(HttpPrologue prologue, ServerRequestHeaders headers) Whether this route accept the provided request.static HttpRoute.Builder
builder()
Builder to build a new HTTP route.handler()
Handler of this route.default Optional
<PathMatcher> Path matcher for this HTTP route.Methods inherited from interface io.helidon.webserver.ServerLifecycle
afterStart, afterStop, beforeStart
-
Method Details
-
builder
Builder to build a new HTTP route.- Returns:
- builder
-
accepts
Whether this route accept the provided request.- Parameters:
prologue
- prologue of the request- Returns:
- result of the validation
- See Also:
-
accepts
Whether this route accept the provided request.- Parameters:
prologue
- prologue of the requestheaders
- headers of the request- Returns:
- result of the validation
- See Also:
-
handler
Handler handler()Handler of this route.- Returns:
- handler
-
pathMatcher
Path matcher for this HTTP route.- Returns:
- optional path matcher
-