Class InternalRedirectPolicy
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.config.route.v3.InternalRedirectPolicy
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,InternalRedirectPolicyOrBuilder,Serializable
public final class InternalRedirectPolicy extends com.google.protobuf.GeneratedMessageV3 implements InternalRedirectPolicyOrBuilder
HTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`.
Protobuf typeenvoy.config.route.v3.InternalRedirectPolicy- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInternalRedirectPolicy.BuilderHTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBERstatic intMAX_INTERNAL_REDIRECTS_FIELD_NUMBERstatic intPREDICATES_FIELD_NUMBERstatic intREDIRECT_RESPONSE_CODES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)booleangetAllowCrossSchemeRedirect()Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto.static InternalRedirectPolicygetDefaultInstance()InternalRedirectPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.UInt32ValuegetMaxInternalRedirects()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.com.google.protobuf.UInt32ValueOrBuildergetMaxInternalRedirectsOrBuilder()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.com.google.protobuf.Parser<InternalRedirectPolicy>getParserForType()TypedExtensionConfiggetPredicates(int index)Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.intgetPredicatesCount()Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.List<TypedExtensionConfig>getPredicatesList()Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.TypedExtensionConfigOrBuildergetPredicatesOrBuilder(int index)Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.List<? extends TypedExtensionConfigOrBuilder>getPredicatesOrBuilderList()Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria.intgetRedirectResponseCodes(int index)Defines what upstream response codes are allowed to trigger internal redirect.intgetRedirectResponseCodesCount()Defines what upstream response codes are allowed to trigger internal redirect.List<Integer>getRedirectResponseCodesList()Defines what upstream response codes are allowed to trigger internal redirect.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasMaxInternalRedirects()An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static InternalRedirectPolicy.BuildernewBuilder()static InternalRedirectPolicy.BuildernewBuilder(InternalRedirectPolicy prototype)InternalRedirectPolicy.BuildernewBuilderForType()protected InternalRedirectPolicy.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static InternalRedirectPolicyparseDelimitedFrom(InputStream input)static InternalRedirectPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InternalRedirectPolicyparseFrom(byte[] data)static InternalRedirectPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InternalRedirectPolicyparseFrom(com.google.protobuf.ByteString data)static InternalRedirectPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InternalRedirectPolicyparseFrom(com.google.protobuf.CodedInputStream input)static InternalRedirectPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InternalRedirectPolicyparseFrom(InputStream input)static InternalRedirectPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static InternalRedirectPolicyparseFrom(ByteBuffer data)static InternalRedirectPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<InternalRedirectPolicy>parser()InternalRedirectPolicy.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MAX_INTERNAL_REDIRECTS_FIELD_NUMBER
public static final int MAX_INTERNAL_REDIRECTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REDIRECT_RESPONSE_CODES_FIELD_NUMBER
public static final int REDIRECT_RESPONSE_CODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREDICATES_FIELD_NUMBER
public static final int PREDICATES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBER
public static final int ALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasMaxInternalRedirects
public boolean hasMaxInternalRedirects()
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;- Specified by:
hasMaxInternalRedirectsin interfaceInternalRedirectPolicyOrBuilder- Returns:
- Whether the maxInternalRedirects field is set.
-
getMaxInternalRedirects
public com.google.protobuf.UInt32Value getMaxInternalRedirects()
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;- Specified by:
getMaxInternalRedirectsin interfaceInternalRedirectPolicyOrBuilder- Returns:
- The maxInternalRedirects.
-
getMaxInternalRedirectsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxInternalRedirectsOrBuilder()
An internal redirect is not handled, unless the number of previous internal redirects that a downstream request has encountered is lower than this value. In the case where a downstream request is bounced among multiple routes by internal redirect, the first route that hits this threshold, or does not set :ref:`internal_redirect_policy <envoy_v3_api_field_config.route.v3.RouteAction.internal_redirect_policy>` will pass the redirect back to downstream. If not specified, at most one redirect will be followed.
.google.protobuf.UInt32Value max_internal_redirects = 1;- Specified by:
getMaxInternalRedirectsOrBuilderin interfaceInternalRedirectPolicyOrBuilder
-
getRedirectResponseCodesList
public List<Integer> getRedirectResponseCodesList()
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }- Specified by:
getRedirectResponseCodesListin interfaceInternalRedirectPolicyOrBuilder- Returns:
- A list containing the redirectResponseCodes.
-
getRedirectResponseCodesCount
public int getRedirectResponseCodesCount()
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }- Specified by:
getRedirectResponseCodesCountin interfaceInternalRedirectPolicyOrBuilder- Returns:
- The count of redirectResponseCodes.
-
getRedirectResponseCodes
public int getRedirectResponseCodes(int index)
Defines what upstream response codes are allowed to trigger internal redirect. If unspecified, only 302 will be treated as internal redirect. Only 301, 302, 303, 307 and 308 are valid values. Any other codes will be ignored.
repeated uint32 redirect_response_codes = 2 [(.validate.rules) = { ... }- Specified by:
getRedirectResponseCodesin interfaceInternalRedirectPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The redirectResponseCodes at the given index.
-
getPredicatesList
public List<TypedExtensionConfig> getPredicatesList()
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;- Specified by:
getPredicatesListin interfaceInternalRedirectPolicyOrBuilder
-
getPredicatesOrBuilderList
public List<? extends TypedExtensionConfigOrBuilder> getPredicatesOrBuilderList()
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;- Specified by:
getPredicatesOrBuilderListin interfaceInternalRedirectPolicyOrBuilder
-
getPredicatesCount
public int getPredicatesCount()
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;- Specified by:
getPredicatesCountin interfaceInternalRedirectPolicyOrBuilder
-
getPredicates
public TypedExtensionConfig getPredicates(int index)
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;- Specified by:
getPredicatesin interfaceInternalRedirectPolicyOrBuilder
-
getPredicatesOrBuilder
public TypedExtensionConfigOrBuilder getPredicatesOrBuilder(int index)
Specifies a list of predicates that are queried when an upstream response is deemed to trigger an internal redirect by all other criteria. Any predicate in the list can reject the redirect, causing the response to be proxied to downstream. [#extension-category: envoy.internal_redirect_predicates]
repeated .envoy.config.core.v3.TypedExtensionConfig predicates = 3;- Specified by:
getPredicatesOrBuilderin interfaceInternalRedirectPolicyOrBuilder
-
getAllowCrossSchemeRedirect
public boolean getAllowCrossSchemeRedirect()
Allow internal redirect to follow a target URI with a different scheme than the value of x-forwarded-proto. The default is false.
bool allow_cross_scheme_redirect = 4;- Specified by:
getAllowCrossSchemeRedirectin interfaceInternalRedirectPolicyOrBuilder- Returns:
- The allowCrossSchemeRedirect.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static InternalRedirectPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InternalRedirectPolicy parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static InternalRedirectPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static InternalRedirectPolicy parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static InternalRedirectPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static InternalRedirectPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public InternalRedirectPolicy.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static InternalRedirectPolicy.Builder newBuilder()
-
newBuilder
public static InternalRedirectPolicy.Builder newBuilder(InternalRedirectPolicy prototype)
-
toBuilder
public InternalRedirectPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected InternalRedirectPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static InternalRedirectPolicy getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<InternalRedirectPolicy> parser()
-
getParserForType
public com.google.protobuf.Parser<InternalRedirectPolicy> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public InternalRedirectPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-