Interface PerRouteConfigOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PerRouteConfig,PerRouteConfig.Builder
public interface PerRouteConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionIndicates that before DNS lookup, the host header will be swapped with the value of this header.com.google.protobuf.ByteStringIndicates that before DNS lookup, the host header will be swapped with the value of this header.Indicates that before DNS lookup, the host header will be swapped with this value.com.google.protobuf.ByteStringIndicates that before DNS lookup, the host header will be swapped with this value.booleanIndicates that before DNS lookup, the host header will be swapped with the value of this header.booleanIndicates that before DNS lookup, the host header will be swapped with this value.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasHostRewrite
boolean hasHostRewrite()Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_api_field_route.RouteAction.host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- Whether the hostRewrite field is set.
-
getHostRewrite
String getHostRewrite()Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_api_field_route.RouteAction.host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- The hostRewrite.
-
getHostRewriteBytes
com.google.protobuf.ByteString getHostRewriteBytes()Indicates that before DNS lookup, the host header will be swapped with this value. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite <envoy_api_field_route.RouteAction.host_rewrite>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome.
string host_rewrite = 1 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- The bytes for hostRewrite.
-
hasAutoHostRewriteHeader
boolean hasAutoHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_api_field_route.RouteAction.auto_host_rewrite_header>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- Whether the autoHostRewriteHeader field is set.
-
getAutoHostRewriteHeader
String getAutoHostRewriteHeader()Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_api_field_route.RouteAction.auto_host_rewrite_header>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- The autoHostRewriteHeader.
-
getAutoHostRewriteHeaderBytes
com.google.protobuf.ByteString getAutoHostRewriteHeaderBytes()Indicates that before DNS lookup, the host header will be swapped with the value of this header. If not set or empty, the original host header value will be used and no rewrite will happen. Note: this rewrite affects both DNS lookup and host header forwarding. However, this option shouldn't be used with :ref:`HCM host rewrite header <envoy_api_field_route.RouteAction.auto_host_rewrite_header>` given that the value set here would be used for DNS lookups whereas the value set in the HCM would be used for host header forwarding which is not the desired outcome. .. note:: If the header appears multiple times only the first value is used.
string auto_host_rewrite_header = 2 [(.udpa.annotations.field_migrate) = { ... }- Returns:
- The bytes for autoHostRewriteHeader.
-
getHostRewriteSpecifierCase
PerRouteConfig.HostRewriteSpecifierCase getHostRewriteSpecifierCase()
-