com.google.gdata.client.http
Class GoogleGDataRequest.Factory
java.lang.Object
com.google.gdata.client.http.HttpGDataRequest.Factory
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GoogleGDataRequest.Factory
public GoogleGDataRequest.Factory()
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