public class RoutesSpec extends Object
ComponentRouteLocator
.Constructor and Description |
---|
RoutesSpec(org.springframework.context.ConfigurableApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
ComponentRouteLocator |
build() |
protected org.springframework.context.ConfigurableApplicationContext |
getContext() |
RoutesSpec |
route(Function<RouteSpec,RouteSpec> fn)
Adds a new
RouteSpec configured by the provided function. |
RoutesSpec |
route(String path,
Function<RouteSpec,RouteSpec> fn)
Adds a new
RouteSpec with the provided path and configured by the provided function. |
public RoutesSpec(org.springframework.context.ConfigurableApplicationContext context)
public RoutesSpec route(Function<RouteSpec,RouteSpec> fn)
RouteSpec
configured by the provided function.fn
- used for customization the route specpublic RoutesSpec route(String path, Function<RouteSpec,RouteSpec> fn)
RouteSpec
with the provided path and configured by the provided function.path
- the path of the routefn
- used for customization the route specpublic ComponentRouteLocator build()
protected org.springframework.context.ConfigurableApplicationContext getContext()
Copyright © 2021. All rights reserved.