org.springframework.cloud.netflix.zuul.filters.ProxyRequestHelper Java Examples

The following examples show how to use org.springframework.cloud.netflix.zuul.filters.ProxyRequestHelper. 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: ZuulConfiguration.java    From heimdall with Apache License 2.0 5 votes vote down vote up
@Bean
@ConditionalOnMissingBean({ SimpleHostRoutingFilter.class, CloseableHttpClient.class })
public SimpleHostRoutingFilter simpleHostRoutingFilter(ProxyRequestHelper helper, ZuulProperties zuulProperties,
		ApacheHttpClientConnectionManagerFactory connectionManagerFactory,
		ApacheHttpClientFactory httpClientFactory) {
	return new CustomHostRoutingFilter(helper, zuulProperties, connectionManagerFactory, httpClientFactory, circuitBreakerManager);
}
 
Example #2
Source File: HeimdallDecorationFilter.java    From heimdall with Apache License 2.0 5 votes vote down vote up
public HeimdallDecorationFilter(ProxyRouteLocator routeLocator, String dispatcherServletPath, ZuulProperties properties, ProxyRequestHelper proxyRequestHelper, RequestHelper requestHelper, CredentialRepository credentialRepository, EnvironmentInfoRepository environmentInfoRepository) {

        super(routeLocator, dispatcherServletPath, properties, proxyRequestHelper);
        this.routeLocator = routeLocator;
        this.properties = properties;
        this.urlPathHelper.setRemoveSemicolonContent(properties.isRemoveSemicolonContent());
        this.dispatcherServletPath = dispatcherServletPath;
        this.proxyRequestHelper = proxyRequestHelper;
        this.zuulServletPath = properties.getServletPath();
        this.requestHelper = requestHelper;
        this.credentialRepository = credentialRepository;
        this.environmentInfoRepository = environmentInfoRepository;
    }
 
Example #3
Source File: ContentFetchCommand.java    From convergent-ui with Apache License 2.0 5 votes vote down vote up
public ContentFetchCommand(String location, RequestContext requestContext, RestTemplate restTemplate) {
    super(HystrixCommandGroupKey.Factory.asKey("content-fetch"));
    this.location = location;
    this.requestContext = requestContext;
    this.restTemplate = restTemplate;
    helper = new ProxyRequestHelper();
}
 
Example #4
Source File: GatewayConfig.java    From api-layer with Eclipse Public License 2.0 4 votes vote down vote up
@Bean
@Autowired
public SimpleHostRoutingFilter simpleHostRoutingFilter2(ProxyRequestHelper helper, ZuulProperties zuulProperties,
        @Qualifier("secureHttpClientWithoutKeystore") CloseableHttpClient secureHttpClientWithoutKeystore) {
    return new SimpleHostRoutingFilter(helper, zuulProperties, secureHttpClientWithoutKeystore);
}
 
Example #5
Source File: ZuulConfiguration.java    From heimdall with Apache License 2.0 4 votes vote down vote up
@Override
public PreDecorationFilter preDecorationFilter(RouteLocator routeLocator, ProxyRequestHelper proxyRequestHelper) {

	return new HeimdallDecorationFilter(proxyRouteLocator(), this.server.getServletPrefix(), zuulProperties,
			proxyRequestHelper, requestHelper, credentialRepository, environmentInfoRepository);
}
 
Example #6
Source File: ZuulConfiguration.java    From heimdall with Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean({ SimpleHostRoutingFilter.class })
public SimpleHostRoutingFilter simpleHostRoutingFilter2(ProxyRequestHelper helper, ZuulProperties zuulProperties,
		CloseableHttpClient httpClient) {
	return new CustomHostRoutingFilter(helper, zuulProperties, httpClient, circuitBreakerManager);
}
 
Example #7
Source File: CustomHostRoutingFilter.java    From heimdall with Apache License 2.0 4 votes vote down vote up
public CustomHostRoutingFilter(ProxyRequestHelper helper, ZuulProperties properties,
		ApacheHttpClientConnectionManagerFactory connectionManagerFactory,
		ApacheHttpClientFactory httpClientFactory, CircuitBreakerManager circuitBreakerManager) {
	super(helper, properties, connectionManagerFactory, httpClientFactory);
	this.circuitBreakerManager = circuitBreakerManager;
}
 
Example #8
Source File: CustomHostRoutingFilter.java    From heimdall with Apache License 2.0 4 votes vote down vote up
public CustomHostRoutingFilter(ProxyRequestHelper helper, ZuulProperties properties, CloseableHttpClient httpClient,
		CircuitBreakerManager circuitBreakerManager) {
	super(helper, properties, httpClient);
	this.circuitBreakerManager = circuitBreakerManager;
}