public final class HttpRedirectAction
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
HttpRedirectAction() |
| Modifier and Type | Method and Description |
|---|---|
HttpRedirectAction |
clone() |
String |
getHostRedirect()
The host that is 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 is 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 before
redirecting the request.
|
HttpRedirectAction |
set(String fieldName,
Object value) |
HttpRedirectAction |
setHostRedirect(String hostRedirect)
The host that is used in the redirect response instead of the one that was supplied in the
request.
|
HttpRedirectAction |
setHttpsRedirect(Boolean httpsRedirect)
If set to true, the URL scheme in the redirected request is set to HTTPS.
|
HttpRedirectAction |
setPathRedirect(String pathRedirect)
The path that is used in the redirect response instead of the one that was supplied in the
request.
|
HttpRedirectAction |
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 |
setRedirectResponseCode(String redirectResponseCode)
The HTTP Status code to use for this RedirectAction.
|
HttpRedirectAction |
setStripQuery(Boolean stripQuery)
If set to true, any accompanying query portion of the original URL is removed before
redirecting the request.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getHostRedirect()
null for nonepublic HttpRedirectAction setHostRedirect(String hostRedirect)
hostRedirect - hostRedirect or null for nonepublic Boolean getHttpsRedirect()
null for nonepublic HttpRedirectAction setHttpsRedirect(Boolean httpsRedirect)
httpsRedirect - httpsRedirect or null for nonepublic String getPathRedirect()
null for nonepublic HttpRedirectAction setPathRedirect(String pathRedirect)
pathRedirect - pathRedirect or null for nonepublic String getPrefixRedirect()
null for nonepublic HttpRedirectAction setPrefixRedirect(String prefixRedirect)
prefixRedirect - prefixRedirect or null for nonepublic String getRedirectResponseCode()
null for nonepublic HttpRedirectAction setRedirectResponseCode(String redirectResponseCode)
redirectResponseCode - redirectResponseCode or null for nonepublic Boolean getStripQuery()
null for nonepublic HttpRedirectAction setStripQuery(Boolean stripQuery)
stripQuery - stripQuery or null for nonepublic HttpRedirectAction set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic HttpRedirectAction clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.