public static interface RouteOuterClass.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()
Specifies if CORS is enabled.
|
com.google.protobuf.BoolValueOrBuilder |
getEnabledOrBuilder()
Specifies if CORS is enabled.
|
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.
|
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.
|
boolean |
hasAllowCredentials()
Specifies whether the resource allows credentials.
|
boolean |
hasEnabled()
Specifies if CORS is enabled.
|
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;boolean hasEnabled()
Specifies if CORS is enabled. Defaults to true. Only effective on route.
.google.protobuf.BoolValue enabled = 7;com.google.protobuf.BoolValue getEnabled()
Specifies if CORS is enabled. Defaults to true. Only effective on route.
.google.protobuf.BoolValue enabled = 7;com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Specifies if CORS is enabled. Defaults to true. Only effective on route.
.google.protobuf.BoolValue enabled = 7;Copyright © 2018 The Envoy Project. All rights reserved.