public static interface VirtualServiceOuterClass.HTTPRouteOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
VirtualServiceOuterClass.CorsPolicy |
getCorsPolicy()
Cross-Origin Resource Sharing policy (CORS).
|
VirtualServiceOuterClass.CorsPolicyOrBuilder |
getCorsPolicyOrBuilder()
Cross-Origin Resource Sharing policy (CORS).
|
VirtualServiceOuterClass.Delegate |
getDelegate()
Delegate is used to specify the particular VirtualService which
can be used to define delegate HTTPRoute.
|
VirtualServiceOuterClass.DelegateOrBuilder |
getDelegateOrBuilder()
Delegate is used to specify the particular VirtualService which
can be used to define delegate HTTPRoute.
|
VirtualServiceOuterClass.HTTPFaultInjection |
getFault()
Fault injection policy to apply on HTTP traffic at the client side.
|
VirtualServiceOuterClass.HTTPFaultInjectionOrBuilder |
getFaultOrBuilder()
Fault injection policy to apply on HTTP traffic at the client side.
|
VirtualServiceOuterClass.Headers |
getHeaders()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16; |
VirtualServiceOuterClass.HeadersOrBuilder |
getHeadersOrBuilder()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16; |
VirtualServiceOuterClass.HTTPMatchRequest |
getMatch(int index)
Match conditions to be satisfied for the rule to be
activated.
|
int |
getMatchCount()
Match conditions to be satisfied for the rule to be
activated.
|
List<VirtualServiceOuterClass.HTTPMatchRequest> |
getMatchList()
Match conditions to be satisfied for the rule to be
activated.
|
VirtualServiceOuterClass.HTTPMatchRequestOrBuilder |
getMatchOrBuilder(int index)
Match conditions to be satisfied for the rule to be
activated.
|
List<? extends VirtualServiceOuterClass.HTTPMatchRequestOrBuilder> |
getMatchOrBuilderList()
Match conditions to be satisfied for the rule to be
activated.
|
VirtualServiceOuterClass.Destination |
getMirror()
Mirror HTTP traffic to a another destination in addition to forwarding
the requests to the intended destination.
|
VirtualServiceOuterClass.DestinationOrBuilder |
getMirrorOrBuilder()
Mirror HTTP traffic to a another destination in addition to forwarding
the requests to the intended destination.
|
com.google.protobuf.UInt32Value |
getMirrorPercent()
已过时。
istio.networking.v1alpha3.HTTPRoute.mirror_percent is deprecated.
See networking/v1alpha3/virtual_service.proto;l=627
|
VirtualServiceOuterClass.Percent |
getMirrorPercentage()
Percentage of the traffic to be mirrored by the `mirror` field.
|
VirtualServiceOuterClass.PercentOrBuilder |
getMirrorPercentageOrBuilder()
Percentage of the traffic to be mirrored by the `mirror` field.
|
com.google.protobuf.UInt32ValueOrBuilder |
getMirrorPercentOrBuilder()
已过时。
|
String |
getName()
The name assigned to the route for debugging purposes.
|
com.google.protobuf.ByteString |
getNameBytes()
The name assigned to the route for debugging purposes.
|
VirtualServiceOuterClass.HTTPRedirect |
getRedirect()
A HTTP rule can either redirect or forward (default) traffic.
|
VirtualServiceOuterClass.HTTPRedirectOrBuilder |
getRedirectOrBuilder()
A HTTP rule can either redirect or forward (default) traffic.
|
VirtualServiceOuterClass.HTTPRetry |
getRetries()
Retry policy for HTTP requests.
|
VirtualServiceOuterClass.HTTPRetryOrBuilder |
getRetriesOrBuilder()
Retry policy for HTTP requests.
|
VirtualServiceOuterClass.HTTPRewrite |
getRewrite()
Rewrite HTTP URIs and Authority headers.
|
VirtualServiceOuterClass.HTTPRewriteOrBuilder |
getRewriteOrBuilder()
Rewrite HTTP URIs and Authority headers.
|
VirtualServiceOuterClass.HTTPRouteDestination |
getRoute(int index)
A HTTP rule can either redirect or forward (default) traffic.
|
int |
getRouteCount()
A HTTP rule can either redirect or forward (default) traffic.
|
List<VirtualServiceOuterClass.HTTPRouteDestination> |
getRouteList()
A HTTP rule can either redirect or forward (default) traffic.
|
VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder |
getRouteOrBuilder(int index)
A HTTP rule can either redirect or forward (default) traffic.
|
List<? extends VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder> |
getRouteOrBuilderList()
A HTTP rule can either redirect or forward (default) traffic.
|
com.google.protobuf.Duration |
getTimeout()
Timeout for HTTP requests, default is disabled.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Timeout for HTTP requests, default is disabled.
|
boolean |
hasCorsPolicy()
Cross-Origin Resource Sharing policy (CORS).
|
boolean |
hasDelegate()
Delegate is used to specify the particular VirtualService which
can be used to define delegate HTTPRoute.
|
boolean |
hasFault()
Fault injection policy to apply on HTTP traffic at the client side.
|
boolean |
hasHeaders()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16; |
boolean |
hasMirror()
Mirror HTTP traffic to a another destination in addition to forwarding
the requests to the intended destination.
|
boolean |
hasMirrorPercent()
已过时。
istio.networking.v1alpha3.HTTPRoute.mirror_percent is deprecated.
See networking/v1alpha3/virtual_service.proto;l=627
|
boolean |
hasMirrorPercentage()
Percentage of the traffic to be mirrored by the `mirror` field.
|
boolean |
hasRedirect()
A HTTP rule can either redirect or forward (default) traffic.
|
boolean |
hasRetries()
Retry policy for HTTP requests.
|
boolean |
hasRewrite()
Rewrite HTTP URIs and Authority headers.
|
boolean |
hasTimeout()
Timeout for HTTP requests, default is disabled.
|
String getName()
The name assigned to the route for debugging purposes. The route's name will be concatenated with the match's name and will be logged in the access logs for requests matching this route/match.
string name = 17;com.google.protobuf.ByteString getNameBytes()
The name assigned to the route for debugging purposes. The route's name will be concatenated with the match's name and will be logged in the access logs for requests matching this route/match.
string name = 17;List<VirtualServiceOuterClass.HTTPMatchRequest> getMatchList()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;VirtualServiceOuterClass.HTTPMatchRequest getMatch(int index)
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;int getMatchCount()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;List<? extends VirtualServiceOuterClass.HTTPMatchRequestOrBuilder> getMatchOrBuilderList()
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;VirtualServiceOuterClass.HTTPMatchRequestOrBuilder getMatchOrBuilder(int index)
Match conditions to be satisfied for the rule to be activated. All conditions inside a single match block have AND semantics, while the list of match blocks have OR semantics. The rule is matched if any one of the match blocks succeed.
repeated .istio.networking.v1alpha3.HTTPMatchRequest match = 1;List<VirtualServiceOuterClass.HTTPRouteDestination> getRouteList()
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;VirtualServiceOuterClass.HTTPRouteDestination getRoute(int index)
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;int getRouteCount()
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;List<? extends VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder> getRouteOrBuilderList()
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;VirtualServiceOuterClass.HTTPRouteDestinationOrBuilder getRouteOrBuilder(int index)
A HTTP rule can either redirect or forward (default) traffic. The forwarding target can be one of several versions of a service (see glossary in beginning of document). Weights associated with the service version determine the proportion of traffic it receives.
repeated .istio.networking.v1alpha3.HTTPRouteDestination route = 2;boolean hasRedirect()
A HTTP rule can either redirect or forward (default) traffic. If traffic passthrough option is specified in the rule, route/redirect will be ignored. The redirect primitive can be used to send a HTTP 301 redirect to a different URI or Authority.
.istio.networking.v1alpha3.HTTPRedirect redirect = 3;VirtualServiceOuterClass.HTTPRedirect getRedirect()
A HTTP rule can either redirect or forward (default) traffic. If traffic passthrough option is specified in the rule, route/redirect will be ignored. The redirect primitive can be used to send a HTTP 301 redirect to a different URI or Authority.
.istio.networking.v1alpha3.HTTPRedirect redirect = 3;VirtualServiceOuterClass.HTTPRedirectOrBuilder getRedirectOrBuilder()
A HTTP rule can either redirect or forward (default) traffic. If traffic passthrough option is specified in the rule, route/redirect will be ignored. The redirect primitive can be used to send a HTTP 301 redirect to a different URI or Authority.
.istio.networking.v1alpha3.HTTPRedirect redirect = 3;boolean hasDelegate()
Delegate is used to specify the particular VirtualService which
can be used to define delegate HTTPRoute.
It can be set only when `Route` and `Redirect` are empty, and the route rules of the
delegate VirtualService will be merged with that in the current one.
**NOTE**:
1. Only one level delegation is supported.
2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
otherwise there is a conflict and the HTTPRoute will not take effect.
.istio.networking.v1alpha3.Delegate delegate = 20;VirtualServiceOuterClass.Delegate getDelegate()
Delegate is used to specify the particular VirtualService which
can be used to define delegate HTTPRoute.
It can be set only when `Route` and `Redirect` are empty, and the route rules of the
delegate VirtualService will be merged with that in the current one.
**NOTE**:
1. Only one level delegation is supported.
2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
otherwise there is a conflict and the HTTPRoute will not take effect.
.istio.networking.v1alpha3.Delegate delegate = 20;VirtualServiceOuterClass.DelegateOrBuilder getDelegateOrBuilder()
Delegate is used to specify the particular VirtualService which
can be used to define delegate HTTPRoute.
It can be set only when `Route` and `Redirect` are empty, and the route rules of the
delegate VirtualService will be merged with that in the current one.
**NOTE**:
1. Only one level delegation is supported.
2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
otherwise there is a conflict and the HTTPRoute will not take effect.
.istio.networking.v1alpha3.Delegate delegate = 20;boolean hasRewrite()
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding.
.istio.networking.v1alpha3.HTTPRewrite rewrite = 4;VirtualServiceOuterClass.HTTPRewrite getRewrite()
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding.
.istio.networking.v1alpha3.HTTPRewrite rewrite = 4;VirtualServiceOuterClass.HTTPRewriteOrBuilder getRewriteOrBuilder()
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding.
.istio.networking.v1alpha3.HTTPRewrite rewrite = 4;boolean hasTimeout()
Timeout for HTTP requests, default is disabled.
.google.protobuf.Duration timeout = 6;com.google.protobuf.Duration getTimeout()
Timeout for HTTP requests, default is disabled.
.google.protobuf.Duration timeout = 6;com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Timeout for HTTP requests, default is disabled.
.google.protobuf.Duration timeout = 6;boolean hasRetries()
Retry policy for HTTP requests.
.istio.networking.v1alpha3.HTTPRetry retries = 7;VirtualServiceOuterClass.HTTPRetry getRetries()
Retry policy for HTTP requests.
.istio.networking.v1alpha3.HTTPRetry retries = 7;VirtualServiceOuterClass.HTTPRetryOrBuilder getRetriesOrBuilder()
Retry policy for HTTP requests.
.istio.networking.v1alpha3.HTTPRetry retries = 7;boolean hasFault()
Fault injection policy to apply on HTTP traffic at the client side. Note that timeouts or retries will not be enabled when faults are enabled on the client side.
.istio.networking.v1alpha3.HTTPFaultInjection fault = 8;VirtualServiceOuterClass.HTTPFaultInjection getFault()
Fault injection policy to apply on HTTP traffic at the client side. Note that timeouts or retries will not be enabled when faults are enabled on the client side.
.istio.networking.v1alpha3.HTTPFaultInjection fault = 8;VirtualServiceOuterClass.HTTPFaultInjectionOrBuilder getFaultOrBuilder()
Fault injection policy to apply on HTTP traffic at the client side. Note that timeouts or retries will not be enabled when faults are enabled on the client side.
.istio.networking.v1alpha3.HTTPFaultInjection fault = 8;boolean hasMirror()
Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored cluster to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.
.istio.networking.v1alpha3.Destination mirror = 9;VirtualServiceOuterClass.Destination getMirror()
Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored cluster to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.
.istio.networking.v1alpha3.Destination mirror = 9;VirtualServiceOuterClass.DestinationOrBuilder getMirrorOrBuilder()
Mirror HTTP traffic to a another destination in addition to forwarding the requests to the intended destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored cluster to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination.
.istio.networking.v1alpha3.Destination mirror = 9;@Deprecated boolean hasMirrorPercent()
Percentage of the traffic to be mirrored by the `mirror` field. Use of integer `mirror_percent` value is deprecated. Use the double `mirror_percentage` field instead
.google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];@Deprecated com.google.protobuf.UInt32Value getMirrorPercent()
Percentage of the traffic to be mirrored by the `mirror` field. Use of integer `mirror_percent` value is deprecated. Use the double `mirror_percentage` field instead
.google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];@Deprecated com.google.protobuf.UInt32ValueOrBuilder getMirrorPercentOrBuilder()
Percentage of the traffic to be mirrored by the `mirror` field. Use of integer `mirror_percent` value is deprecated. Use the double `mirror_percentage` field instead
.google.protobuf.UInt32Value mirror_percent = 18 [deprecated = true];boolean hasMirrorPercentage()
Percentage of the traffic to be mirrored by the `mirror` field. If this field is absent, all the traffic (100%) will be mirrored. Max value is 100.
.istio.networking.v1alpha3.Percent mirror_percentage = 19;VirtualServiceOuterClass.Percent getMirrorPercentage()
Percentage of the traffic to be mirrored by the `mirror` field. If this field is absent, all the traffic (100%) will be mirrored. Max value is 100.
.istio.networking.v1alpha3.Percent mirror_percentage = 19;VirtualServiceOuterClass.PercentOrBuilder getMirrorPercentageOrBuilder()
Percentage of the traffic to be mirrored by the `mirror` field. If this field is absent, all the traffic (100%) will be mirrored. Max value is 100.
.istio.networking.v1alpha3.Percent mirror_percentage = 19;boolean hasCorsPolicy()
Cross-Origin Resource Sharing policy (CORS). Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for further details about cross origin resource sharing.
.istio.networking.v1alpha3.CorsPolicy cors_policy = 10;VirtualServiceOuterClass.CorsPolicy getCorsPolicy()
Cross-Origin Resource Sharing policy (CORS). Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for further details about cross origin resource sharing.
.istio.networking.v1alpha3.CorsPolicy cors_policy = 10;VirtualServiceOuterClass.CorsPolicyOrBuilder getCorsPolicyOrBuilder()
Cross-Origin Resource Sharing policy (CORS). Refer to [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) for further details about cross origin resource sharing.
.istio.networking.v1alpha3.CorsPolicy cors_policy = 10;boolean hasHeaders()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16;VirtualServiceOuterClass.Headers getHeaders()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16;VirtualServiceOuterClass.HeadersOrBuilder getHeadersOrBuilder()
Header manipulation rules
.istio.networking.v1alpha3.Headers headers = 16;Copyright © 2018–2023 Alibaba Group. All rights reserved.