org.apache.naming.resources
Class DirContextURLStreamHandler
URLStreamHandler
org.apache.naming.resources.DirContextURLStreamHandler
public class DirContextURLStreamHandler
extends URLStreamHandler
Stream handler to a JNDI directory context.
Version:
- Remy Maucherat
protected DirContext | context - Directory context.
|
static void | bind(ClassLoader cl, DirContext dirContext) - Binds a directory context to a class loader.
|
static void | bind(DirContext dirContext) - Binds a directory context to a class loader.
|
static void | bindThread(DirContext dirContext) - Binds a directory context to a thread.
|
static DirContext | get() - Get the bound context.
|
static DirContext | get(ClassLoader cl) - Get the bound context.
|
static DirContext | get(Thread thread) - Get the bound context.
|
static boolean | isBound() - Returns true if the thread or the context class loader of the current
thread is bound.
|
protected URLConnection | openConnection(URL u) - Opens a connection to the object referenced by the
URL
argument.
|
static void | setProtocolHandler() - Set the java.protocol.handler.pkgs system property.
|
static void | unbind() - Unbinds a directory context to a class loader.
|
static void | unbind(ClassLoader cl) - Unbinds a directory context to a class loader.
|
static void | unbindThread() - Unbinds a directory context to a thread.
|
context
protected DirContext context
Directory context.
DirContextURLStreamHandler
public DirContextURLStreamHandler()
DirContextURLStreamHandler
public DirContextURLStreamHandler(DirContext context)
bind
public static void bind(ClassLoader cl,
DirContext dirContext)
Binds a directory context to a class loader.
bind
public static void bind(DirContext dirContext)
Binds a directory context to a class loader.
bindThread
public static void bindThread(DirContext dirContext)
Binds a directory context to a thread.
get
public static DirContext get()
Get the bound context.
get
public static DirContext get(ClassLoader cl)
Get the bound context.
get
public static DirContext get(Thread thread)
Get the bound context.
isBound
public static boolean isBound()
Returns true if the thread or the context class loader of the current
thread is bound.
openConnection
protected URLConnection openConnection(URL u)
throws IOException
Opens a connection to the object referenced by the URL
argument.
setProtocolHandler
public static void setProtocolHandler()
Set the java.protocol.handler.pkgs system property.
unbind
public static void unbind()
Unbinds a directory context to a class loader.
unbind
public static void unbind(ClassLoader cl)
Unbinds a directory context to a class loader.
unbindThread
public static void unbindThread()
Unbinds a directory context to a thread.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.