Class UriSpec
java.lang.Object
org.springframework.cloud.gateway.route.builder.UriSpec
- Direct Known Subclasses:
BooleanSpec, GatewayFilterSpec, PredicateSpec
A specification to add a URI to a route.
-
Method Summary
Modifier and TypeMethodDescriptioncustomize(Consumer<Route.AsyncBuilder> routeConsumer) replaceMetadata(Map<String, Object> metadata) Set the URI for the route.Set the URI for the route.
-
Method Details
-
customize
-
replaceMetadata
-
metadata
-
metadata
-
uri
Set the URI for the route.- Parameters:
uri- the URI for the route- Returns:
- a
Route.AsyncBuilder
-
uri
Set the URI for the route.- Parameters:
uri- the URI for the route.- Returns:
- a
Route.AsyncBuilderS
-