org.apache.naming.resources

Class DirContextURLStreamHandlerFactory

Implemented Interfaces:
URLStreamHandlerFactory

public class DirContextURLStreamHandlerFactory
extends java.lang.Object
implements URLStreamHandlerFactory

Factory for Stream handlers to a JNDI directory context.

Version:
$Revision: 1.3 $

Author:
Remy Maucherat

Constructor Summary

DirContextURLStreamHandlerFactory()

Method Summary

URLStreamHandler
createURLStreamHandler(String protocol)
Creates a new URLStreamHandler instance with the specified protocol.

Constructor Details

DirContextURLStreamHandlerFactory

public DirContextURLStreamHandlerFactory()

Method Details

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 B) 2000-2003 Apache Software Foundation. All Rights Reserved.