Zend Framework
1.12
|
Public Member Functions | |
__construct (Zend_Oauth_Consumer $consumer, array $parameters=null, Zend_Oauth_Http_Utility $utility=null) | |
Constructor. | |
setMethod ($method) | |
Set a preferred HTTP request method. | |
getMethod () | |
Preferred HTTP request method accessor. | |
setParameters (array $customServiceParameters) | |
Mutator to set an array of custom parameters for the HTTP request. | |
getParameters () | |
Accessor for an array of custom parameters. | |
getConsumer () | |
Return the Consumer instance in use. | |
startRequestCycle (array $params) | |
Commence a request cycle where the current HTTP method and OAuth request scheme set an upper preferred HTTP request style and where failures generate a new HTTP request style further down the OAuth preference list for OAuth Request Schemes. | |
getRequestSchemeQueryStringClient (array $params, $url) | |
Return an instance of Zend_Http_Client configured to use the Query String scheme for an OAuth driven HTTP request. | |
Protected Member Functions | |
_assessRequestAttempt (Zend_Http_Response $response=null) | |
Manages the switch from OAuth request scheme to another lower preference scheme during a request cycle. | |
_toAuthorizationHeader (array $params, $realm=null) | |
Generates a valid OAuth Authorization header based on the provided parameters and realm. | |
Protected Attributes | |
$_parameters = array() | |
$_consumer = null | |
$_preferredRequestScheme = null | |
$_preferredRequestMethod = Zend_Oauth::POST | |
$_httpUtility = null | |
__construct | ( | Zend_Oauth_Consumer | $consumer, |
array | $parameters = null , |
||
Zend_Oauth_Http_Utility | $utility = null |
||
) |
Constructor.
Zend_Oauth_Consumer | $consumer | |
null | array | $parameters | |
null | Zend_Oauth_Http_Utility | $utility |
|
protected |
Manages the switch from OAuth request scheme to another lower preference scheme during a request cycle.
Zend_Http_Response |
Zend_Oauth_Exception | if unable to retrieve valid token response |
|
protected |
Generates a valid OAuth Authorization header based on the provided parameters and realm.
array | $params | |
string | $realm |
getConsumer | ( | ) |
Return the Consumer instance in use.
getMethod | ( | ) |
Preferred HTTP request method accessor.
getParameters | ( | ) |
Accessor for an array of custom parameters.
getRequestSchemeQueryStringClient | ( | array | $params, |
$url | |||
) |
Return an instance of Zend_Http_Client configured to use the Query String scheme for an OAuth driven HTTP request.
array | $params | |
string | $url |
setMethod | ( | $method | ) |
setParameters | ( | array | $customServiceParameters | ) |
Mutator to set an array of custom parameters for the HTTP request.
array | $customServiceParameters |
startRequestCycle | ( | array | $params | ) |
Commence a request cycle where the current HTTP method and OAuth request scheme set an upper preferred HTTP request style and where failures generate a new HTTP request style further down the OAuth preference list for OAuth Request Schemes.
On success, return the Request object that results for processing.
array | $params |
Zend_Oauth_Exception | on HTTP request errors |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |