java.lang.Object
io.helidon.webserver.http.HttpRoute.Builder
- All Implemented Interfaces:
io.helidon.common.Builder<HttpRoute.Builder,,HttpRoute> Supplier<HttpRoute>
- Enclosing interface:
HttpRoute
public static class HttpRoute.Builder
extends Object
implements io.helidon.common.Builder<HttpRoute.Builder,HttpRoute>
Fluent API builder for
HttpRoute.-
Method Summary
Modifier and TypeMethodDescriptionbuild()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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
get, identity, update
-
Method Details
-
build
- Specified by:
buildin interfaceio.helidon.common.Builder<HttpRoute.Builder,HttpRoute>
-
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
-