[jboss-dev] org.jboss.net.protocol handlers?
Ales Justin
ales.justin at gmail.com
Wed Mar 10 06:37:43 EST 2010
VFS::init
private static void init() {
// If this doesn't work, hopefully the existing URLStreamHandlerFactory supports updates to the 'java.protocol.handler.pkgs' property.
try {
URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());
} catch (Throwable ignored) {
log.warn("VFS was unable to set the URLStreamHandlerFactory. This will have unpredictable results");
}
String pkgs = System.getProperty("java.protocol.handler.pkgs");
if (pkgs == null || pkgs.trim().length() == 0) {
pkgs = "org.jboss.net.protocol|org.jboss.vfs.protocol";
System.setProperty("java.protocol.handler.pkgs", pkgs);
} else if (pkgs.contains("org.jboss.vfs.protocol") == false) {
if(pkgs.contains("org.jboss.net.protocol") == false)
pkgs += "|org.jboss.net.protocol";
pkgs += "|org.jboss.vfs.protocol";
System.setProperty("java.protocol.handler.pkgs", pkgs);
}
}
On Mar 10, 2010, at 12:31 PM, Dimitris Andreadis wrote:
> So with the switch to VFS3 are the URL protocol handlers in
> common-core:org.jboss.net.protocol.* still in use?
>
> E.g
> org.jboss.net.protocol.file.Handler/FileURLConnection
>
> Cheers
> /D
>
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
More information about the jboss-development
mailing list