All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.csp.ahas.sentinel.gateway.zuul.SentinelZuulGatewayProperties Maven / Gradle / Ivy

There is a newer version: 1.6.8-safe-jdk8
Show newest version
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