public static interface VirtualServiceOuterClass.CorsPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
com.google.protobuf.BoolValue |
getAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
com.google.protobuf.BoolValueOrBuilder |
getAllowCredentialsOrBuilder()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
String |
getAllowHeaders(int index)
List of HTTP headers that can be used when requesting the
resource.
|
com.google.protobuf.ByteString |
getAllowHeadersBytes(int index)
List of HTTP headers that can be used when requesting the
resource.
|
int |
getAllowHeadersCount()
List of HTTP headers that can be used when requesting the
resource.
|
List<String> |
getAllowHeadersList()
List of HTTP headers that can be used when requesting the
resource.
|
String |
getAllowMethods(int index)
List of HTTP methods allowed to access the resource.
|
com.google.protobuf.ByteString |
getAllowMethodsBytes(int index)
List of HTTP methods allowed to access the resource.
|
int |
getAllowMethodsCount()
List of HTTP methods allowed to access the resource.
|
List<String> |
getAllowMethodsList()
List of HTTP methods allowed to access the resource.
|
String |
getAllowOrigin(int index)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
com.google.protobuf.ByteString |
getAllowOriginBytes(int index)
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
int |
getAllowOriginCount()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
List<String> |
getAllowOriginList()
已过时。
istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
See networking/v1alpha3/virtual_service.proto;l=1632
|
VirtualServiceOuterClass.StringMatch |
getAllowOrigins(int index)
String patterns that match allowed origins.
|
int |
getAllowOriginsCount()
String patterns that match allowed origins.
|
List<VirtualServiceOuterClass.StringMatch> |
getAllowOriginsList()
String patterns that match allowed origins.
|
VirtualServiceOuterClass.StringMatchOrBuilder |
getAllowOriginsOrBuilder(int index)
String patterns that match allowed origins.
|
List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> |
getAllowOriginsOrBuilderList()
String patterns that match allowed origins.
|
String |
getExposeHeaders(int index)
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.ByteString |
getExposeHeadersBytes(int index)
A list of HTTP headers that the browsers are allowed to
access.
|
int |
getExposeHeadersCount()
A list of HTTP headers that the browsers are allowed to
access.
|
List<String> |
getExposeHeadersList()
A list of HTTP headers that the browsers are allowed to
access.
|
com.google.protobuf.Duration |
getMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
com.google.protobuf.DurationOrBuilder |
getMaxAgeOrBuilder()
Specifies how long the results of a preflight request can be
cached.
|
boolean |
hasAllowCredentials()
Indicates whether the caller is allowed to send the actual request
(not the preflight) using credentials.
|
boolean |
hasMaxAge()
Specifies how long the results of a preflight request can be
cached.
|
@Deprecated List<String> getAllowOriginList()
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];@Deprecated int getAllowOriginCount()
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];@Deprecated String getAllowOrigin(int index)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];index - The index of the element to return.@Deprecated com.google.protobuf.ByteString getAllowOriginBytes(int index)
The list of origins that are allowed to perform CORS requests. The content will be serialized into the Access-Control-Allow-Origin header. Wildcard * will allow all origins. $hide_from_docs
repeated string allow_origin = 1 [deprecated = true];index - The index of the value to return.List<VirtualServiceOuterClass.StringMatch> getAllowOriginsList()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;VirtualServiceOuterClass.StringMatch getAllowOrigins(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;int getAllowOriginsCount()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> getAllowOriginsOrBuilderList()
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;VirtualServiceOuterClass.StringMatchOrBuilder getAllowOriginsOrBuilder(int index)
String patterns that match allowed origins. An origin is allowed if any of the string matchers match. If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
repeated .istio.networking.v1alpha3.StringMatch allow_origins = 7;List<String> getAllowMethodsList()
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;int getAllowMethodsCount()
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;String getAllowMethods(int index)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;index - The index of the element to return.com.google.protobuf.ByteString getAllowMethodsBytes(int index)
List of HTTP methods allowed to access the resource. The content will be serialized into the Access-Control-Allow-Methods header.
repeated string allow_methods = 2;index - The index of the value to return.List<String> getAllowHeadersList()
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;int getAllowHeadersCount()
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;String getAllowHeaders(int index)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;index - The index of the element to return.com.google.protobuf.ByteString getAllowHeadersBytes(int index)
List of HTTP headers that can be used when requesting the resource. Serialized to Access-Control-Allow-Headers header.
repeated string allow_headers = 3;index - The index of the value to return.List<String> getExposeHeadersList()
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;int getExposeHeadersCount()
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;String getExposeHeaders(int index)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;index - The index of the element to return.com.google.protobuf.ByteString getExposeHeadersBytes(int index)
A list of HTTP headers that the browsers are allowed to access. Serialized into Access-Control-Expose-Headers header.
repeated string expose_headers = 4;index - The index of the value to return.boolean hasMaxAge()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;com.google.protobuf.Duration getMaxAge()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;com.google.protobuf.DurationOrBuilder getMaxAgeOrBuilder()
Specifies how long the results of a preflight request can be cached. Translates to the `Access-Control-Max-Age` header.
.google.protobuf.Duration max_age = 5;boolean hasAllowCredentials()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;com.google.protobuf.BoolValue getAllowCredentials()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;com.google.protobuf.BoolValueOrBuilder getAllowCredentialsOrBuilder()
Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials. Translates to `Access-Control-Allow-Credentials` header.
.google.protobuf.BoolValue allow_credentials = 6;Copyright © 2018–2023 Alibaba Group. All rights reserved.