2424 * @namespace
2525 */
2626namespace Zend \XmlRpc ;
27- use Zend \HTTP ,
27+ use Zend \Http ,
2828 Zend \XmlRpc \Value ;
2929
3030/**
3131 * An XML-RPC client implementation
3232 *
33- * @uses Zend\HTTP \Client
33+ * @uses Zend\Http \Client
3434 * @uses Zend\XmlRpc\Client\FaultException
35- * @uses Zend\XmlRpc\Client\HTTPException
35+ * @uses Zend\XmlRpc\Client\HttpException
3636 * @uses Zend\XmlRpc\Client\ServerIntrospection
3737 * @uses Zend\XmlRpc\Client\ServerProxy
3838 * @uses Zend\XmlRpc\Fault
@@ -56,7 +56,7 @@ class Client
5656
5757 /**
5858 * HTTP Client to use for requests
59- * @var Zend\HTTP \Client
59+ * @var Zend\Http \Client
6060 */
6161 protected $ _httpClient = null ;
6262
@@ -95,13 +95,13 @@ class Client
9595 *
9696 * @param string $server Full address of the XML-RPC service
9797 * (e.g. http://time.xmlrpc.com/RPC2)
98- * @param Zend\HTTP \Client $httpClient HTTP Client to use for requests
98+ * @param Zend\Http \Client $httpClient HTTP Client to use for requests
9999 * @return void
100100 */
101- public function __construct ($ server , HTTP \Client $ httpClient = null )
101+ public function __construct ($ server , Http \Client $ httpClient = null )
102102 {
103103 if ($ httpClient === null ) {
104- $ this ->_httpClient = new HTTP \Client ();
104+ $ this ->_httpClient = new Http \Client ();
105105 } else {
106106 $ this ->_httpClient = $ httpClient ;
107107 }
@@ -114,10 +114,10 @@ public function __construct($server, HTTP\Client $httpClient = null)
114114 /**
115115 * Sets the HTTP client object to use for connecting the XML-RPC server.
116116 *
117- * @param Zend\HTTP \Client $httpClient
118- * @return Zend\HTTP \Client
117+ * @param Zend\Http \Client $httpClient
118+ * @return Zend\Http \Client
119119 */
120- public function setHttpClient (HTTP \Client $ httpClient )
120+ public function setHttpClient (Http \Client $ httpClient )
121121 {
122122 return $ this ->_httpClient = $ httpClient ;
123123 }
@@ -126,7 +126,7 @@ public function setHttpClient(HTTP\Client $httpClient)
126126 /**
127127 * Gets the HTTP client object.
128128 *
129- * @return Zend\HTTP \Client
129+ * @return Zend\Http \Client
130130 */
131131 public function getHttpClient ()
132132 {
@@ -222,7 +222,7 @@ public function skipSystemLookup()
222222 * @param Zend\XmlRpc\Request $request
223223 * @param null|Zend\XmlRpc\Response $response
224224 * @return void
225- * @throws Zend\XmlRpc\Client\HTTPException
225+ * @throws Zend\XmlRpc\Client\HttpException
226226 */
227227 public function doRequest ($ request , $ response = null )
228228 {
@@ -248,13 +248,13 @@ public function doRequest($request, $response = null)
248248
249249 $ xml = $ this ->_lastRequest ->__toString ();
250250 $ http ->setRawData ($ xml );
251- $ httpResponse = $ http ->request (HTTP \Client::POST );
251+ $ httpResponse = $ http ->request (Http \Client::POST );
252252
253253 if (! $ httpResponse ->isSuccessful ()) {
254254 /**
255255 * Exception thrown when an HTTP error occurs
256256 */
257- throw new Client \HTTPException (
257+ throw new Client \HttpException (
258258 $ httpResponse ->getMessage (),
259259 $ httpResponse ->getStatus ()
260260 );
0 commit comments