com.google.api.client.http.json
Class JsonHttpRequest
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.json.JsonHttpRequest
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
public class JsonHttpRequest
- extends GenericData
JSON HTTP request to JsonHttpClient
.
- Since:
- 1.6
- Author:
- Ravi Mistry
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
JsonHttpRequest
public JsonHttpRequest(JsonHttpClient client,
HttpMethod method,
String uriTemplate,
Object content)
- Builds an instance of
JsonHttpRequest
.
- Parameters:
client
- The JSON HTTP client which handles this requestmethod
- HTTP Method typeuriTemplate
- URI templatecontent
- A POJO that can be serialized into JSON or null
for none
getClient
public final JsonHttpClient getClient()
- Returns:
- the
JsonHttpClient
which handles this request.
executeUnparsed
public final HttpResponse executeUnparsed()
throws IOException
- Sends the request to the server and returns the raw
HttpResponse
.
- Returns:
- the
HttpResponse
- Throws:
IOException
- if the request fails
Copyright © 2011 Google. All Rights Reserved.