Changeset 1804
- Timestamp:
- 08/31/08 17:47:02 (4 months ago)
- Files:
-
- labs/incubator/src/main/php/net/stubbles/remote/protocol/easc/stubEASCProtocolHandler.php (modified) (1 diff)
- labs/incubator/src/main/php/net/stubbles/remote/protocol/stubProtocolHandler.php (modified) (2 diffs)
- labs/incubator/src/main/php/net/stubbles/remote/protocol/stubProtocolHandlerPool.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
labs/incubator/src/main/php/net/stubbles/remote/protocol/easc/stubEASCProtocolHandler.php
r1718 r1804 99 99 * initialize the handler 100 100 * 101 * @param stubURL $url101 * @param stubURLContainer $url 102 102 * @throws stubRemoteException 103 103 */ 104 public function initialize(stubURL $url)104 public function initialize(stubURLContainer $url) 105 105 { 106 106 sscanf($url->getParam('version', '1.0'), labs/incubator/src/main/php/net/stubbles/remote/protocol/stubProtocolHandler.php
r1718 r1804 8 8 * @version $Id$ 9 9 */ 10 stubClassLoader::load('net::stubbles::peer::stubURL ');10 stubClassLoader::load('net::stubbles::peer::stubURLContainer'); 11 11 /** 12 12 * Interface for a protocol handler. … … 20 20 * initialize the handler 21 21 * 22 * @param stubURL $url22 * @param stubURLContainer $url 23 23 * @throws stubRemoteException 24 24 */ 25 public function initialize(stubURL $url);25 public function initialize(stubURLContainer $url); 26 26 27 27 /** labs/incubator/src/main/php/net/stubbles/remote/protocol/stubProtocolHandlerPool.php
r1718 r1804 11 11 'net::stubbles::remote::protocol::stubProtocolHandler', 12 12 'net::stubbles::remote::protocol::stubProtocolHandlerFactory', 13 'net::stubbles::peer::stubURL' 13 'net::stubbles::peer::stubURL', 14 'net::stubbles::peer::stubURLContainer' 14 15 ); 15 16 /** … … 107 108 * checks whether a handler is available for given url 108 109 * 109 * @param string $url110 * @param string|stubURLContainer $url 110 111 * @return bool 111 112 * @throws stubIllegalArgumentException … … 115 116 if (is_string($url) === true) { 116 117 $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.'); 119 120 } 120 121 … … 130 131 * acquire a handler 131 132 * 132 * @param string $url url to aquire a handler for133 * @param string|stubURLContainer $url url to aquire a handler for 133 134 * @param bool $initialize optional if handler should be initialized 134 135 * @return stubProtocolHandler … … 140 141 if (is_string($url) === true) { 141 142 $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.'); 144 145 } 145 146
