public interface CorsPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.BoolValue |
getAllowCredentials()
Specifies whether the resource allows credentials.
|
com.google.protobuf.BoolValueOrBuilder |
getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
|
String |
getAllowHeaders()
Specifies the content for the *access-control-allow-headers* header.
|
com.google.protobuf.ByteString |
getAllowHeadersBytes()
Specifies the content for the *access-control-allow-headers* header.
|
String |
getAllowMethods()
Specifies the content for the *access-control-allow-methods* header.
|
com.google.protobuf.ByteString |
getAllowMethodsBytes()
Specifies the content for the *access-control-allow-methods* header.
|
String |
getAllowOrigin(int index)
Specifies the origins that will be allowed to do CORS requests.
|
com.google.protobuf.ByteString |
getAllowOriginBytes(int index)
Specifies the origins that will be allowed to do CORS requests.
|
int |
getAllowOriginCount()
Specifies the origins that will be allowed to do CORS requests.
|
List<String> |
getAllowOriginList()
Specifies the origins that will be allowed to do CORS requests.
|
String |
getAllowOriginRegex(int index)
Specifies regex patterns that match allowed origins.
|
com.google.protobuf.ByteString |
getAllowOriginRegexBytes(int index)
Specifies regex patterns that match allowed origins.
|
int |
getAllowOriginRegexCount()
Specifies regex patterns that match allowed origins.
|
List<String> |
getAllowOriginRegexList()
Specifies regex patterns that match allowed origins.
|
com.google.protobuf.BoolValue |
getEnabled()
Deprecated.
|
com.google.protobuf.BoolValueOrBuilder |
getEnabledOrBuilder()
Deprecated.
|
CorsPolicy.EnabledSpecifierCase |
getEnabledSpecifierCase() |
String |
getExposeHeaders()
Specifies the content for the *access-control-expose-headers* header.
|
com.google.protobuf.ByteString |
getExposeHeadersBytes()
Specifies the content for the *access-control-expose-headers* header.
|
RuntimeFractionalPercent |
getFilterEnabled()
Specifies if CORS is enabled.
|
RuntimeFractionalPercentOrBuilder |
getFilterEnabledOrBuilder()
Specifies if CORS is enabled.
|
String |
getMaxAge()
Specifies the content for the *access-control-max-age* header.
|
com.google.protobuf.ByteString |
getMaxAgeBytes()
Specifies the content for the *access-control-max-age* header.
|
RuntimeFractionalPercent |
getShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but
does not enforce any policies.
|
RuntimeFractionalPercentOrBuilder |
getShadowEnabledOrBuilder()
Specifies if CORS policies are evaluated and tracked when filter is off but
does not enforce any policies.
|
boolean |
hasAllowCredentials()
Specifies whether the resource allows credentials.
|
boolean |
hasEnabled()
Deprecated.
|
boolean |
hasFilterEnabled()
Specifies if CORS is enabled.
|
boolean |
hasShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but
does not enforce any policies.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofList<String> getAllowOriginList()
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;int getAllowOriginCount()
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;String getAllowOrigin(int index)
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;com.google.protobuf.ByteString getAllowOriginBytes(int index)
Specifies the origins that will be allowed to do CORS requests. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin = 1;List<String> getAllowOriginRegexList()
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }int getAllowOriginRegexCount()
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }String getAllowOriginRegex(int index)
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }com.google.protobuf.ByteString getAllowOriginRegexBytes(int index)
Specifies regex patterns that match allowed origins. An origin is allowed if either allow_origin or allow_origin_regex match.
repeated string allow_origin_regex = 8 [(.validate.rules) = { ... }String getAllowMethods()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;com.google.protobuf.ByteString getAllowMethodsBytes()
Specifies the content for the *access-control-allow-methods* header.
string allow_methods = 2;String getAllowHeaders()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;com.google.protobuf.ByteString getAllowHeadersBytes()
Specifies the content for the *access-control-allow-headers* header.
string allow_headers = 3;String getExposeHeaders()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;com.google.protobuf.ByteString getExposeHeadersBytes()
Specifies the content for the *access-control-expose-headers* header.
string expose_headers = 4;String getMaxAge()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;com.google.protobuf.ByteString getMaxAgeBytes()
Specifies the content for the *access-control-max-age* header.
string max_age = 5;boolean hasAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;com.google.protobuf.BoolValue getAllowCredentials()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Specifies whether the resource allows credentials.
.google.protobuf.BoolValue allow_credentials = 6;@Deprecated boolean hasEnabled()
Specifies if CORS 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];@Deprecated com.google.protobuf.BoolValue getEnabled()
Specifies if CORS 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];@Deprecated com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Specifies if CORS 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];boolean hasFilterEnabled()
Specifies if CORS is enabled. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;RuntimeFractionalPercent getFilterEnabled()
Specifies if CORS is enabled. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;RuntimeFractionalPercentOrBuilder getFilterEnabledOrBuilder()
Specifies if CORS is enabled. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent filter_enabled = 9;boolean hasShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but does not enforce any policies. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;RuntimeFractionalPercent getShadowEnabled()
Specifies if CORS policies are evaluated and tracked when filter is off but does not enforce any policies. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;RuntimeFractionalPercentOrBuilder getShadowEnabledOrBuilder()
Specifies if CORS policies are evaluated and tracked when filter is off but does not enforce any policies. More information on how this can be controlled via runtime can be found :ref:`here <cors-runtime>`. .. note:: This field defaults to 100/:ref:`HUNDRED <envoy_api_enum_type.FractionalPercent.DenominatorType>`.
.envoy.api.v2.core.RuntimeFractionalPercent shadow_enabled = 10;CorsPolicy.EnabledSpecifierCase getEnabledSpecifierCase()
Copyright © 2018–2019 The Envoy Project. All rights reserved.