com.netflix.zuul.context.CommonContextKeys Maven / Gradle / Ivy
/*
* Copyright 2018 Netflix, Inc.
*
* 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 com.netflix.zuul.context;
import com.google.common.collect.ImmutableList;
import com.netflix.client.config.IClientConfig;
import com.netflix.zuul.filters.ZuulFilter;
import com.netflix.zuul.message.http.HttpRequestMessage;
import com.netflix.zuul.message.http.HttpResponseMessage;
import com.netflix.zuul.niws.RequestAttempts;
import com.netflix.zuul.passport.CurrentPassport;
import com.netflix.zuul.stats.status.StatusCategory;
import io.netty.channel.Channel;
import java.net.InetAddress;
import java.util.Map;
import javax.inject.Provider;
/**
* Common Context Keys
*
* Author: Arthur Gonigberg
* Date: November 21, 2017
*/
public class CommonContextKeys {
public static final SessionContext.Key STATUS_CATEGORY = SessionContext.newKey("status_category");
public static final SessionContext.Key STATUS_CATEGORY_REASON =
SessionContext.newKey("status_category_reason");
public static final SessionContext.Key ORIGIN_STATUS_CATEGORY =
SessionContext.newKey("origin_status_category");
public static final SessionContext.Key ORIGIN_STATUS_CATEGORY_REASON =
SessionContext.newKey("origin_status_category_reason");
public static final SessionContext.Key ORIGIN_STATUS = SessionContext.newKey("origin_status");
public static final SessionContext.Key REQUEST_ATTEMPTS =
SessionContext.newKey("request_attempts");
public static final SessionContext.Key REST_CLIENT_CONFIG =
SessionContext.newKey("rest_client_config");
public static final SessionContext.Key> ZUUL_ENDPOINT =
SessionContext.newKey("_zuul_endpoint");
public static final SessionContext.Key
© 2015 - 2025 Weber Informatics LLC | Privacy Policy