| com.google.gdata.client.Service.GDataRequestFactory |
Known Indirect Subclasses
|
The GDataRequestFactory interface defines a basic factory interface for constructing a new GDataRequest interface.
| 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). | |||||||||||
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.
| |||||||||||
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. |
|---|
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. |