com.alibaba.csp.ahas.sentinel.gateway.zuul.SentinelZuulGatewayProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-cloud-zuul-starter-ahas-sentinel Show documentation
Show all versions of spring-cloud-zuul-starter-ahas-sentinel Show documentation
The AHAS Sentinel Spring Cloud Zuul Starter
package com.alibaba.csp.ahas.sentinel.gateway.zuul;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
/**
* @author Eric Zhao
*/
@ConfigurationProperties("spring.cloud.sentinel.zuul")
@Validated
public class SentinelZuulGatewayProperties {
private FallbackProperties fallback;
public FallbackProperties getFallback() {
return fallback;
}
public SentinelZuulGatewayProperties setFallback(FallbackProperties fallback) {
this.fallback = fallback;
return this;
}
public static class FallbackProperties {
private String mode;
private String redirect;
private String responseBody;
private Integer responseStatus;
public String getMode() {
return mode;
}
public FallbackProperties setMode(String mode) {
this.mode = mode;
return this;
}
public String getRedirect() {
return redirect;
}
public FallbackProperties setRedirect(String redirect) {
this.redirect = redirect;
return this;
}
public String getResponseBody() {
return responseBody;
}
public FallbackProperties setResponseBody(String responseBody) {
this.responseBody = responseBody;
return this;
}
public Integer getResponseStatus() {
return responseStatus;
}
public FallbackProperties setResponseStatus(Integer responseStatus) {
this.responseStatus = responseStatus;
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy