Changeset 1203

Show
Ignore:
Timestamp:
01/04/08 14:38:15 (11 months ago)
Author:
mikey
Message:

moved net::stubbles::util::net::http::stubHTTPConnectionException to net::stubbles::util::net::stubConnectionException

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/util/net/http/stubHTTPConnection.php

    r719 r1203  
    5555     * @param   stubHeaderList    $headers  optional  list of headers to use 
    5656     * @return  stubHTTPResponse 
    57      * @throws  stubHTTPConnectionException 
    5857     */ 
    5958    public function get(stubHeaderList $headers = null) 
     
    7271     * @param   stubHeaderList    $headers  optional  list of headers to use 
    7372     * @return  stubHTTPResponse 
    74      * @throws  stubHTTPConnectionException 
    7573     */ 
    7674    public function head(stubHeaderList $headers = null) 
     
    9088     * @param   stubHeaderList    $headers      optional  list of headers to use 
    9189     * @return  stubHTTPResponse 
    92      * @throws  stubHTTPConnectionException 
    9390     */ 
    9491    public function post($postValues, stubHeaderList $headers) 
  • trunk/src/main/php/net/stubbles/util/net/http/stubHTTPRequest.php

    r719 r1203  
    88 */ 
    99stubClassLoader::load('net.stubbles.util.net.http.stubHeaderList', 
    10                       'net.stubbles.util.net.http.stubHTTPConnectionException', 
     10                      'net.stubbles.util.net.stubConnectionException', 
    1111                      'net.stubbles.util.net.stubSocket' 
    1212); 
     
    116116     * @param   string            $version  optional  version of HTTP-protocol to use, standard: HTTP/1.0 
    117117     * @return  stubHTTPResponse  response of given request 
    118      * @throws  stubHTTPConnectionException 
     118     * @throws  stubConnectionException 
    119119     */ 
    120120    public function send($method, $version = null) 
     
    164164            } 
    165165        } catch (stubSocketException $se) { 
    166             throw new stubHTTPConnectionException('Failed sending request to ' . $this->http->getHost(), $se); 
     166            throw new stubConnectionException('Failed sending request to ' . $this->http->getHost(), $se); 
    167167        } 
    168168         
  • trunk/src/main/php/net/stubbles/util/net/http/stubHTTPResponse.php

    r1127 r1203  
    88 */ 
    99stubClassLoader::load('net.stubbles.util.net.http.stubHeaderList', 
    10                       'net.stubbles.util.net.http.stubHTTPConnectionException', 
     10                      'net.stubbles.util.net.stubConnectionException', 
    1111                      'net.stubbles.util.net.stubSocket' 
    1212); 
     
    109109     * read the response from socket and parse it 
    110110     * 
    111      * @throws  stubHTTPConnectionException 
     111     * @throws  stubConnectionException 
    112112     */ 
    113113    public function read() 
     
    168168            } 
    169169        } catch (stubSocketException $se) { 
    170             throw new stubHTTPConnectionException('Failed getting response from ' . $this->socket->getHost(), $se); 
     170            throw new stubConnectionException('Failed getting response from ' . $this->socket->getHost(), $se); 
    171171        } 
    172172    } 
  • trunk/src/main/php/net/stubbles/util/net/http/stubHTTPURL.php

    r1127 r1203  
    161161     * 
    162162     * @return  stubHTTPConnection 
    163      * @throws  stubHTTPConnectionException 
    164163     */ 
    165164    public function getConnection() 
  • trunk/src/main/php/net/stubbles/util/net/stubConnectionException.php

    r777 r1203  
    11<?php 
    22/** 
    3  * Exception to be thrown when an error on a http connection occurs. 
     3 * Exception to be thrown when an error on a network connection occurs. 
    44 * 
    55 * @author      Frank Kleine <mikey@stubbles.net> 
    66 * @package     stubbles 
    7  * @subpackage  util_net_http 
     7 * @subpackage  util_net 
    88 */ 
    99stubClassLoader::load('net.stubbles.lang.exceptions.stubChainedException'); 
    1010/** 
    11  * Exception to be thrown when an error on a http connection occurs. 
     11 * Exception to be thrown when an error on a network connection occurs. 
    1212 * 
    1313 * @package     stubbles 
    14  * @subpackage  util_net_http 
     14 * @subpackage  util_net 
    1515 */ 
    16 class stubHTTPConnectionException extends stubChainedException 
     16class stubConnectionException extends stubChainedException 
    1717{ 
    1818    // intentionally empty