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
 String getProtocol()
           
 

Method Detail

getProtocol

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


Copyright © 2004-2012 XWiki. All Rights Reserved.