Skip to content

Commit

Permalink
Updates MVC Server configuration metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
spencergibb committed Mar 11, 2024
1 parent 67fc537 commit 089438f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class GatewayMvcProperties {
private List<RouteProperties> routes = new ArrayList<>();

/**
* List of Routes.
* Map of Routes.
*/
@NotNull
@Valid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,38 @@
@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() {
Expand Down

0 comments on commit 089438f

Please sign in to comment.