public final class InternalRedirectPolicy extends com.google.protobuf.GeneratedMessageV3 implements InternalRedirectPolicyOrBuilder
HTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`.Protobuf type
envoy.config.route.v4alpha.InternalRedirectPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
InternalRedirectPolicy.Builder
HTTP Internal Redirect :ref:`architecture overview <arch_overview_internal_redirects>`.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBER |
static int |
MAX_INTERNAL_REDIRECTS_FIELD_NUMBER |
static int |
PREDICATES_FIELD_NUMBER |
static int |
REDIRECT_RESPONSE_CODES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getAllowCrossSchemeRedirect()
Allow internal redirect to follow a target URI with a different scheme than the value of
x-forwarded-proto.
|
static InternalRedirectPolicy |
getDefaultInstance() |
InternalRedirectPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
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.
|
com.google.protobuf.Parser<InternalRedirectPolicy> |
getParserForType() |
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.
|
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.
|
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.
|
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.
|
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.
|
int |
getRedirectResponseCodes(int index)
Defines what upstream response codes are allowed to trigger internal redirect.
|
int |
getRedirectResponseCodesCount()
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.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
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.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static InternalRedirectPolicy.Builder |
newBuilder() |
static InternalRedirectPolicy.Builder |
newBuilder(InternalRedirectPolicy prototype) |
InternalRedirectPolicy.Builder |
newBuilderForType() |
protected InternalRedirectPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static InternalRedirectPolicy |
parseDelimitedFrom(InputStream input) |
static InternalRedirectPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InternalRedirectPolicy |
parseFrom(byte[] data) |
static InternalRedirectPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InternalRedirectPolicy |
parseFrom(ByteBuffer data) |
static InternalRedirectPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InternalRedirectPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static InternalRedirectPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InternalRedirectPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static InternalRedirectPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static InternalRedirectPolicy |
parseFrom(InputStream input) |
static InternalRedirectPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<InternalRedirectPolicy> |
parser() |
InternalRedirectPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MAX_INTERNAL_REDIRECTS_FIELD_NUMBER
public static final int REDIRECT_RESPONSE_CODES_FIELD_NUMBER
public static final int PREDICATES_FIELD_NUMBER
public static final int ALLOW_CROSS_SCHEME_REDIRECT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public 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 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_api_field_config.route.v4alpha.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;hasMaxInternalRedirects in interface InternalRedirectPolicyOrBuilderpublic 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_api_field_config.route.v4alpha.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;getMaxInternalRedirects in interface InternalRedirectPolicyOrBuilderpublic 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_api_field_config.route.v4alpha.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;getMaxInternalRedirectsOrBuilder in interface InternalRedirectPolicyOrBuilderpublic 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) = { ... }getRedirectResponseCodesList in interface InternalRedirectPolicyOrBuilderpublic 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) = { ... }getRedirectResponseCodesCount in interface InternalRedirectPolicyOrBuilderpublic 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) = { ... }getRedirectResponseCodes in interface InternalRedirectPolicyOrBuilderpublic 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.
repeated .envoy.config.core.v4alpha.TypedExtensionConfig predicates = 3;getPredicatesList in interface InternalRedirectPolicyOrBuilderpublic 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.
repeated .envoy.config.core.v4alpha.TypedExtensionConfig predicates = 3;getPredicatesOrBuilderList in interface InternalRedirectPolicyOrBuilderpublic 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.
repeated .envoy.config.core.v4alpha.TypedExtensionConfig predicates = 3;getPredicatesCount in interface InternalRedirectPolicyOrBuilderpublic 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.
repeated .envoy.config.core.v4alpha.TypedExtensionConfig predicates = 3;getPredicates in interface InternalRedirectPolicyOrBuilderpublic 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.
repeated .envoy.config.core.v4alpha.TypedExtensionConfig predicates = 3;getPredicatesOrBuilder in interface InternalRedirectPolicyOrBuilderpublic 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;getAllowCrossSchemeRedirect in interface InternalRedirectPolicyOrBuilderpublic 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 InternalRedirectPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InternalRedirectPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InternalRedirectPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InternalRedirectPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InternalRedirectPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InternalRedirectPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static InternalRedirectPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static InternalRedirectPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InternalRedirectPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static InternalRedirectPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static InternalRedirectPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static InternalRedirectPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic InternalRedirectPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static InternalRedirectPolicy.Builder newBuilder()
public static InternalRedirectPolicy.Builder newBuilder(InternalRedirectPolicy prototype)
public InternalRedirectPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected InternalRedirectPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static InternalRedirectPolicy getDefaultInstance()
public static com.google.protobuf.Parser<InternalRedirectPolicy> parser()
public com.google.protobuf.Parser<InternalRedirectPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public InternalRedirectPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.