public static final class HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig extends com.google.protobuf.GeneratedMessageV3 implements HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilder
The configuration for HTTP upgrades.
For each upgrade type desired, an UpgradeConfig must be added.
.. warning::
The current implementation of upgrade headers does not handle
multi-valued upgrade headers. Support for multi-valued headers may be
added in the future if needed.
.. warning::
The current implementation of upgrade headers does not work with HTTP/2
upstreams.
Protobuf type envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager.UpgradeConfig| Modifier and Type | Class and Description |
|---|---|
static class |
HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig.Builder
The configuration for HTTP upgrades.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
FILTERS_FIELD_NUMBER |
static int |
UPGRADE_TYPE_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int UPGRADE_TYPE_FIELD_NUMBER
public static final int FILTERS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getUpgradeType()
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;getUpgradeType in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic com.google.protobuf.ByteString getUpgradeTypeBytes()
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;getUpgradeTypeBytes in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic List<HttpConnectionManagerOuterClass.HttpFilter> getFiltersList()
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.config.filter.network.http_connection_manager.v2.HttpFilter filters = 2;getFiltersList in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic List<? extends HttpConnectionManagerOuterClass.HttpFilterOrBuilder> getFiltersOrBuilderList()
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.config.filter.network.http_connection_manager.v2.HttpFilter filters = 2;getFiltersOrBuilderList in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic int getFiltersCount()
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.config.filter.network.http_connection_manager.v2.HttpFilter filters = 2;getFiltersCount in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic HttpConnectionManagerOuterClass.HttpFilter getFilters(int index)
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.config.filter.network.http_connection_manager.v2.HttpFilter filters = 2;getFilters in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic HttpConnectionManagerOuterClass.HttpFilterOrBuilder getFiltersOrBuilder(int index)
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.config.filter.network.http_connection_manager.v2.HttpFilter filters = 2;getFiltersOrBuilder in interface HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig.Builder newBuilder()
public static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig.Builder newBuilder(HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig prototype)
public HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig getDefaultInstance()
public static com.google.protobuf.Parser<HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig> parser()
public com.google.protobuf.Parser<HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HttpConnectionManagerOuterClass.HttpConnectionManager.UpgradeConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.