public final class V2HttpRequest
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 Service Control 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 |
---|
V2HttpRequest() |
Modifier and Type | Method and Description |
---|---|
V2HttpRequest |
clone() |
Long |
getCacheFillBytes()
The number of HTTP response bytes inserted into cache.
|
Boolean |
getCacheHit()
Whether or not an entity was served from cache (with or without validation).
|
Boolean |
getCacheLookup()
Whether or not a cache lookup was attempted.
|
Boolean |
getCacheValidatedWithOriginServer()
Whether or not the response was validated with the origin server before being served from
cache.
|
String |
getLatency()
The request processing latency on the server, from the time the request was received until the
response was sent.
|
String |
getProtocol()
Protocol used for the request.
|
String |
getReferer()
The referer URL of the request, as defined in [HTTP/1.1 Header Field
Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
String |
getRemoteIp()
The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
String |
getRequestMethod()
The request method.
|
Long |
getRequestSize()
The size of the HTTP request message in bytes, including the request headers and the request
body.
|
String |
getRequestUrl()
The scheme (http, https), the host name, the path, and the query portion of the URL that was
requested.
|
Long |
getResponseSize()
The size of the HTTP response message sent back to the client, in bytes, including the response
headers and the response body.
|
String |
getServerIp()
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
|
Integer |
getStatus()
The response code indicating the status of the response.
|
String |
getUserAgent()
The user agent sent by the client.
|
V2HttpRequest |
set(String fieldName,
Object value) |
V2HttpRequest |
setCacheFillBytes(Long cacheFillBytes)
The number of HTTP response bytes inserted into cache.
|
V2HttpRequest |
setCacheHit(Boolean cacheHit)
Whether or not an entity was served from cache (with or without validation).
|
V2HttpRequest |
setCacheLookup(Boolean cacheLookup)
Whether or not a cache lookup was attempted.
|
V2HttpRequest |
setCacheValidatedWithOriginServer(Boolean cacheValidatedWithOriginServer)
Whether or not the response was validated with the origin server before being served from
cache.
|
V2HttpRequest |
setLatency(String latency)
The request processing latency on the server, from the time the request was received until the
response was sent.
|
V2HttpRequest |
setProtocol(String protocol)
Protocol used for the request.
|
V2HttpRequest |
setReferer(String referer)
The referer URL of the request, as defined in [HTTP/1.1 Header Field
Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
V2HttpRequest |
setRemoteIp(String remoteIp)
The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
V2HttpRequest |
setRequestMethod(String requestMethod)
The request method.
|
V2HttpRequest |
setRequestSize(Long requestSize)
The size of the HTTP request message in bytes, including the request headers and the request
body.
|
V2HttpRequest |
setRequestUrl(String requestUrl)
The scheme (http, https), the host name, the path, and the query portion of the URL that was
requested.
|
V2HttpRequest |
setResponseSize(Long responseSize)
The size of the HTTP response message sent back to the client, in bytes, including the response
headers and the response body.
|
V2HttpRequest |
setServerIp(String serverIp)
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
|
V2HttpRequest |
setStatus(Integer status)
The response code indicating the status of the response.
|
V2HttpRequest |
setUserAgent(String userAgent)
The user agent sent by 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 Long getCacheFillBytes()
null
for nonepublic V2HttpRequest setCacheFillBytes(Long cacheFillBytes)
cacheFillBytes
- cacheFillBytes or null
for nonepublic Boolean getCacheHit()
null
for nonepublic V2HttpRequest setCacheHit(Boolean cacheHit)
cacheHit
- cacheHit or null
for nonepublic Boolean getCacheLookup()
null
for nonepublic V2HttpRequest setCacheLookup(Boolean cacheLookup)
cacheLookup
- cacheLookup or null
for nonepublic Boolean getCacheValidatedWithOriginServer()
null
for nonepublic V2HttpRequest setCacheValidatedWithOriginServer(Boolean cacheValidatedWithOriginServer)
cacheValidatedWithOriginServer
- cacheValidatedWithOriginServer or null
for nonepublic String getLatency()
null
for nonepublic V2HttpRequest setLatency(String latency)
latency
- latency or null
for nonepublic String getProtocol()
null
for nonepublic V2HttpRequest setProtocol(String protocol)
protocol
- protocol or null
for nonepublic String getReferer()
null
for nonepublic V2HttpRequest setReferer(String referer)
referer
- referer or null
for nonepublic String getRemoteIp()
null
for nonepublic V2HttpRequest setRemoteIp(String remoteIp)
remoteIp
- remoteIp or null
for nonepublic String getRequestMethod()
null
for nonepublic V2HttpRequest setRequestMethod(String requestMethod)
requestMethod
- requestMethod or null
for nonepublic Long getRequestSize()
null
for nonepublic V2HttpRequest setRequestSize(Long requestSize)
requestSize
- requestSize or null
for nonepublic String getRequestUrl()
null
for nonepublic V2HttpRequest setRequestUrl(String requestUrl)
requestUrl
- requestUrl or null
for nonepublic Long getResponseSize()
null
for nonepublic V2HttpRequest setResponseSize(Long responseSize)
responseSize
- responseSize or null
for nonepublic String getServerIp()
null
for nonepublic V2HttpRequest setServerIp(String serverIp)
serverIp
- serverIp or null
for nonepublic Integer getStatus()
null
for nonepublic V2HttpRequest setStatus(Integer status)
status
- status or null
for nonepublic String getUserAgent()
null
for nonepublic V2HttpRequest setUserAgent(String userAgent)
userAgent
- userAgent or null
for nonepublic V2HttpRequest set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public V2HttpRequest clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.