接口 VirtualServiceOuterClass.CorsPolicyOrBuilder

    • 方法概要

      所有方法 实例方法 抽象方法 已过时的方法 
      修饰符和类型 方法 说明
      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.
      java.lang.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.
      java.util.List<java.lang.String> getAllowHeadersList()
      List of HTTP headers that can be used when requesting the resource.
      java.lang.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.
      java.util.List<java.lang.String> getAllowMethodsList()
      List of HTTP methods allowed to access the resource.
      java.lang.String getAllowOrigin​(int index)
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
      com.google.protobuf.ByteString getAllowOriginBytes​(int index)
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
      int getAllowOriginCount()
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
      java.util.List<java.lang.String> getAllowOriginList()
      已过时。
      istio.networking.v1alpha3.CorsPolicy.allow_origin is deprecated.
      VirtualServiceOuterClass.StringMatch getAllowOrigins​(int index)
      String patterns that match allowed origins.
      int getAllowOriginsCount()
      String patterns that match allowed origins.
      java.util.List<VirtualServiceOuterClass.StringMatch> getAllowOriginsList()
      String patterns that match allowed origins.
      VirtualServiceOuterClass.StringMatchOrBuilder getAllowOriginsOrBuilder​(int index)
      String patterns that match allowed origins.
      java.util.List<? extends VirtualServiceOuterClass.StringMatchOrBuilder> getAllowOriginsOrBuilderList()
      String patterns that match allowed origins.
      java.lang.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.
      java.util.List<java.lang.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.
      • 从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 从接口继承的方法 com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 方法详细资料

      • getAllowOriginList

        @Deprecated
        java.util.List<java.lang.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
        java.lang.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

        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;