Skip to content

Commit 7249dcc

Browse files
author
Fredrich Ombico
committed
Deprecate constructor and create a new one with injected WebEndpointProperties
- the classes extending this class, `GatewayControllerEndpoint` and `GatewayLegacyControllerEndpoint`, use the new constructor that handles the base path being overridden - any other classes using the deprecated constructor would use the fixed base path `/actuator`
1 parent 84c351a commit 7249dcc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/actuate/AbstractGatewayControllerEndpoint.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ public class AbstractGatewayControllerEndpoint implements ApplicationEventPublis
9191

9292
private final SimpleMetadataReaderFactory simpleMetadataReaderFactory = new SimpleMetadataReaderFactory();
9393

94+
@Deprecated
95+
public AbstractGatewayControllerEndpoint(RouteDefinitionLocator routeDefinitionLocator,
96+
List<GlobalFilter> globalFilters, List<GatewayFilterFactory> gatewayFilters,
97+
List<RoutePredicateFactory> routePredicates, RouteDefinitionWriter routeDefinitionWriter,
98+
RouteLocator routeLocator) {
99+
this(routeDefinitionLocator, globalFilters, gatewayFilters, routePredicates,
100+
routeDefinitionWriter, routeLocator, new WebEndpointProperties());
101+
}
102+
94103
public AbstractGatewayControllerEndpoint(RouteDefinitionLocator routeDefinitionLocator,
95104
List<GlobalFilter> globalFilters, List<GatewayFilterFactory> gatewayFilters,
96105
List<RoutePredicateFactory> routePredicates, RouteDefinitionWriter routeDefinitionWriter,

0 commit comments

Comments
 (0)