Package io.envoyproxy.envoy.api.v2.route
Interface CorsPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CorsPolicy,CorsPolicy.Builder
public interface CorsPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.BoolValueSpecifies 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.getAllowOrigin(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ByteStringgetAllowOriginBytes(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.intDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated.getAllowOriginRegex(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.com.google.protobuf.ByteStringgetAllowOriginRegexBytes(int index) Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.intDeprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated.getAllowOriginStringMatch(int index) 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.BoolValueDeprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated.com.google.protobuf.BoolValueOrBuilderDeprecated.Specifies 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 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.booleanSpecifies whether the resource allows credentials.booleanDeprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated.booleanSpecifies the % of requests for which the CORS filter is enabled.booleanSpecifies the % of requests for which the CORS policies will be evaluated and tracked, but not enforced.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAllowOriginList
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Returns:
- A list containing the allowOrigin.
-
getAllowOriginCount
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Returns:
- The count of allowOrigin.
-
getAllowOrigin
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
index- The index of the element to return.- Returns:
- The allowOrigin at the given index.
-
getAllowOriginBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin is deprecated. See envoy/api/v2/route/route_components.proto;l=495Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match`.
repeated string allow_origin = 1 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOrigin at the given index.
-
getAllowOriginRegexList
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Returns:
- A list containing the allowOriginRegex.
-
getAllowOriginRegexCount
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Returns:
- The count of allowOriginRegex.
-
getAllowOriginRegex
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Parameters:
index- The index of the element to return.- Returns:
- The allowOriginRegex at the given index.
-
getAllowOriginRegexBytes
Deprecated.envoy.api.v2.route.CorsPolicy.allow_origin_regex is deprecated. See envoy/api/v2/route/route_components.proto;l=505Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match. .. attention:: This field has been deprecated in favor of `allow_origin_string_match` as it is not safe for use with untrusted input in all cases.
repeated string allow_origin_regex = 8 [deprecated = true, (.validate.rules) = { ... }- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOriginRegex at the given index.
-
getAllowOriginStringMatchList
List<StringMatcher> getAllowOriginStringMatchList()Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatch
Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchCount
int getAllowOriginStringMatchCount()Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.StringMatcher allow_origin_string_match = 11; -
getAllowOriginStringMatchOrBuilderList
List<? extends StringMatcherOrBuilder> getAllowOriginStringMatchOrBuilderList()Specifies string patterns that match allowed origins. An origin is allowed if any of the string matchers match.
repeated .envoy.type.matcher.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.StringMatcher allow_origin_string_match = 11; -
getAllowMethods
String getAllowMethods()Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Returns:
- The allowMethods.
-
getAllowMethodsBytes
com.google.protobuf.ByteString getAllowMethodsBytes()Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;- Returns:
- The bytes for allowMethods.
-
getAllowHeaders
String getAllowHeaders()Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Returns:
- The allowHeaders.
-
getAllowHeadersBytes
com.google.protobuf.ByteString getAllowHeadersBytes()Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;- Returns:
- The bytes for allowHeaders.
-
getExposeHeaders
String getExposeHeaders()Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Returns:
- The exposeHeaders.
-
getExposeHeadersBytes
com.google.protobuf.ByteString getExposeHeadersBytes()Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;- Returns:
- The bytes for exposeHeaders.
-
getMaxAge
String getMaxAge()Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Returns:
- The maxAge.
-
getMaxAgeBytes
com.google.protobuf.ByteString getMaxAgeBytes()Specifies the content for the *access-control-max-age* header.
string max_age = 5;- Returns:
- The bytes for maxAge.
-
hasAllowCredentials
boolean hasAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Returns:
- Whether the allowCredentials field is set.
-
getAllowCredentials
com.google.protobuf.BoolValue getAllowCredentials()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;- Returns:
- The allowCredentials.
-
getAllowCredentialsOrBuilder
com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6; -
hasEnabled
Deprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Returns:
- Whether the enabled field is set.
-
getEnabled
Deprecated.envoy.api.v2.route.CorsPolicy.enabled is deprecated. See envoy/api/v2/route/route_components.proto;l=534Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true];- Returns:
- The enabled.
-
getEnabledOrBuilder
Deprecated.Specifies if the CORS filter is enabled. Defaults to true. Only effective on route. .. attention:: **This field is deprecated**. Set the :ref:`filter_enabled<envoy_api_field_route.CorsPolicy.filter_enabled>` field instead.
.google.protobuf.BoolValue enabled = 7 [deprecated = true, (.envoy.annotations.disallowed_by_default) = true]; -
hasFilterEnabled
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_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Returns:
- Whether the filterEnabled field is set.
-
getFilterEnabled
RuntimeFractionalPercent 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_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;- Returns:
- The filterEnabled.
-
getFilterEnabledOrBuilder
RuntimeFractionalPercentOrBuilder 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_api_field_core.RuntimeFractionalPercent.runtime_key>` is specified, Envoy will lookup the runtime key to get the percentage of requests to filter.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9; -
hasShadowEnabled
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_api_field_core.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.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Returns:
- Whether the shadowEnabled field is set.
-
getShadowEnabled
RuntimeFractionalPercent 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_api_field_core.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.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;- Returns:
- The shadowEnabled.
-
getShadowEnabledOrBuilder
RuntimeFractionalPercentOrBuilder 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_api_field_core.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.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10; -
getEnabledSpecifierCase
CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
-