com.github.mkopylec.charon.configuration.RequestMappingConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of charon-spring-webflux Show documentation
Show all versions of charon-spring-webflux Show documentation
Reverse proxy implementation in form of Spring Boot starter
The newest version!
package com.github.mkopylec.charon.configuration;
import com.github.mkopylec.charon.forwarding.WebClientConfigurer;
import com.github.mkopylec.charon.forwarding.interceptors.RequestForwardingInterceptorConfigurer;
import com.github.mkopylec.charon.forwarding.interceptors.RequestForwardingInterceptorType;
public class RequestMappingConfigurer extends Configurer {
private RequestMappingConfigurer(String name) {
super(new RequestMappingConfiguration(name));
}
public static RequestMappingConfigurer requestMapping(String name) {
return new RequestMappingConfigurer(name);
}
public RequestMappingConfigurer pathRegex(String pathRegex) {
configuredObject.setPathRegex(pathRegex);
return this;
}
public RequestMappingConfigurer set(WebClientConfigurer webClientConfigurer) {
configuredObject.setWebClientConfiguration(webClientConfigurer.configure());
return this;
}
public RequestMappingConfigurer set(RequestForwardingInterceptorConfigurer> requestForwardingInterceptorConfigurer) {
configuredObject.addRequestForwardingInterceptor(requestForwardingInterceptorConfigurer.configure());
return this;
}
public RequestMappingConfigurer unset(RequestForwardingInterceptorType requestForwardingInterceptorType) {
configuredObject.removeRequestForwardingInterceptor(requestForwardingInterceptorType);
return this;
}
@Override
protected RequestMappingConfiguration configure() {
configuredObject.setRequestMappingConfigurer(this);
return super.configure();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy