类 VirtualServiceOuterClass.HTTPRedirect.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualServiceOuterClass.HTTPRedirectOrBuilder, java.lang.Cloneable
    封闭类:
    VirtualServiceOuterClass.HTTPRedirect

    public static final class VirtualServiceOuterClass.HTTPRedirect.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRedirect.Builder>
    implements VirtualServiceOuterClass.HTTPRedirectOrBuilder
     HTTPRedirect can be used to send a 301 redirect response to the caller,
     where the Authority/Host and the URI in the response can be swapped with
     the specified values. For example, the following rule redirects
     requests for /v1/getProductRatings API on the ratings service to
     /v1/bookRatings provided by the bookratings service.
     {{<tabset category-name="example">}}
     {{<tab name="v1alpha3" category-value="v1alpha3">}}
     ```yaml
     apiVersion: networking.istio.io/v1alpha3
     kind: VirtualService
     metadata:
       name: ratings-route
     spec:
       hosts:
       - ratings.prod.svc.cluster.local
       http:
       - match:
         - uri:
             exact: /v1/getProductRatings
         redirect:
           uri: /v1/bookRatings
           authority: newratings.default.svc.cluster.local
       ...
     ```
     {{</tab>}}
     {{<tab name="v1beta1" category-value="v1beta1">}}
     ```yaml
     apiVersion: networking.istio.io/v1beta1
     kind: VirtualService
     metadata:
       name: ratings-route
     spec:
       hosts:
       - ratings.prod.svc.cluster.local
       http:
       - match:
         - uri:
             exact: /v1/getProductRatings
         redirect:
           uri: /v1/bookRatings
           authority: newratings.default.svc.cluster.local
       ...
     ```
     {{</tab>}}
     {{</tabset>}}
     
    Protobuf type istio.networking.v1alpha3.HTTPRedirect
    • 字段详细资料

      • bitField0_

        private int bitField0_
      • uri_

        private java.lang.Object uri_
      • authority_

        private java.lang.Object authority_
      • redirectCode_

        private int redirectCode_
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)