org.springframework.cloud.gateway.route.RouteDefinitionWriter Java Examples

The following examples show how to use org.springframework.cloud.gateway.route.RouteDefinitionWriter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AbstractGatewayControllerEndpoint.java    From spring-cloud-gateway with Apache License 2.0 5 votes vote down vote up
public AbstractGatewayControllerEndpoint(
		RouteDefinitionLocator routeDefinitionLocator,
		List<GlobalFilter> globalFilters, List<GatewayFilterFactory> gatewayFilters,
		List<RoutePredicateFactory> routePredicates,
		RouteDefinitionWriter routeDefinitionWriter, RouteLocator routeLocator) {
	this.routeDefinitionLocator = routeDefinitionLocator;
	this.globalFilters = globalFilters;
	this.GatewayFilters = gatewayFilters;
	this.routePredicates = routePredicates;
	this.routeDefinitionWriter = routeDefinitionWriter;
	this.routeLocator = routeLocator;
}
 
Example #2
Source File: GatewayControllerEndpoint.java    From spring-cloud-gateway with Apache License 2.0 5 votes vote down vote up
public GatewayControllerEndpoint(List<GlobalFilter> globalFilters,
		List<GatewayFilterFactory> gatewayFilters,
		List<RoutePredicateFactory> routePredicates,
		RouteDefinitionWriter routeDefinitionWriter, RouteLocator routeLocator) {
	super(null, globalFilters, gatewayFilters, routePredicates, routeDefinitionWriter,
			routeLocator);
}
 
Example #3
Source File: GatewayLegacyControllerEndpoint.java    From spring-cloud-gateway with Apache License 2.0 5 votes vote down vote up
public GatewayLegacyControllerEndpoint(RouteDefinitionLocator routeDefinitionLocator,
		List<GlobalFilter> globalFilters, List<GatewayFilterFactory> GatewayFilters,
		List<RoutePredicateFactory> routePredicates,
		RouteDefinitionWriter routeDefinitionWriter, RouteLocator routeLocator) {
	super(routeDefinitionLocator, globalFilters, GatewayFilters, routePredicates,
			routeDefinitionWriter, routeLocator);
}
 
Example #4
Source File: GatewayAutoConfiguration.java    From spring-cloud-gateway with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnProperty(name = "spring.cloud.gateway.actuator.verbose.enabled",
		matchIfMissing = true)
@ConditionalOnAvailableEndpoint
public GatewayControllerEndpoint gatewayControllerEndpoint(
		List<GlobalFilter> globalFilters,
		List<GatewayFilterFactory> gatewayFilters,
		List<RoutePredicateFactory> routePredicates,
		RouteDefinitionWriter routeDefinitionWriter, RouteLocator routeLocator) {
	return new GatewayControllerEndpoint(globalFilters, gatewayFilters,
			routePredicates, routeDefinitionWriter, routeLocator);
}
 
Example #5
Source File: GatewayAutoConfiguration.java    From spring-cloud-gateway with Apache License 2.0 5 votes vote down vote up
@Bean
@Conditional(OnVerboseDisabledCondition.class)
@ConditionalOnAvailableEndpoint
public GatewayLegacyControllerEndpoint gatewayLegacyControllerEndpoint(
		RouteDefinitionLocator routeDefinitionLocator,
		List<GlobalFilter> globalFilters,
		List<GatewayFilterFactory> gatewayFilters,
		List<RoutePredicateFactory> routePredicates,
		RouteDefinitionWriter routeDefinitionWriter, RouteLocator routeLocator) {
	return new GatewayLegacyControllerEndpoint(routeDefinitionLocator,
			globalFilters, gatewayFilters, routePredicates, routeDefinitionWriter,
			routeLocator);
}
 
Example #6
Source File: DynamicRouteService.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Autowired
public DynamicRouteService(RouteDefinitionWriter routeDefinitionWriter) {
    this.routeDefinitionWriter = routeDefinitionWriter;
}