\DummyApiClient
Synopsis
class DummyApiClient
extends WebApiClient
{
- // members
- protected $clientMock;
- // Inherited members from WebApiClient
- public static integer $cache_length;
- protected String $baseUrl;
- protected $methods;
- protected $globalParams;
- protected array $returnHandlers;
- protected boolean $useCookies;
- protected boolean $maintainSession;
- protected $authInfo;
- protected Zend_Http_Client $httpClient;
- // methods
- public void __construct()
- protected void getClient()
- public void returnClient()
- // Inherited methods from WebApiClient
- public void setBaseUrl()
- public void getBaseUrl()
- public void setMethods()
- public void setGlobalParams()
- public void setGlobalParam()
- public array addReturnHandler()
- public void setUseCookies()
- public void setMaintainSession()
- public void setAuthInfo()
- public void __construct()
- public void __call()
- public mixed callMethod()
- public mixed callUrl()
- protected Zend_Http_Client getClient()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
391 | For some reason the Alfresco client goes into an infinite loop when returning |
Members
protected
- $authInfo
—
array
Basic HTTP Auth details - $baseUrl
—
String
The base URL to use for all the calls - $clientMock
- $globalParams
—
array
An array of parameters that should ALWAYS be passed through on each request. - $httpClient
—
Zend_Http_Client
The HTTP Client being used during the life of this request - $maintainSession
- $methods
- $returnHandlers
- $useCookies
—
boolean
Whether or not to persist cookies (eg in a login situation
public
- $cache_length
Methods
protected
public
Inherited from WebApiClient
protected
- getClient() — Create and return the http client, defined in a separate method for testing purposes
public
- __call()
- addReturnHandler() — Adds a new return handler to the list of handlers.
- callMethod() — Call a method with the passed in arguments
- callUrl() — Call a URL directly, without it being mapped to a configured web method.
- getBaseUrl()
- setAuthInfo()
- setBaseUrl()
- setGlobalParam() — Set a single param
- setGlobalParams() — Sets the global parameters
- setMaintainSession()
- setMethods() — The methods to call
- setUseCookies()