public static class HttpRedirectAction.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpRedirectAction |
build() |
HttpRedirectAction.Builder |
clone() |
String |
getHostRedirect()
The host that will be used in the redirect response instead of the one that was supplied in
the request.
|
Boolean |
getHttpsRedirect()
If set to true, the URL scheme in the redirected request is set to https.
|
String |
getPathRedirect()
The path that will be used in the redirect response instead of the one that was supplied in
the request.
|
String |
getPrefixRedirect()
The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the
remaining portion of the URL before redirecting the request.
|
String |
getRedirectResponseCode()
The HTTP Status code to use for this RedirectAction.
|
Boolean |
getStripQuery()
If set to true, any accompanying query portion of the original URL is removed prior to
redirecting the request.
|
HttpRedirectAction.Builder |
mergeFrom(HttpRedirectAction other) |
HttpRedirectAction.Builder |
setHostRedirect(String hostRedirect)
The host that will be used in the redirect response instead of the one that was supplied in
the request.
|
HttpRedirectAction.Builder |
setHttpsRedirect(Boolean httpsRedirect)
If set to true, the URL scheme in the redirected request is set to https.
|
HttpRedirectAction.Builder |
setPathRedirect(String pathRedirect)
The path that will be used in the redirect response instead of the one that was supplied in
the request.
|
HttpRedirectAction.Builder |
setPrefixRedirect(String prefixRedirect)
The prefix that replaces the prefixMatch specified in the HttpRouteRuleMatch, retaining the
remaining portion of the URL before redirecting the request.
|
HttpRedirectAction.Builder |
setRedirectResponseCode(String redirectResponseCode)
The HTTP Status code to use for this RedirectAction.
|
HttpRedirectAction.Builder |
setStripQuery(Boolean stripQuery)
If set to true, any accompanying query portion of the original URL is removed prior to
redirecting the request.
|
public HttpRedirectAction.Builder mergeFrom(HttpRedirectAction other)
public String getHostRedirect()
public HttpRedirectAction.Builder setHostRedirect(String hostRedirect)
public Boolean getHttpsRedirect()
public HttpRedirectAction.Builder setHttpsRedirect(Boolean httpsRedirect)
public String getPathRedirect()
public HttpRedirectAction.Builder setPathRedirect(String pathRedirect)
public String getPrefixRedirect()
public HttpRedirectAction.Builder setPrefixRedirect(String prefixRedirect)
public String getRedirectResponseCode()
public HttpRedirectAction.Builder setRedirectResponseCode(String redirectResponseCode)
public Boolean getStripQuery()
public HttpRedirectAction.Builder setStripQuery(Boolean stripQuery)
public HttpRedirectAction build()
public HttpRedirectAction.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.