org.apache.naming.resources

Class DirContextURLStreamHandlerFactory

public class DirContextURLStreamHandlerFactory extends Object implements URLStreamHandlerFactory

Factory for Stream handlers to a JNDI directory context.

Version: $Revision: 467222 $

Author: Remy Maucherat

Constructor Summary
DirContextURLStreamHandlerFactory()
Method Summary
URLStreamHandlercreateURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified protocol.

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.

Parameters: protocol the protocol (must be "jndi" here)

Returns: a URLStreamHandler for the jndi protocol, or null if the protocol is not JNDI

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.