Changeset 1804

Show
Ignore:
Timestamp:
08/31/08 17:47:02 (4 months ago)
Author:
mikey
Message:

use net::stubbles::peer::stubURLContainer instead of net::stubbles::peer::stubURL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • labs/incubator/src/main/php/net/stubbles/remote/protocol/easc/stubEASCProtocolHandler.php

    r1718 r1804  
    9999     * initialize the handler 
    100100     * 
    101      * @param   stubURL  $url 
     101     * @param   stubURLContainer     $url 
    102102     * @throws  stubRemoteException 
    103103     */ 
    104     public function initialize(stubURL $url) 
     104    public function initialize(stubURLContainer $url) 
    105105    { 
    106106        sscanf($url->getParam('version', '1.0'), 
  • labs/incubator/src/main/php/net/stubbles/remote/protocol/stubProtocolHandler.php

    r1718 r1804  
    88 * @version     $Id$ 
    99 */ 
    10 stubClassLoader::load('net::stubbles::peer::stubURL'); 
     10stubClassLoader::load('net::stubbles::peer::stubURLContainer'); 
    1111/** 
    1212 * Interface for a protocol handler. 
     
    2020     * initialize the handler 
    2121     * 
    22      * @param   stubURL  $url 
     22     * @param   stubURLContainer     $url 
    2323     * @throws  stubRemoteException 
    2424     */ 
    25     public function initialize(stubURL $url); 
     25    public function initialize(stubURLContainer $url); 
    2626 
    2727    /** 
  • labs/incubator/src/main/php/net/stubbles/remote/protocol/stubProtocolHandlerPool.php

    r1718 r1804  
    1111                      'net::stubbles::remote::protocol::stubProtocolHandler', 
    1212                      'net::stubbles::remote::protocol::stubProtocolHandlerFactory', 
    13                       'net::stubbles::peer::stubURL' 
     13                      'net::stubbles::peer::stubURL', 
     14                      'net::stubbles::peer::stubURLContainer' 
    1415); 
    1516/** 
     
    107108     * checks whether a handler is available for given url 
    108109     * 
    109      * @param   string  $url 
     110     * @param   string|stubURLContainer  $url 
    110111     * @return  bool 
    111112     * @throws  stubIllegalArgumentException 
     
    115116        if (is_string($url) === true) { 
    116117            $url = stubURL::fromString($url); 
    117         } elseif (($url instanceof stubURL) === false) { 
    118             throw new stubIllegalArgumentException('Param url must be an instance of net::stubbles::peer::stubURL or a string denoting an URL.'); 
     118        } elseif (($url instanceof stubURLContainer) === false) { 
     119            throw new stubIllegalArgumentException('Param url must be an instance of net::stubbles::peer::stubURLContainer or a string denoting an URL.'); 
    119120        } 
    120121         
     
    130131     * acquire a handler 
    131132     * 
    132      * @param   string                        $url         url to aquire a handler for          
     133     * @param   string|stubURLContainer       $url         url to aquire a handler for          
    133134     * @param   bool                          $initialize  optional  if handler should be initialized 
    134135     * @return  stubProtocolHandler 
     
    140141        if (is_string($url) === true) { 
    141142            $url = stubURL::fromString($url); 
    142         } elseif (($url instanceof stubURL) === false) { 
    143             throw new stubIllegalArgumentException('Param url must be an instance of net::stubbles::peer::stubURL or a string denoting an URL.'); 
     143        } elseif (($url instanceof stubURLContainer) === false) { 
     144            throw new stubIllegalArgumentException('Param url must be an instance of net::stubbles::peer::stubURLContainer or a string denoting an URL.'); 
    144145        } 
    145146