public final class HttpHeaderAction
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| Constructor and Description |
|---|
HttpHeaderAction() |
| Modifier and Type | Method and Description |
|---|---|
HttpHeaderAction |
clone() |
java.util.List<HttpHeaderOption> |
getRequestHeadersToAdd()
Headers to add to a matching request prior to forwarding the request to the backendService.
|
java.util.List<java.lang.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.
|
java.util.List<HttpHeaderOption> |
getResponseHeadersToAdd()
Headers to add the response prior to sending the response back to the client.
|
java.util.List<java.lang.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(java.lang.String fieldName,
java.lang.Object value) |
HttpHeaderAction |
setRequestHeadersToAdd(java.util.List<HttpHeaderOption> requestHeadersToAdd)
Headers to add to a matching request prior to forwarding the request to the backendService.
|
HttpHeaderAction |
setRequestHeadersToRemove(java.util.List<java.lang.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(java.util.List<HttpHeaderOption> responseHeadersToAdd)
Headers to add the response prior to sending the response back to the client.
|
HttpHeaderAction |
setResponseHeadersToRemove(java.util.List<java.lang.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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.util.List<HttpHeaderOption> getRequestHeadersToAdd()
null for nonepublic HttpHeaderAction setRequestHeadersToAdd(java.util.List<HttpHeaderOption> requestHeadersToAdd)
requestHeadersToAdd - requestHeadersToAdd or null for nonepublic java.util.List<java.lang.String> getRequestHeadersToRemove()
null for nonepublic HttpHeaderAction setRequestHeadersToRemove(java.util.List<java.lang.String> requestHeadersToRemove)
requestHeadersToRemove - requestHeadersToRemove or null for nonepublic java.util.List<HttpHeaderOption> getResponseHeadersToAdd()
null for nonepublic HttpHeaderAction setResponseHeadersToAdd(java.util.List<HttpHeaderOption> responseHeadersToAdd)
responseHeadersToAdd - responseHeadersToAdd or null for nonepublic java.util.List<java.lang.String> getResponseHeadersToRemove()
null for nonepublic HttpHeaderAction setResponseHeadersToRemove(java.util.List<java.lang.String> responseHeadersToRemove)
responseHeadersToRemove - responseHeadersToRemove or null for nonepublic HttpHeaderAction set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic HttpHeaderAction clone()
clone in class com.google.api.client.json.GenericJson