Changeset 1203
- Timestamp:
- 01/04/08 14:38:15 (11 months ago)
- Files:
-
- trunk/src/main/php/net/stubbles/util/net/http/stubHTTPConnection.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/util/net/http/stubHTTPRequest.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/util/net/http/stubHTTPResponse.php (modified) (3 diffs)
- trunk/src/main/php/net/stubbles/util/net/http/stubHTTPURL.php (modified) (1 diff)
- trunk/src/main/php/net/stubbles/util/net/stubConnectionException.php (moved) (moved from trunk/src/main/php/net/stubbles/util/net/http/stubHTTPConnectionException.php) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/util/net/http/stubHTTPConnection.php
r719 r1203 55 55 * @param stubHeaderList $headers optional list of headers to use 56 56 * @return stubHTTPResponse 57 * @throws stubHTTPConnectionException58 57 */ 59 58 public function get(stubHeaderList $headers = null) … … 72 71 * @param stubHeaderList $headers optional list of headers to use 73 72 * @return stubHTTPResponse 74 * @throws stubHTTPConnectionException75 73 */ 76 74 public function head(stubHeaderList $headers = null) … … 90 88 * @param stubHeaderList $headers optional list of headers to use 91 89 * @return stubHTTPResponse 92 * @throws stubHTTPConnectionException93 90 */ 94 91 public function post($postValues, stubHeaderList $headers) trunk/src/main/php/net/stubbles/util/net/http/stubHTTPRequest.php
r719 r1203 8 8 */ 9 9 stubClassLoader::load('net.stubbles.util.net.http.stubHeaderList', 10 'net.stubbles.util.net. http.stubHTTPConnectionException',10 'net.stubbles.util.net.stubConnectionException', 11 11 'net.stubbles.util.net.stubSocket' 12 12 ); … … 116 116 * @param string $version optional version of HTTP-protocol to use, standard: HTTP/1.0 117 117 * @return stubHTTPResponse response of given request 118 * @throws stub HTTPConnectionException118 * @throws stubConnectionException 119 119 */ 120 120 public function send($method, $version = null) … … 164 164 } 165 165 } catch (stubSocketException $se) { 166 throw new stub HTTPConnectionException('Failed sending request to ' . $this->http->getHost(), $se);166 throw new stubConnectionException('Failed sending request to ' . $this->http->getHost(), $se); 167 167 } 168 168 trunk/src/main/php/net/stubbles/util/net/http/stubHTTPResponse.php
r1127 r1203 8 8 */ 9 9 stubClassLoader::load('net.stubbles.util.net.http.stubHeaderList', 10 'net.stubbles.util.net. http.stubHTTPConnectionException',10 'net.stubbles.util.net.stubConnectionException', 11 11 'net.stubbles.util.net.stubSocket' 12 12 ); … … 109 109 * read the response from socket and parse it 110 110 * 111 * @throws stub HTTPConnectionException111 * @throws stubConnectionException 112 112 */ 113 113 public function read() … … 168 168 } 169 169 } catch (stubSocketException $se) { 170 throw new stub HTTPConnectionException('Failed getting response from ' . $this->socket->getHost(), $se);170 throw new stubConnectionException('Failed getting response from ' . $this->socket->getHost(), $se); 171 171 } 172 172 } trunk/src/main/php/net/stubbles/util/net/http/stubHTTPURL.php
r1127 r1203 161 161 * 162 162 * @return stubHTTPConnection 163 * @throws stubHTTPConnectionException164 163 */ 165 164 public function getConnection() trunk/src/main/php/net/stubbles/util/net/stubConnectionException.php
r777 r1203 1 1 <?php 2 2 /** 3 * Exception to be thrown when an error on a httpconnection occurs.3 * Exception to be thrown when an error on a network connection occurs. 4 4 * 5 5 * @author Frank Kleine <mikey@stubbles.net> 6 6 * @package stubbles 7 * @subpackage util_net _http7 * @subpackage util_net 8 8 */ 9 9 stubClassLoader::load('net.stubbles.lang.exceptions.stubChainedException'); 10 10 /** 11 * Exception to be thrown when an error on a httpconnection occurs.11 * Exception to be thrown when an error on a network connection occurs. 12 12 * 13 13 * @package stubbles 14 * @subpackage util_net _http14 * @subpackage util_net 15 15 */ 16 class stub HTTPConnectionException extends stubChainedException16 class stubConnectionException extends stubChainedException 17 17 { 18 18 // intentionally empty
