Creates a new URLStreamHandler instance with the specified protocol. Will return null if the protocol is not jndi.paramprotocol the protocol (must be "jndi" here)returna URLStreamHandler for the jndi protocol, or null if the protocol is not JNDI if (protocol.equals("jndi")) { return new DirContextURLStreamHandler(); } else { return null; }
jndi
if (protocol.equals("jndi")) { return new DirContextURLStreamHandler(); } else { return null; }