Class DirContextURLStreamHandlerFactory

    • Constructor Detail

      • DirContextURLStreamHandlerFactory

        public DirContextURLStreamHandlerFactory()
    • Method Detail

      • createURLStreamHandler

        public URLStreamHandler createURLStreamHandler​(String protocol)
        Creates a new URLStreamHandler instance with the specified protocol. Will return null if the protocol is not jndi.
        Specified by:
        createURLStreamHandler in interface URLStreamHandlerFactory
        Parameters:
        protocol - the protocol (must be "jndi" here)
        Returns:
        a URLStreamHandler for the jndi protocol, or null if the protocol is not JNDI