public final class HttpRequestContext
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 Error Reporting 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 |
---|
HttpRequestContext() |
Modifier and Type | Method and Description |
---|---|
HttpRequestContext |
clone() |
java.lang.String |
getMethod()
The type of HTTP request, such as `GET`, `POST`, etc.
|
java.lang.String |
getReferrer()
The referrer information that is provided with the request.
|
java.lang.String |
getRemoteIp()
The IP address from which the request originated.
|
java.lang.Integer |
getResponseStatusCode()
The HTTP response status code for the request.
|
java.lang.String |
getUrl()
The URL of the request.
|
java.lang.String |
getUserAgent()
The user agent information that is provided with the request.
|
HttpRequestContext |
set(java.lang.String fieldName,
java.lang.Object value) |
HttpRequestContext |
setMethod(java.lang.String method)
The type of HTTP request, such as `GET`, `POST`, etc.
|
HttpRequestContext |
setReferrer(java.lang.String referrer)
The referrer information that is provided with the request.
|
HttpRequestContext |
setRemoteIp(java.lang.String remoteIp)
The IP address from which the request originated.
|
HttpRequestContext |
setResponseStatusCode(java.lang.Integer responseStatusCode)
The HTTP response status code for the request.
|
HttpRequestContext |
setUrl(java.lang.String url)
The URL of the request.
|
HttpRequestContext |
setUserAgent(java.lang.String userAgent)
The user agent information that is provided with the request.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getMethod()
null
for nonepublic HttpRequestContext setMethod(java.lang.String method)
method
- method or null
for nonepublic java.lang.String getReferrer()
null
for nonepublic HttpRequestContext setReferrer(java.lang.String referrer)
referrer
- referrer or null
for nonepublic java.lang.String getRemoteIp()
null
for nonepublic HttpRequestContext setRemoteIp(java.lang.String remoteIp)
remoteIp
- remoteIp or null
for nonepublic java.lang.Integer getResponseStatusCode()
null
for nonepublic HttpRequestContext setResponseStatusCode(java.lang.Integer responseStatusCode)
responseStatusCode
- responseStatusCode or null
for nonepublic java.lang.String getUrl()
null
for nonepublic HttpRequestContext setUrl(java.lang.String url)
url
- url or null
for nonepublic java.lang.String getUserAgent()
null
for nonepublic HttpRequestContext setUserAgent(java.lang.String userAgent)
userAgent
- userAgent or null
for nonepublic HttpRequestContext set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public HttpRequestContext clone()
clone
in class com.google.api.client.json.GenericJson