Updates MVC Server configuration metadata.

See gh-3267
This commit is contained in:
sgibb
2024-03-11 13:15:18 -04:00
parent 67fc53752d
commit 089438fb91
2 changed files with 19 additions and 1 deletions

View File

@@ -43,7 +43,7 @@ public class GatewayMvcProperties {
private List<RouteProperties> routes = new ArrayList<>();
/**
* List of Routes.
* Map of Routes.
*/
@NotNull
@Valid

View File

@@ -38,20 +38,38 @@ import static org.springframework.util.StringUtils.tokenizeToStringArray;
@Validated
public class RouteProperties {
/**
* The Route ID.
*/
private String id;
/**
* List of predicates for matching the Route.
*/
@NotEmpty
@Valid
private List<PredicateProperties> predicates = new ArrayList<>();
/**
* List of filters to be applied to the Route.
*/
@Valid
private List<FilterProperties> filters = new ArrayList<>();
/**
* The destination URI.
*/
@NotNull
private URI uri;
/**
* Metadata associated with the Route.
*/
private Map<String, Object> metadata = new HashMap<>();
/**
* The order of the Route, defaults to zero.
*/
private int order = 0;
public RouteProperties() {