Interface UrlRewriteOrBuilder (1.24.0)

public interface UrlRewriteOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHostRewrite()

public abstract String getHostRewrite()

Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.

optional string host_rewrite = 159819253;

Returns
TypeDescription
String

The hostRewrite.

getHostRewriteBytes()

public abstract ByteString getHostRewriteBytes()

Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.

optional string host_rewrite = 159819253;

Returns
TypeDescription
ByteString

The bytes for hostRewrite.

getPathPrefixRewrite()

public abstract String getPathPrefixRewrite()

Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.

optional string path_prefix_rewrite = 41186361;

Returns
TypeDescription
String

The pathPrefixRewrite.

getPathPrefixRewriteBytes()

public abstract ByteString getPathPrefixRewriteBytes()

Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.

optional string path_prefix_rewrite = 41186361;

Returns
TypeDescription
ByteString

The bytes for pathPrefixRewrite.

hasHostRewrite()

public abstract boolean hasHostRewrite()

Before forwarding the request to the selected service, the request's host header is replaced with contents of hostRewrite. The value must be from 1 to 255 characters.

optional string host_rewrite = 159819253;

Returns
TypeDescription
boolean

Whether the hostRewrite field is set.

hasPathPrefixRewrite()

public abstract boolean hasPathPrefixRewrite()

Before forwarding the request to the selected backend service, the matching portion of the request's path is replaced by pathPrefixRewrite. The value must be from 1 to 1024 characters.

optional string path_prefix_rewrite = 41186361;

Returns
TypeDescription
boolean

Whether the pathPrefixRewrite field is set.