public final class HttpHeaderAction extends 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
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
HttpHeaderAction() |
| Modifier and Type | Method and Description |
|---|---|
HttpHeaderAction |
clone() |
List<HttpHeaderOption> |
getRequestHeadersToAdd()
Headers to add to a matching request prior to forwarding the request to the backendService.
|
List<String> |
getRequestHeadersToRemove()
A list of header names for headers that need to be removed from the request prior to forwarding
the request to the backendService.
|
List<HttpHeaderOption> |
getResponseHeadersToAdd()
Headers to add the response prior to sending the response back to the client.
|
List<String> |
getResponseHeadersToRemove()
A list of header names for headers that need to be removed from the response prior to sending
the response back to the client.
|
HttpHeaderAction |
set(String fieldName,
Object value) |
HttpHeaderAction |
setRequestHeadersToAdd(List<HttpHeaderOption> requestHeadersToAdd)
Headers to add to a matching request prior to forwarding the request to the backendService.
|
HttpHeaderAction |
setRequestHeadersToRemove(List<String> requestHeadersToRemove)
A list of header names for headers that need to be removed from the request prior to forwarding
the request to the backendService.
|
HttpHeaderAction |
setResponseHeadersToAdd(List<HttpHeaderOption> responseHeadersToAdd)
Headers to add the response prior to sending the response back to the client.
|
HttpHeaderAction |
setResponseHeadersToRemove(List<String> responseHeadersToRemove)
A list of header names for headers that need to be removed from the response prior to sending
the response back to the client.
|
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 List<HttpHeaderOption> getRequestHeadersToAdd()
null for nonepublic HttpHeaderAction setRequestHeadersToAdd(List<HttpHeaderOption> requestHeadersToAdd)
requestHeadersToAdd - requestHeadersToAdd or null for nonepublic List<String> getRequestHeadersToRemove()
null for nonepublic HttpHeaderAction setRequestHeadersToRemove(List<String> requestHeadersToRemove)
requestHeadersToRemove - requestHeadersToRemove or null for nonepublic List<HttpHeaderOption> getResponseHeadersToAdd()
null for nonepublic HttpHeaderAction setResponseHeadersToAdd(List<HttpHeaderOption> responseHeadersToAdd)
responseHeadersToAdd - responseHeadersToAdd or null for nonepublic List<String> getResponseHeadersToRemove()
null for nonepublic HttpHeaderAction setResponseHeadersToRemove(List<String> responseHeadersToRemove)
responseHeadersToRemove - responseHeadersToRemove or null for nonepublic HttpHeaderAction set(String fieldName, Object value)
set in class GenericJsonpublic HttpHeaderAction clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.