Gdata/HttpClient.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- Gdata
- Version
- $Id$
\Zend_Gdata_HttpClient
- Parent(s)
- \Zend_Http_Client
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

resource $_authSubPrivateKeyId = nullnullDetails- Type
- resource

string $_authSubToken = nullnullDetails- Type
- string

string $_clientLoginKey = nullnullDetails- Type
- string

string $_clientLoginToken = nullnullDetails- Type
- string
Methods

_prepareBody() : stringPrepare the request body (for POST and PUT requests)
| Type | Description |
|---|---|
| string |
| Exception | Description |
|---|---|
| \Zend_Http_Client_Exception |

filterHttpRequest(string $method, string $url, array $headers = array(), string $body = null, string $contentType = null) : arrayFilters the HTTP requests being sent to add the Authorization header.
| Name | Type | Description |
|---|---|---|
| $method | string | The HTTP method |
| $url | string | The URL |
| $headers | array | An associate array of headers to be sent with the request or null |
| $body | string | The body of the request or null |
| $contentType | string | The MIME content type of the body or null |
| Type | Description |
|---|---|
| array | The processed values in an associative array, using the same names as the params |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_Exception | if there was a signing failure |

filterHttpResponse(\Zend_Http_Response $response) : \Zend_Http_ResponseMethod for filtering the HTTP response, though no filtering is currently done.
| Name | Type | Description |
|---|---|---|
| $response | \Zend_Http_Response | The response object to filter |
| Type | Description |
|---|---|
| \Zend_Http_Response | The filterd response object |

getAdapter() : \Zend_Http_Client_Adapter_Interface | stringReturn the current connection adapter
| Type | Description |
|---|---|
| \Zend_Http_Client_Adapter_Interface | string | $adapter |

getAuthSubPrivateKeyId() : stringGets the openssl private key id
| Type | Description |
|---|---|
| string | The private key |

getAuthSubToken() : stringGets the AuthSub token used for authentication
| Type | Description |
|---|---|
| string | The token |

getClientLoginToken() : stringGets the ClientLogin token used for authentication
| Type | Description |
|---|---|
| string | The token |

getStreamingRequest() : booleanCheck whether the client is set to perform streaming requests.
| Type | Description |
|---|---|
| boolean | True if yes, false otherwise. |

resetParameters( $clearAll = false) : \Zend_Http_ClientClear all custom parameters we set.
| Name | Type | Description |
|---|---|---|
| $clearAll |
| Type | Description |
|---|---|
| \Zend_Http_Client |

setAdapter(\Zend_Http_Client_Adapter_Interface $adapter) : voidLoad the connection adapter
| Name | Type | Description |
|---|---|---|
| $adapter | \Zend_Http_Client_Adapter_Interface |

setAuthSubPrivateKey(string $key, string $passphrase = null) : \Zend_Gdata_HttpClientSets the PEM formatted private key to be used for secure AuthSub auth.
| Name | Type | Description |
|---|---|---|
| $key | string | The private key |
| $passphrase | string | The optional private key passphrase |
| Type | Description |
|---|---|
| \Zend_Gdata_HttpClient | Provides a fluent interface |
| Exception | Description |
|---|---|
| \Zend_Gdata_App_InvalidArgumentException |

setAuthSubPrivateKeyFile(string $file, string $passphrase = null, bool $useIncludePath = false) : voidSets the PEM formatted private key, as read from a file.
| Name | Type | Description |
|---|---|---|
| $file | string | The location of the file containing the PEM key |
| $passphrase | string | The optional private key passphrase |
| $useIncludePath | bool | Whether to search the include_path for the file |

setAuthSubToken(string $token) : \Zend_Gdata_HttpClientSets the AuthSub token used for authentication
| Name | Type | Description |
|---|---|---|
| $token | string | The token |
| Type | Description |
|---|---|
| \Zend_Gdata_HttpClient | Provides a fluent interface |

setClientLoginToken(string $token) : \Zend_Gdata_HttpClientSets the ClientLogin token used for authentication
| Name | Type | Description |
|---|---|---|
| $token | string | The token |
| Type | Description |
|---|---|
| \Zend_Gdata_HttpClient | Provides a fluent interface |

setRawDataStream(string $data, string $enctype = null) : \Zend_Http_ClientSet the raw (already encoded) POST data from a stream source.
| Name | Type | Description |
|---|---|---|
| $data | string | The request data |
| $enctype | string | The encoding type |
| Type | Description |
|---|---|
| \Zend_Http_Client |