com.google.api.client.http.json
Class JsonHttpRequest

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
JsonHttpRequest(JsonHttpClient client, HttpMethod method, String uriTemplate, Object content)
          Builds an instance of JsonHttpRequest.
 
Method Summary
 HttpResponse executeUnparsed()
          Sends the request to the server and returns the raw HttpResponse.
 JsonHttpClient getClient()
           
 
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 request
method - HTTP Method type
uriTemplate - URI template
content - A POJO that can be serialized into JSON or null for none
Method Detail

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.