接口 VirtualServiceOuterClass.CorsPolicyOrBuilder
-
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface VirtualServiceOuterClass.CorsPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 com.google.protobuf.BoolValuegetAllowCredentials()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.com.google.protobuf.BoolValueOrBuildergetAllowCredentialsOrBuilder()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.java.lang.StringgetAllowHeaders(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.intgetAllowHeadersCount()List of HTTP headers that can be used when requesting the resource.java.util.List<java.lang.String>getAllowHeadersList()List of HTTP headers that can be used when requesting the resource.java.lang.StringgetAllowMethods(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.intgetAllowMethodsCount()List of HTTP methods allowed to access the resource.java.util.List<java.lang.String>getAllowMethodsList()List of HTTP methods allowed to access the resource.java.lang.StringgetAllowOrigin(int index)已过时。com.google.protobuf.ByteStringgetAllowOriginBytes(int index)已过时。intgetAllowOriginCount()已过时。java.util.List<java.lang.String>getAllowOriginList()已过时。VirtualServiceOuterClass.StringMatchgetAllowOrigins(int index)String patterns that match allowed origins.intgetAllowOriginsCount()String patterns that match allowed origins.java.util.List<VirtualServiceOuterClass.StringMatch>getAllowOriginsList()String patterns that match allowed origins.VirtualServiceOuterClass.StringMatchOrBuildergetAllowOriginsOrBuilder(int index)String patterns that match allowed origins.java.util.List<? extends VirtualServiceOuterClass.StringMatchOrBuilder>getAllowOriginsOrBuilderList()String patterns that match allowed origins.java.lang.StringgetExposeHeaders(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.intgetExposeHeadersCount()A list of HTTP headers that the browsers are allowed to access.java.util.List<java.lang.String>getExposeHeadersList()A list of HTTP headers that the browsers are allowed to access.com.google.protobuf.DurationgetMaxAge()Specifies how long the results of a preflight request can be cached.com.google.protobuf.DurationOrBuildergetMaxAgeOrBuilder()Specifies how long the results of a preflight request can be cached.booleanhasAllowCredentials()Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials.booleanhasMaxAge()Specifies how long the results of a preflight request can be cached.
-
-
-
方法详细资料
-
getAllowOriginList
@Deprecated java.util.List<java.lang.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];- 返回:
- A list containing the allowOrigin.
-
getAllowOriginCount
@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];- 返回:
- The count of allowOrigin.
-
getAllowOrigin
@Deprecated java.lang.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.- 返回:
- The allowOrigin at the given index.
-
getAllowOriginBytes
@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.- 返回:
- The bytes of the allowOrigin at the given index.
-
getAllowOriginsList
java.util.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
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;
-
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
java.util.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
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;
-
getAllowMethodsList
java.util.List<java.lang.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;- 返回:
- 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
java.lang.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.- 返回:
- 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
java.util.List<java.lang.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;- 返回:
- 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
java.lang.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.- 返回:
- 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
java.util.List<java.lang.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;- 返回:
- 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
java.lang.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.- 返回:
- 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;
-
-