org.xwiki.classloader
Interface ExtendedURLStreamHandler


@ComponentRole
public interface ExtendedURLStreamHandler

Adds the ability for a URLStreamHandler implementation to return the protocol it's managing. Note that unfortunately we cannot extend URLStreamHandler since it's an abstract class and not an interface. Thus components implementing this interface need also to extend URLStreamHandler and user code need to cast looked up instance as URLStreamHandler instances to use them as proper stream handlers.

Since:
2.0.1
Version:
$Id$

Method Summary
 java.lang.String getProtocol()
           
 

Method Detail

getProtocol

java.lang.String getProtocol()
Returns:
the URL protocol supported by the current stream handler (eg "jar", "http", "attachmentjar", etc)


Copyright © 2004-2011 XWiki. All Rights Reserved.