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
AbstractMap.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 before forwarding the request to the backendService.
|
List<String> |
getRequestHeadersToRemove()
A list of header names for headers that need to be removed from the request before forwarding
the request to the backendService.
|
List<HttpHeaderOption> |
getResponseHeadersToAdd()
Headers to add the response before 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 before 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 before 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 before forwarding
the request to the backendService.
|
HttpHeaderAction |
setResponseHeadersToAdd(List<HttpHeaderOption> responseHeadersToAdd)
Headers to add the response before 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 before sending the
response back to the client.
|
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 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 com.google.api.client.json.GenericJson
public HttpHeaderAction clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.