Detailed Description

HTTPClient is used to do calls to other wCMF instances over HTTP.

See also
RemotingServer
Note
This class requires Zend_Http_Client
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 35 of file HTTPClient.php.

+ Inheritance diagram for HTTPClient:

Public Member Functions

 __construct ($serverUrl, $user)
 
 call (Request $request)
 

Protected Member Functions

 doRemoteCall (Request $request, $isLogin)
 
 doLogin ()
 
 handleError ($response)
 

Constructor & Destructor Documentation

__construct (   $serverUrl,
  $user 
)

Constructor.

Parameters
$serverUrlThe url of the other server instance.
$userThe remote user instance.

Definition at line 49 of file HTTPClient.php.

Member Function Documentation

call ( Request  $request)

Do a call to the remote server.

Parameters
$requestA Request instance
Returns
A Response instance

Implements RemotingClient.

Definition at line 68 of file HTTPClient.php.

doRemoteCall ( Request  $request,
  $isLogin 
)
protected

Do a remote call.

Parameters
$requestThe Request instance
$isLoginBoolean whether this request is a login request or not
Returns
The Response instance

Definition at line 79 of file HTTPClient.php.

doLogin ( )
protected

Do the login request.

If the request is successful, the session id will be set.

Returns
True on success

Definition at line 130 of file HTTPClient.php.

handleError (   $response)
protected

Error handling method.

Parameters
$responseThe Response instance

Definition at line 153 of file HTTPClient.php.