org.cattleframework.cloud.discovery.DiscoveryConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cattle-cloud-discovery-common Show documentation
Show all versions of cattle-cloud-discovery-common Show documentation
Cattle framework cloud discovery common component pom
/*
* Copyright (C) 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cattleframework.cloud.discovery;
import org.springframework.cloud.gateway.filter.ReactiveLoadBalancerClientFilter;
import org.springframework.core.Ordered;
/**
* 服务发现常量
*
* @author orange
*
*/
public class DiscoveryConstants {
private DiscoveryConstants() {
}
public static final String REST_TEMPLATE_NAME = "cloudRestTemplate";
public static final String REST_TEMPLATE_UTILS_NAME = "cloudRestTemplateUtils";
public static final String APPLICATION_NAME = "application-name";
public static final String CONTEXT_PATH = "context-path";
public static final String UNKNOWN = "unknown";
public static final String VERSION = "version";
public static class Order {
public static class Client {
public static class Feign {
public static final int TRANSFER_INTERCEPTOR_ORDER = Ordered.LOWEST_PRECEDENCE - 1;
}
public static class RestTemplate {
public static final int TRANSFER_INTERCEPTOR_ORDER = Ordered.LOWEST_PRECEDENCE - 1;
}
public static class Scg {
public static final int TRANSFER_FILTER_ORDER = ReactiveLoadBalancerClientFilter.LOAD_BALANCER_CLIENT_FILTER_ORDER
+ 1;
public static final int ENHANCED_FILTER_ORDER = ReactiveLoadBalancerClientFilter.LOAD_BALANCER_CLIENT_FILTER_ORDER
+ 1;
}
}
public static class Server {
public static class Servlet {
public static final int TRANSFER_FILTER_ORDER = Ordered.HIGHEST_PRECEDENCE + 9;
public static final int ENHANCED_FILTER_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;
}
public static class Reactive {
public static final int TRANSFER_FILTER_ORDER = Ordered.HIGHEST_PRECEDENCE + 9;
public static final int ENHANCED_FILTER_ORDER = Ordered.HIGHEST_PRECEDENCE + 10;
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy