Package org.apache.naming.resources
Class DirContextURLStreamHandlerFactory
- java.lang.Object
-
- org.apache.naming.resources.DirContextURLStreamHandlerFactory
-
- All Implemented Interfaces:
URLStreamHandlerFactory
public class DirContextURLStreamHandlerFactory extends Object implements URLStreamHandlerFactory
Factory for Stream handlers to a JNDI directory context.- Version:
- $Revision: 1.3 $
- Author:
- Remy Maucherat
-
-
Constructor Summary
Constructors Constructor Description DirContextURLStreamHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLStreamHandler
createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified protocol.
-
-
-
Method Detail
-
createURLStreamHandler
public URLStreamHandler createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified protocol. Will return null if the protocol is notjndi
.- Specified by:
createURLStreamHandler
in interfaceURLStreamHandlerFactory
- Parameters:
protocol
- the protocol (must be "jndi" here)- Returns:
- a URLStreamHandler for the jndi protocol, or null if the protocol is not JNDI
-
-