接口 VirtualServiceOuterClass.CorsPolicyOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface VirtualServiceOuterClass.CorsPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明com.google.protobuf.BoolValueIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.com.google.protobuf.BoolValueOrBuilderIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.getAllowHeaders(int index) List of HTTP headers that can be used when requesting the resource.com.google.protobuf.ByteStringgetAllowHeadersBytes(int index) List of HTTP headers that can be used when requesting the resource.intList of HTTP headers that can be used when requesting the resource.List of HTTP headers that can be used when requesting the resource.getAllowMethods(int index) List of HTTP methods allowed to access the resource.com.google.protobuf.ByteStringgetAllowMethodsBytes(int index) List of HTTP methods allowed to access the resource.intList of HTTP methods allowed to access the resource.List of HTTP methods allowed to access the resource.getAllowOrigin(int index) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.com.google.protobuf.ByteStringgetAllowOriginBytes(int index) 已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.int已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.getAllowOrigins(int index) String patterns that match allowed origins.intString patterns that match allowed origins.String patterns that match allowed origins.getAllowOriginsOrBuilder(int index) String patterns that match allowed origins.String patterns that match allowed origins.getExposeHeaders(int index) A list of HTTP headers that the browsers are allowed to access.com.google.protobuf.ByteStringgetExposeHeadersBytes(int index) A list of HTTP headers that the browsers are allowed to access.intA list of HTTP headers that the browsers are allowed to access.A list of HTTP headers that the browsers are allowed to access.com.google.protobuf.DurationSpecifies how long the results of a preflight request can be cached.com.google.protobuf.DurationOrBuilderSpecifies how long the results of a preflight request can be cached.booleanIndicates whether the caller is allowed to send the actual request (not the preflight) using credentials.booleanSpecifies how long the results of a preflight request can be cached.从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getAllowOriginList
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The 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];- 返回:
- A list containing the allowOrigin.
-
getAllowOriginCount
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The 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];- 返回:
- The count of allowOrigin.
-
getAllowOrigin
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The 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.- 返回:
- The allowOrigin at the given index.
-
getAllowOriginBytes
已过时。istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632The 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.- 返回:
- The bytes of the allowOrigin at the given index.
-
getAllowOriginsList
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; -
getAllowOrigins
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; -
getAllowOriginsCount
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; -
getAllowOriginsOrBuilderList
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; -
getAllowOriginsOrBuilder
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; -
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;- 返回:
- A list containing the allowMethods.
-
getAllowMethodsCount
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;- 返回:
- The count of allowMethods.
-
getAllowMethods
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.- 返回:
- The allowMethods at the given index.
-
getAllowMethodsBytes
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.- 返回:
- The bytes of the allowMethods at the given index.
-
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;- 返回:
- A list containing the allowHeaders.
-
getAllowHeadersCount
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;- 返回:
- The count of allowHeaders.
-
getAllowHeaders
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.- 返回:
- The allowHeaders at the given index.
-
getAllowHeadersBytes
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.- 返回:
- The bytes of the allowHeaders at the given index.
-
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;- 返回:
- A list containing the exposeHeaders.
-
getExposeHeadersCount
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;- 返回:
- The count of exposeHeaders.
-
getExposeHeaders
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.- 返回:
- The exposeHeaders at the given index.
-
getExposeHeadersBytes
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.- 返回:
- The bytes of the exposeHeaders at the given index.
-
hasMaxAge
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;- 返回:
- Whether the maxAge field is set.
-
getMaxAge
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;- 返回:
- The maxAge.
-
getMaxAgeOrBuilder
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; -
hasAllowCredentials
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;- 返回:
- Whether the allowCredentials field is set.
-
getAllowCredentials
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;- 返回:
- The allowCredentials.
-
getAllowCredentialsOrBuilder
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;
-