Interface HttpRoute.CorsPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpRoute.CorsPolicy,HttpRoute.CorsPolicy.Builder
- Enclosing class:
- HttpRoute
public static interface HttpRoute.CorsPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIn response to a preflight request, setting this to true indicates that the actual request can include user credentials.getAllowHeaders(int index) Specifies the content for Access-Control-Allow-Headers header.com.google.protobuf.ByteStringgetAllowHeadersBytes(int index) Specifies the content for Access-Control-Allow-Headers header.intSpecifies the content for Access-Control-Allow-Headers header.Specifies the content for Access-Control-Allow-Headers header.getAllowMethods(int index) Specifies the content for Access-Control-Allow-Methods header.com.google.protobuf.ByteStringgetAllowMethodsBytes(int index) Specifies the content for Access-Control-Allow-Methods header.intSpecifies the content for Access-Control-Allow-Methods header.Specifies the content for Access-Control-Allow-Methods header.getAllowOriginRegexes(int index) Specifies the regular expression patterns that match allowed origins.com.google.protobuf.ByteStringgetAllowOriginRegexesBytes(int index) Specifies the regular expression patterns that match allowed origins.intSpecifies the regular expression patterns that match allowed origins.Specifies the regular expression patterns that match allowed origins.getAllowOrigins(int index) Specifies the list of origins that will be allowed to do CORS requests.com.google.protobuf.ByteStringgetAllowOriginsBytes(int index) Specifies the list of origins that will be allowed to do CORS requests.intSpecifies the list of origins that will be allowed to do CORS requests.Specifies the list of origins that will be allowed to do CORS requests.booleanIf true, the CORS policy is disabled.getExposeHeaders(int index) Specifies the content for Access-Control-Expose-Headers header.com.google.protobuf.ByteStringgetExposeHeadersBytes(int index) Specifies the content for Access-Control-Expose-Headers header.intSpecifies the content for Access-Control-Expose-Headers header.Specifies the content for Access-Control-Expose-Headers header.Specifies how long result of a preflight request can be cached in seconds.com.google.protobuf.ByteStringSpecifies how long result of a preflight request can be cached in seconds.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
-
getAllowOriginsList
Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allow_origins or an item in allow_origin_regexes.
repeated string allow_origins = 1;- Returns:
- A list containing the allowOrigins.
-
getAllowOriginsCount
int getAllowOriginsCount()Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allow_origins or an item in allow_origin_regexes.
repeated string allow_origins = 1;- Returns:
- The count of allowOrigins.
-
getAllowOrigins
Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allow_origins or an item in allow_origin_regexes.
repeated string allow_origins = 1;- Parameters:
index- The index of the element to return.- Returns:
- The allowOrigins at the given index.
-
getAllowOriginsBytes
com.google.protobuf.ByteString getAllowOriginsBytes(int index) Specifies the list of origins that will be allowed to do CORS requests. An origin is allowed if it matches either an item in allow_origins or an item in allow_origin_regexes.
repeated string allow_origins = 1;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOrigins at the given index.
-
getAllowOriginRegexesList
Specifies the regular expression patterns that match allowed origins. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax.
repeated string allow_origin_regexes = 2;- Returns:
- A list containing the allowOriginRegexes.
-
getAllowOriginRegexesCount
int getAllowOriginRegexesCount()Specifies the regular expression patterns that match allowed origins. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax.
repeated string allow_origin_regexes = 2;- Returns:
- The count of allowOriginRegexes.
-
getAllowOriginRegexes
Specifies the regular expression patterns that match allowed origins. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax.
repeated string allow_origin_regexes = 2;- Parameters:
index- The index of the element to return.- Returns:
- The allowOriginRegexes at the given index.
-
getAllowOriginRegexesBytes
com.google.protobuf.ByteString getAllowOriginRegexesBytes(int index) Specifies the regular expression patterns that match allowed origins. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax.
repeated string allow_origin_regexes = 2;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowOriginRegexes at the given index.
-
getAllowMethodsList
Specifies the content for Access-Control-Allow-Methods header.
repeated string allow_methods = 3;- Returns:
- A list containing the allowMethods.
-
getAllowMethodsCount
int getAllowMethodsCount()Specifies the content for Access-Control-Allow-Methods header.
repeated string allow_methods = 3;- Returns:
- The count of allowMethods.
-
getAllowMethods
Specifies the content for Access-Control-Allow-Methods header.
repeated string allow_methods = 3;- Parameters:
index- The index of the element to return.- Returns:
- The allowMethods at the given index.
-
getAllowMethodsBytes
com.google.protobuf.ByteString getAllowMethodsBytes(int index) Specifies the content for Access-Control-Allow-Methods header.
repeated string allow_methods = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowMethods at the given index.
-
getAllowHeadersList
Specifies the content for Access-Control-Allow-Headers header.
repeated string allow_headers = 4;- Returns:
- A list containing the allowHeaders.
-
getAllowHeadersCount
int getAllowHeadersCount()Specifies the content for Access-Control-Allow-Headers header.
repeated string allow_headers = 4;- Returns:
- The count of allowHeaders.
-
getAllowHeaders
Specifies the content for Access-Control-Allow-Headers header.
repeated string allow_headers = 4;- Parameters:
index- The index of the element to return.- Returns:
- The allowHeaders at the given index.
-
getAllowHeadersBytes
com.google.protobuf.ByteString getAllowHeadersBytes(int index) Specifies the content for Access-Control-Allow-Headers header.
repeated string allow_headers = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allowHeaders at the given index.
-
getExposeHeadersList
Specifies the content for Access-Control-Expose-Headers header.
repeated string expose_headers = 5;- Returns:
- A list containing the exposeHeaders.
-
getExposeHeadersCount
int getExposeHeadersCount()Specifies the content for Access-Control-Expose-Headers header.
repeated string expose_headers = 5;- Returns:
- The count of exposeHeaders.
-
getExposeHeaders
Specifies the content for Access-Control-Expose-Headers header.
repeated string expose_headers = 5;- Parameters:
index- The index of the element to return.- Returns:
- The exposeHeaders at the given index.
-
getExposeHeadersBytes
com.google.protobuf.ByteString getExposeHeadersBytes(int index) Specifies the content for Access-Control-Expose-Headers header.
repeated string expose_headers = 5;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the exposeHeaders at the given index.
-
getMaxAge
String getMaxAge()Specifies how long result of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
string max_age = 6;- Returns:
- The maxAge.
-
getMaxAgeBytes
com.google.protobuf.ByteString getMaxAgeBytes()Specifies how long result of a preflight request can be cached in seconds. This translates to the Access-Control-Max-Age header.
string max_age = 6;- Returns:
- The bytes for maxAge.
-
getAllowCredentials
boolean getAllowCredentials()In response to a preflight request, setting this to true indicates that the actual request can include user credentials. This translates to the Access-Control-Allow-Credentials header. Default value is false.
bool allow_credentials = 7;- Returns:
- The allowCredentials.
-
getDisabled
boolean getDisabled()If true, the CORS policy is disabled. The default value is false, which indicates that the CORS policy is in effect.
bool disabled = 8;- Returns:
- The disabled.
-