Class CorsPolicy.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
com.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
io.envoyproxy.envoy.config.route.v3.CorsPolicy.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CorsPolicyOrBuilder, Cloneable
- Enclosing class:
CorsPolicy
public static final class CorsPolicy.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
implements CorsPolicyOrBuilder
Cors policy configuration. .. attention:: This message has been deprecated. Please use :ref:`CorsPolicy in filter extension <envoy_v3_api_msg_extensions.filters.http.cors.v3.CorsPolicy>` as as alternative. [#next-free-field: 14]Protobuf type
envoy.config.route.v3.CorsPolicy-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowOriginStringMatch(Iterable<? extends StringMatcher> values) Specifies string patterns that match allowed origins.addAllowOriginStringMatch(int index, StringMatcher value) Specifies string patterns that match allowed origins.addAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.addAllowOriginStringMatch(StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.addAllowOriginStringMatchBuilder(int index) Specifies string patterns that match allowed origins.build()clear()Specifies whether the resource allows credentials.Specifies the content for the ``access-control-allow-headers`` header.Specifies the content for the ``access-control-allow-methods`` header.Specifies string patterns that match allowed origins.Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.Specifies the content for the ``access-control-expose-headers`` header.Specifies the % of requests for which the CORS filter is enabled.Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.Specifies the content for the ``access-control-max-age`` header.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.com.google.protobuf.BoolValueSpecifies whether the resource allows credentials.com.google.protobuf.BoolValue.BuilderSpecifies whether the resource allows credentials.com.google.protobuf.BoolValueOrBuilderSpecifies whether the resource allows credentials.Specifies the content for the ``access-control-allow-headers`` header.com.google.protobuf.ByteStringSpecifies the content for the ``access-control-allow-headers`` header.Specifies the content for the ``access-control-allow-methods`` header.com.google.protobuf.ByteStringSpecifies the content for the ``access-control-allow-methods`` header.getAllowOriginStringMatch(int index) Specifies string patterns that match allowed origins.getAllowOriginStringMatchBuilder(int index) Specifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.intSpecifies string patterns that match allowed origins.Specifies string patterns that match allowed origins.getAllowOriginStringMatchOrBuilder(int index) Specifies string patterns that match allowed origins.List<? extends StringMatcherOrBuilder> Specifies string patterns that match allowed origins.com.google.protobuf.BoolValueSpecify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.com.google.protobuf.BoolValue.BuilderSpecify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.com.google.protobuf.BoolValueOrBuilderSpecify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSpecifies the content for the ``access-control-expose-headers`` header.com.google.protobuf.ByteStringSpecifies the content for the ``access-control-expose-headers`` header.Specifies the % of requests for which the CORS filter is enabled.Specifies the % of requests for which the CORS filter is enabled.Specifies the % of requests for which the CORS filter is enabled.com.google.protobuf.BoolValueSpecifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.com.google.protobuf.BoolValue.BuilderSpecifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.com.google.protobuf.BoolValueOrBuilderSpecifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.Specifies the content for the ``access-control-max-age`` header.com.google.protobuf.ByteStringSpecifies the content for the ``access-control-max-age`` header.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.booleanSpecifies whether the resource allows credentials.booleanSpecify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.booleanSpecifies the % of requests for which the CORS filter is enabled.booleanSpecifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.booleanSpecifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAllowCredentials(com.google.protobuf.BoolValue value) Specifies whether the resource allows credentials.mergeAllowPrivateNetworkAccess(com.google.protobuf.BoolValue value) Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.Specifies the % of requests for which the CORS filter is enabled.mergeForwardNotMatchingPreflights(com.google.protobuf.BoolValue value) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(CorsPolicy other) Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.removeAllowOriginStringMatch(int index) Specifies string patterns that match allowed origins.setAllowCredentials(com.google.protobuf.BoolValue value) Specifies whether the resource allows credentials.setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue) Specifies whether the resource allows credentials.setAllowHeaders(String value) Specifies the content for the ``access-control-allow-headers`` header.setAllowHeadersBytes(com.google.protobuf.ByteString value) Specifies the content for the ``access-control-allow-headers`` header.setAllowMethods(String value) Specifies the content for the ``access-control-allow-methods`` header.setAllowMethodsBytes(com.google.protobuf.ByteString value) Specifies the content for the ``access-control-allow-methods`` header.setAllowOriginStringMatch(int index, StringMatcher value) Specifies string patterns that match allowed origins.setAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins.setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue value) Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue.Builder builderForValue) Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched.setExposeHeaders(String value) Specifies the content for the ``access-control-expose-headers`` header.setExposeHeadersBytes(com.google.protobuf.ByteString value) Specifies the content for the ``access-control-expose-headers`` header.Specifies the % of requests for which the CORS filter is enabled.setFilterEnabled(RuntimeFractionalPercent.Builder builderForValue) Specifies the % of requests for which the CORS filter is enabled.setForwardNotMatchingPreflights(com.google.protobuf.BoolValue value) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.setForwardNotMatchingPreflights(com.google.protobuf.BoolValue.Builder builderForValue) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream.Specifies the content for the ``access-control-max-age`` header.setMaxAgeBytes(com.google.protobuf.ByteString value) Specifies the content for the ``access-control-max-age`` header.Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.setShadowEnabled(RuntimeFractionalPercent.Builder builderForValue) Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CorsPolicy.Builder>
-
mergeFrom
public CorsPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CorsPolicy.Builder>- Throws:
IOException
-
getEnabledSpecifierCase
- Specified by:
getEnabledSpecifierCasein interfaceCorsPolicyOrBuilder
-
clearEnabledSpecifier
-
getAllowOriginStringMatchList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchListin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchCount
public int getAllowOriginStringMatchCount()Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchCountin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchin interfaceCorsPolicyOrBuilder
-
setAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
setAllowOriginStringMatch
public CorsPolicy.Builder setAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatch
public CorsPolicy.Builder addAllowOriginStringMatch(int index, StringMatcher.Builder builderForValue) Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
addAllAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
clearAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
removeAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchOrBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchOrBuilderin interfaceCorsPolicyOrBuilder
-
getAllowOriginStringMatchOrBuilderList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11;- Specified by:
getAllowOriginStringMatchOrBuilderListin interfaceCorsPolicyOrBuilder
-
addAllowOriginStringMatchBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
addAllowOriginStringMatchBuilder
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchBuilderList
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.v3.StringMatcher allow_origin_string_match = 11; -
getAllowMethods
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Specified by:
getAllowMethodsin interfaceCorsPolicyOrBuilder- Returns:
- The allowMethods.
-
getAllowMethodsBytes
public com.google.protobuf.ByteString getAllowMethodsBytes()Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Specified by:
getAllowMethodsBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for allowMethods.
-
setAllowMethods
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Parameters:
value- The allowMethods to set.- Returns:
- This builder for chaining.
-
clearAllowMethods
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Returns:
- This builder for chaining.
-
setAllowMethodsBytes
Specifies the content for the ``access-control-allow-methods`` header.
string allow_methods = 2;- Parameters:
value- The bytes for allowMethods to set.- Returns:
- This builder for chaining.
-
getAllowHeaders
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Specified by:
getAllowHeadersin interfaceCorsPolicyOrBuilder- Returns:
- The allowHeaders.
-
getAllowHeadersBytes
public com.google.protobuf.ByteString getAllowHeadersBytes()Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Specified by:
getAllowHeadersBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for allowHeaders.
-
setAllowHeaders
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Parameters:
value- The allowHeaders to set.- Returns:
- This builder for chaining.
-
clearAllowHeaders
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Returns:
- This builder for chaining.
-
setAllowHeadersBytes
Specifies the content for the ``access-control-allow-headers`` header.
string allow_headers = 3;- Parameters:
value- The bytes for allowHeaders to set.- Returns:
- This builder for chaining.
-
getExposeHeaders
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Specified by:
getExposeHeadersin interfaceCorsPolicyOrBuilder- Returns:
- The exposeHeaders.
-
getExposeHeadersBytes
public com.google.protobuf.ByteString getExposeHeadersBytes()Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Specified by:
getExposeHeadersBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for exposeHeaders.
-
setExposeHeaders
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Parameters:
value- The exposeHeaders to set.- Returns:
- This builder for chaining.
-
clearExposeHeaders
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Returns:
- This builder for chaining.
-
setExposeHeadersBytes
Specifies the content for the ``access-control-expose-headers`` header.
string expose_headers = 4;- Parameters:
value- The bytes for exposeHeaders to set.- Returns:
- This builder for chaining.
-
getMaxAge
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Specified by:
getMaxAgein interfaceCorsPolicyOrBuilder- Returns:
- The maxAge.
-
getMaxAgeBytes
public com.google.protobuf.ByteString getMaxAgeBytes()Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Specified by:
getMaxAgeBytesin interfaceCorsPolicyOrBuilder- Returns:
- The bytes for maxAge.
-
setMaxAge
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Parameters:
value- The maxAge to set.- Returns:
- This builder for chaining.
-
clearMaxAge
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Returns:
- This builder for chaining.
-
setMaxAgeBytes
Specifies the content for the ``access-control-max-age`` header.
string max_age = 5;- Parameters:
value- The bytes for maxAge to set.- Returns:
- This builder for chaining.
-
hasAllowCredentials
public boolean hasAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
hasAllowCredentialsin interfaceCorsPolicyOrBuilder- Returns:
- Whether the allowCredentials field is set.
-
getAllowCredentials
public com.google.protobuf.BoolValue getAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsin interfaceCorsPolicyOrBuilder- Returns:
- The allowCredentials.
-
setAllowCredentials
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
setAllowCredentials
public CorsPolicy.Builder setAllowCredentials(com.google.protobuf.BoolValue.Builder builderForValue) Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
mergeAllowCredentials
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
clearAllowCredentials
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
getAllowCredentialsBuilder
public com.google.protobuf.BoolValue.Builder getAllowCredentialsBuilder()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
getAllowCredentialsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Specified by:
getAllowCredentialsOrBuilderin interfaceCorsPolicyOrBuilder
-
hasFilterEnabled
public boolean hasFilterEnabled()Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
hasFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The filterEnabled.
-
setFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9; -
setFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9; -
mergeFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9; -
clearFilterEnabled
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9; -
getFilterEnabledBuilder
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9; -
getFilterEnabledOrBuilder
Specifies the % of requests for which the CORS filter is enabled. If neither ``enabled``, ``filter_enabled``, nor ``shadow_enabled`` are specified, the CORS filter will be enabled for 100% of the requests. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.config.core.v3.RuntimeFractionalPercent filter_enabled = 9;- Specified by:
getFilterEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
hasShadowEnabled
public boolean hasShadowEnabled()Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
hasShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- Whether the shadowEnabled field is set.
-
getShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
getShadowEnabledin interfaceCorsPolicyOrBuilder- Returns:
- The shadowEnabled.
-
setShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10; -
setShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10; -
mergeShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10; -
clearShadowEnabled
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10; -
getShadowEnabledBuilder
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10; -
getShadowEnabledOrBuilder
Specifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced. This field is intended to be used when ``filter_enabled`` and ``enabled`` are off. One of those fields have to explicitly disable the filter in order for this setting to take effect. If :ref:`runtime_key <envoy_v3_api_field_config.core.v3.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests for which it will evaluate and track the request's ``Origin`` to determine if it's valid but will not enforce any policies.
.envoy.config.core.v3.RuntimeFractionalPercent shadow_enabled = 10;- Specified by:
getShadowEnabledOrBuilderin interfaceCorsPolicyOrBuilder
-
hasAllowPrivateNetworkAccess
public boolean hasAllowPrivateNetworkAccess()Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;- Specified by:
hasAllowPrivateNetworkAccessin interfaceCorsPolicyOrBuilder- Returns:
- Whether the allowPrivateNetworkAccess field is set.
-
getAllowPrivateNetworkAccess
public com.google.protobuf.BoolValue getAllowPrivateNetworkAccess()Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;- Specified by:
getAllowPrivateNetworkAccessin interfaceCorsPolicyOrBuilder- Returns:
- The allowPrivateNetworkAccess.
-
setAllowPrivateNetworkAccess
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12; -
setAllowPrivateNetworkAccess
public CorsPolicy.Builder setAllowPrivateNetworkAccess(com.google.protobuf.BoolValue.Builder builderForValue) Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12; -
mergeAllowPrivateNetworkAccess
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12; -
clearAllowPrivateNetworkAccess
Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12; -
getAllowPrivateNetworkAccessBuilder
public com.google.protobuf.BoolValue.Builder getAllowPrivateNetworkAccessBuilder()Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12; -
getAllowPrivateNetworkAccessOrBuilder
public com.google.protobuf.BoolValueOrBuilder getAllowPrivateNetworkAccessOrBuilder()Specify whether allow requests whose target server's IP address is more private than that from which the request initiator was fetched. More details refer to https://developer.chrome.com/blog/private-network-access-preflight.
.google.protobuf.BoolValue allow_private_network_access = 12;- Specified by:
getAllowPrivateNetworkAccessOrBuilderin interfaceCorsPolicyOrBuilder
-
hasForwardNotMatchingPreflights
public boolean hasForwardNotMatchingPreflights()Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;- Specified by:
hasForwardNotMatchingPreflightsin interfaceCorsPolicyOrBuilder- Returns:
- Whether the forwardNotMatchingPreflights field is set.
-
getForwardNotMatchingPreflights
public com.google.protobuf.BoolValue getForwardNotMatchingPreflights()Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;- Specified by:
getForwardNotMatchingPreflightsin interfaceCorsPolicyOrBuilder- Returns:
- The forwardNotMatchingPreflights.
-
setForwardNotMatchingPreflights
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13; -
setForwardNotMatchingPreflights
public CorsPolicy.Builder setForwardNotMatchingPreflights(com.google.protobuf.BoolValue.Builder builderForValue) Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13; -
mergeForwardNotMatchingPreflights
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13; -
clearForwardNotMatchingPreflights
Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13; -
getForwardNotMatchingPreflightsBuilder
public com.google.protobuf.BoolValue.Builder getForwardNotMatchingPreflightsBuilder()Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13; -
getForwardNotMatchingPreflightsOrBuilder
public com.google.protobuf.BoolValueOrBuilder getForwardNotMatchingPreflightsOrBuilder()Specifies if preflight requests not matching the configured allowed origin should be forwarded to the upstream. Default is true.
.google.protobuf.BoolValue forward_not_matching_preflights = 13;- Specified by:
getForwardNotMatchingPreflightsOrBuilderin interfaceCorsPolicyOrBuilder
-