public final class HttpRequest
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
Constructor and Description |
---|
HttpRequest() |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
clone() |
java.lang.Long |
getCacheFillBytes()
The number of HTTP response bytes inserted into cache.
|
java.lang.Boolean |
getCacheHit()
Whether or not an entity was served from cache (with or without validation).
|
java.lang.Boolean |
getCacheLookup()
Whether or not a cache lookup was attempted.
|
java.lang.Boolean |
getCacheValidatedWithOriginServer()
Whether or not the response was validated with the origin server before being served from
cache.
|
java.lang.String |
getLatency()
The request processing latency on the server, from the time the request was received until the
response was sent.
|
java.lang.String |
getProtocol()
Protocol used for the request.
|
java.lang.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).
|
java.lang.String |
getRemoteIp()
The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
java.lang.String |
getRequestMethod()
The request method.
|
java.lang.Long |
getRequestSize()
The size of the HTTP request message in bytes, including the request headers and the request
body.
|
java.lang.String |
getRequestUrl()
The scheme (http, https), the host name, the path, and the query portion of the URL that was
requested.
|
java.lang.Long |
getResponseSize()
The size of the HTTP response message sent back to the client, in bytes, including the response
headers and the response body.
|
java.lang.String |
getServerIp()
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
|
java.lang.Integer |
getStatus()
The response code indicating the status of the response.
|
java.lang.String |
getUserAgent()
The user agent sent by the client.
|
HttpRequest |
set(java.lang.String fieldName,
java.lang.Object value) |
HttpRequest |
setCacheFillBytes(java.lang.Long cacheFillBytes)
The number of HTTP response bytes inserted into cache.
|
HttpRequest |
setCacheHit(java.lang.Boolean cacheHit)
Whether or not an entity was served from cache (with or without validation).
|
HttpRequest |
setCacheLookup(java.lang.Boolean cacheLookup)
Whether or not a cache lookup was attempted.
|
HttpRequest |
setCacheValidatedWithOriginServer(java.lang.Boolean cacheValidatedWithOriginServer)
Whether or not the response was validated with the origin server before being served from
cache.
|
HttpRequest |
setLatency(java.lang.String latency)
The request processing latency on the server, from the time the request was received until the
response was sent.
|
HttpRequest |
setProtocol(java.lang.String protocol)
Protocol used for the request.
|
HttpRequest |
setReferer(java.lang.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).
|
HttpRequest |
setRemoteIp(java.lang.String remoteIp)
The IP address (IPv4 or IPv6) of the client that issued the HTTP request.
|
HttpRequest |
setRequestMethod(java.lang.String requestMethod)
The request method.
|
HttpRequest |
setRequestSize(java.lang.Long requestSize)
The size of the HTTP request message in bytes, including the request headers and the request
body.
|
HttpRequest |
setRequestUrl(java.lang.String requestUrl)
The scheme (http, https), the host name, the path, and the query portion of the URL that was
requested.
|
HttpRequest |
setResponseSize(java.lang.Long responseSize)
The size of the HTTP response message sent back to the client, in bytes, including the response
headers and the response body.
|
HttpRequest |
setServerIp(java.lang.String serverIp)
The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
|
HttpRequest |
setStatus(java.lang.Integer status)
The response code indicating the status of the response.
|
HttpRequest |
setUserAgent(java.lang.String userAgent)
The user agent sent by the client.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Long getCacheFillBytes()
null
for nonepublic HttpRequest setCacheFillBytes(java.lang.Long cacheFillBytes)
cacheFillBytes
- cacheFillBytes or null
for nonepublic java.lang.Boolean getCacheHit()
null
for nonepublic HttpRequest setCacheHit(java.lang.Boolean cacheHit)
cacheHit
- cacheHit or null
for nonepublic java.lang.Boolean getCacheLookup()
null
for nonepublic HttpRequest setCacheLookup(java.lang.Boolean cacheLookup)
cacheLookup
- cacheLookup or null
for nonepublic java.lang.Boolean getCacheValidatedWithOriginServer()
null
for nonepublic HttpRequest setCacheValidatedWithOriginServer(java.lang.Boolean cacheValidatedWithOriginServer)
cacheValidatedWithOriginServer
- cacheValidatedWithOriginServer or null
for nonepublic java.lang.String getLatency()
null
for nonepublic HttpRequest setLatency(java.lang.String latency)
latency
- latency or null
for nonepublic java.lang.String getProtocol()
null
for nonepublic HttpRequest setProtocol(java.lang.String protocol)
protocol
- protocol or null
for nonepublic java.lang.String getReferer()
null
for nonepublic HttpRequest setReferer(java.lang.String referer)
referer
- referer or null
for nonepublic java.lang.String getRemoteIp()
null
for nonepublic HttpRequest setRemoteIp(java.lang.String remoteIp)
remoteIp
- remoteIp or null
for nonepublic java.lang.String getRequestMethod()
null
for nonepublic HttpRequest setRequestMethod(java.lang.String requestMethod)
requestMethod
- requestMethod or null
for nonepublic java.lang.Long getRequestSize()
null
for nonepublic HttpRequest setRequestSize(java.lang.Long requestSize)
requestSize
- requestSize or null
for nonepublic java.lang.String getRequestUrl()
null
for nonepublic HttpRequest setRequestUrl(java.lang.String requestUrl)
requestUrl
- requestUrl or null
for nonepublic java.lang.Long getResponseSize()
null
for nonepublic HttpRequest setResponseSize(java.lang.Long responseSize)
responseSize
- responseSize or null
for nonepublic java.lang.String getServerIp()
null
for nonepublic HttpRequest setServerIp(java.lang.String serverIp)
serverIp
- serverIp or null
for nonepublic java.lang.Integer getStatus()
null
for nonepublic HttpRequest setStatus(java.lang.Integer status)
status
- status or null
for nonepublic java.lang.String getUserAgent()
null
for nonepublic HttpRequest setUserAgent(java.lang.String userAgent)
userAgent
- userAgent or null
for nonepublic HttpRequest set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public HttpRequest clone()
clone
in class com.google.api.client.json.GenericJson