com.google.gdata.client.http
Class GoogleGDataRequest.Factory

java.lang.Object
  extended by com.google.gdata.client.http.HttpGDataRequest.Factory
      extended by com.google.gdata.client.http.GoogleGDataRequest.Factory
All Implemented Interfaces:
Service.GDataRequestFactory
Enclosing class:
GoogleGDataRequest

public static class GoogleGDataRequest.Factory
extends HttpGDataRequest.Factory

The GoogleGDataRequest.Factory class is a factory class for constructing new GoogleGDataRequest instances.


Field Summary
 
Fields inherited from class com.google.gdata.client.http.HttpGDataRequest.Factory
authToken, headerMap, privateHeaderMap, useSsl
 
Constructor Summary
GoogleGDataRequest.Factory()
           
 
Method Summary
 Service.GDataRequest getRequest(Query query, ContentType contentType)
          Creates a new GDataRequest instance for querying a service.
 Service.GDataRequest getRequest(Service.GDataRequest.RequestType type, java.net.URL requestUrl, ContentType contentType)
          Creates a new GDataRequest instance of the specified RequestType.
 
Methods inherited from class com.google.gdata.client.http.HttpGDataRequest.Factory
setAuthToken, setAuthToken, setHeader, setPrivateHeader, useSsl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleGDataRequest.Factory

public GoogleGDataRequest.Factory()
Method Detail

getRequest

public Service.GDataRequest getRequest(Service.GDataRequest.RequestType type,
                                       java.net.URL requestUrl,
                                       ContentType contentType)
                                throws java.io.IOException,
                                       ServiceException
Description copied from interface: Service.GDataRequestFactory
Creates a new GDataRequest instance of the specified RequestType.

Specified by:
getRequest in interface Service.GDataRequestFactory
Overrides:
getRequest in class HttpGDataRequest.Factory
Throws:
java.io.IOException
ServiceException

getRequest

public Service.GDataRequest getRequest(Query query,
                                       ContentType contentType)
                                throws java.io.IOException,
                                       ServiceException
Description copied from interface: Service.GDataRequestFactory
Creates a new GDataRequest instance for querying a service. This method pushes the query parameters down to the factory method instead of serializing them as a URL. Some factory implementations prefer to get access to query parameters in their original form, not as a URL.

Specified by:
getRequest in interface Service.GDataRequestFactory
Overrides:
getRequest in class HttpGDataRequest.Factory
Throws:
java.io.IOException
ServiceException