public static enum HttpConnectionManager.ServerHeaderTransformation extends Enum<HttpConnectionManager.ServerHeaderTransformation> implements com.google.protobuf.ProtocolMessageEnum
envoy.extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.ServerHeaderTransformation| Enum Constant and Description |
|---|
APPEND_IF_ABSENT
If no Server header is present, append Server server_name
If a Server header is present, pass it through.
|
OVERWRITE
Overwrite any Server header with the contents of server_name.
|
PASS_THROUGH
Pass through the value of the server header, and do not append a header
if none is present.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
APPEND_IF_ABSENT_VALUE
If no Server header is present, append Server server_name
If a Server header is present, pass it through.
|
static int |
OVERWRITE_VALUE
Overwrite any Server header with the contents of server_name.
|
static int |
PASS_THROUGH_VALUE
Pass through the value of the server header, and do not append a header
if none is present.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpConnectionManager.ServerHeaderTransformation |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<HttpConnectionManager.ServerHeaderTransformation> |
internalGetValueMap() |
static HttpConnectionManager.ServerHeaderTransformation |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HttpConnectionManager.ServerHeaderTransformation |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HttpConnectionManager.ServerHeaderTransformation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpConnectionManager.ServerHeaderTransformation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpConnectionManager.ServerHeaderTransformation OVERWRITE
Overwrite any Server header with the contents of server_name.
OVERWRITE = 0;public static final HttpConnectionManager.ServerHeaderTransformation APPEND_IF_ABSENT
If no Server header is present, append Server server_name If a Server header is present, pass it through.
APPEND_IF_ABSENT = 1;public static final HttpConnectionManager.ServerHeaderTransformation PASS_THROUGH
Pass through the value of the server header, and do not append a header if none is present.
PASS_THROUGH = 2;public static final HttpConnectionManager.ServerHeaderTransformation UNRECOGNIZED
public static final int OVERWRITE_VALUE
Overwrite any Server header with the contents of server_name.
OVERWRITE = 0;public static final int APPEND_IF_ABSENT_VALUE
If no Server header is present, append Server server_name If a Server header is present, pass it through.
APPEND_IF_ABSENT = 1;public static final int PASS_THROUGH_VALUE
Pass through the value of the server header, and do not append a header if none is present.
PASS_THROUGH = 2;public static HttpConnectionManager.ServerHeaderTransformation[] values()
for (HttpConnectionManager.ServerHeaderTransformation c : HttpConnectionManager.ServerHeaderTransformation.values()) System.out.println(c);
public static HttpConnectionManager.ServerHeaderTransformation valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static HttpConnectionManager.ServerHeaderTransformation valueOf(int value)
forNumber(int) instead.public static HttpConnectionManager.ServerHeaderTransformation forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HttpConnectionManager.ServerHeaderTransformation> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HttpConnectionManager.ServerHeaderTransformation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.