public final class UrlRewrite
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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
UrlRewrite() |
Modifier and Type | Method and Description |
---|---|
UrlRewrite |
clone() |
String |
getHostRewrite()
Before forwarding the request to the selected service, the request's host header is replaced
with contents of hostRewrite.
|
String |
getPathPrefixRewrite()
Before forwarding the request to the selected backend service, the matching portion of the
request's path is replaced by pathPrefixRewrite.
|
String |
getPathTemplateRewrite()
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP
template syntax.
|
UrlRewrite |
set(String fieldName,
Object value) |
UrlRewrite |
setHostRewrite(String hostRewrite)
Before forwarding the request to the selected service, the request's host header is replaced
with contents of hostRewrite.
|
UrlRewrite |
setPathPrefixRewrite(String pathPrefixRewrite)
Before forwarding the request to the selected backend service, the matching portion of the
request's path is replaced by pathPrefixRewrite.
|
UrlRewrite |
setPathTemplateRewrite(String pathTemplateRewrite)
If specified, the pattern rewrites the URL path (based on the :path header) using the HTTP
template syntax.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getHostRewrite()
null
for nonepublic UrlRewrite setHostRewrite(String hostRewrite)
hostRewrite
- hostRewrite or null
for nonepublic String getPathPrefixRewrite()
null
for nonepublic UrlRewrite setPathPrefixRewrite(String pathPrefixRewrite)
pathPrefixRewrite
- pathPrefixRewrite or null
for nonepublic String getPathTemplateRewrite()
null
for nonepublic UrlRewrite setPathTemplateRewrite(String pathTemplateRewrite)
pathTemplateRewrite
- pathTemplateRewrite or null
for nonepublic UrlRewrite set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public UrlRewrite clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.