
com.github.mkopylec.charon.forwarding.RestTemplateConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of charon-spring-webmvc Show documentation
Show all versions of charon-spring-webmvc Show documentation
Reverse proxy implementation in form of Spring Boot starter
The newest version!
package com.github.mkopylec.charon.forwarding;
import com.github.mkopylec.charon.configuration.Configurer;
import org.springframework.http.client.ClientHttpRequestInterceptor;
import java.util.List;
public class RestTemplateConfigurer extends Configurer {
private RestTemplateConfigurer() {
super(new RestTemplateConfiguration());
}
public static RestTemplateConfigurer restTemplate() {
return new RestTemplateConfigurer();
}
public RestTemplateConfigurer set(TimeoutConfigurer timeoutConfigurer) {
configuredObject.setTimeoutConfiguration(timeoutConfigurer.configure());
return this;
}
public RestTemplateConfigurer set(ClientHttpRequestFactoryCreatorConfigurer> clientHttpRequestFactoryCreatorConfigurer) {
configuredObject.setClientHttpRequestFactoryCreator(clientHttpRequestFactoryCreatorConfigurer.configure());
return this;
}
public RestTemplateConfigurer set(List clientHttpRequestInterceptors) {
configuredObject.setClientHttpRequestInterceptors(clientHttpRequestInterceptors);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy