private static void init ( ) { 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 ) ; } }
Initialize VFS protocol handlers package property .