HTTPClient Class Reference
Detailed Description
HTTPClient is used to do calls to other wCMF instances over HTTP.
- See also
- RemotingServer
- Note
- This class requires Zend_Http_Client
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
-
$serverUrl The url of the other server instance. $user The remote user instance.
Definition at line 47 of file HTTPClient.php.
Member Function Documentation
call | ( | Request | $request | ) |
Do a call to the remote server.
- Parameters
-
$request A Request instance
- Returns
- A Response instance
Implements RemotingClient.
Definition at line 66 of file HTTPClient.php.
|
protected |
Do a remote call.
- Parameters
-
$request The Request instance $isLogin Boolean whether this request is a login request or not
- Returns
- The Response instance
Definition at line 77 of file HTTPClient.php.
|
protected |
Do the login request.
If the request is successful, the session id will be set.
- Returns
- True on success
Definition at line 128 of file HTTPClient.php.
|
protected |
Error handling method.
- Parameters
-
$response The Response instance
Definition at line 153 of file HTTPClient.php.