接口 VirtualServiceOuterClass.CorsPolicyOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
VirtualServiceOuterClass.CorsPolicy, VirtualServiceOuterClass.CorsPolicy.Builder
封闭类:
VirtualServiceOuterClass

public static interface VirtualServiceOuterClass.CorsPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法详细资料

    • getAllowOriginList

      @Deprecated List<String> getAllowOriginList()
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632
       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()
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632
       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 String getAllowOrigin(int index)
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632
       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)
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated. See networking/v1alpha3/virtual_service.proto;l=1632
       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

       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

      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

      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;
      返回:
      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

      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

      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;
      返回:
      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

      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

      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;
      返回:
      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

      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;