java.lang.Object
io.helidon.webserver.http.HttpRoute.Builder
- All Implemented Interfaces:
Builder<HttpRoute.Builder,
,HttpRoute> Supplier<HttpRoute>
- Enclosing interface:
HttpRoute
public static class HttpRoute.Builder
extends Object
implements Builder<HttpRoute.Builder,HttpRoute>
Fluent API builder for
HttpRoute
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Handler to use.HTTP methods this route should handle.Method predicate to use.path
(PathMatcher pathMatcher) Path matcher to handle path.Path pattern to handle.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<HttpRoute.Builder,
HttpRoute> - Returns:
- instance of the built type
-
methods
HTTP methods this route should handle.- Parameters:
methods
- methods to handle- Returns:
- updated builder
-
methods
Method predicate to use.- Parameters:
methodPredicate
- method predicate- Returns:
- updated builder
-
path
Path pattern to handle.- Parameters:
pathPattern
- path pattern- Returns:
- updated builder
-
path
Path matcher to handle path.- Parameters:
pathMatcher
- path matcher- Returns:
- updated builder
-
handler
Handler to use.- Parameters:
handler
- handler- Returns:
- updated builder
-