| java.lang.Object | |
| ↳ | com.google.gdata.client.http.HttpGDataRequest.Factory |
Known Direct Subclasses
|
The HttpGDataRequest.Factory class is a factory class for constructing new HttpGDataRequest instances.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| authToken | |||||||||||
| connectionSource | |||||||||||
| headerMap | |||||||||||
| privateHeaderMap | |||||||||||
| useSsl | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new GDataRequest instance of the specified RequestType.
| |||||||||||
Creates a new GDataRequest instance for querying a service.
| |||||||||||
Set authentication token to be used on subsequent requests created via
getRequest(com.google.gdata.client.Service.GDataRequest.RequestType, URL, ContentType). | |||||||||||
Sets a specific
HttpUrlConnectionSource instance to create
backing URLConnection instance. | |||||||||||
Set a header that will be included in all requests.
| |||||||||||
Set a header that will be included in all requests and do not log the
value.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
Service.GDataRequest instance. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gdata.client.Service.GDataRequestFactory
| |||||||||||
Creates a new GDataRequest instance of the specified RequestType.
Clients should be sure to call end() on the returned
request once they have finished using it.
| type | The request type |
|---|---|
| requestUrl | The target URL for the request |
| contentType | The contentType of the data being provided in the
request body. May be null if no data is provided.
|
| IOException | |
|---|---|
| ServiceException |
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.
Clients should be sure to call end() on the returned
request once they have finished using it.
| query | The query associated with the request |
|---|---|
| contentType | This parameter is unused but remains for backwards compatibility. |
| IOException | |
|---|---|
| ServiceException |
Set authentication token to be used on subsequent requests created via
getRequest(com.google.gdata.client.Service.GDataRequest.RequestType, URL, ContentType).
An IllegalArgumentException is thrown if an auth token of the
wrong type is passed, or if authentication is not supported.
| authToken | Authentication token. |
|---|
Sets a specific HttpUrlConnectionSource instance to create
backing URLConnection instance.
| connectionSource |
|---|
Set a header that will be included in all requests. If header of the same name was previously set, then replace the previous header value.
| header | The name of the header |
|---|---|
| value | The value of the header, if null, then unset that header. |
Set a header that will be included in all requests and do not log the value. Useful for values that are sensitive or related to security. If header of the same name was previously set, then replace the previous header value.
| header | The name of the header |
|---|---|
| value | The value of the header. If null, then unset that header. |
Creates a Service.GDataRequest instance.
This method is called from getRequest(Query, ContentType) after any changes to
the parameters have been applied.
Subclasses should overwrite this method and not getRequest(Query, ContentType)
| type | |
|---|---|
| requestUrl | |
| contentType |
| IOException | |
|---|---|
| ServiceException |