org.apache.naming.resources
public class DirContextURLStreamHandler extends URLStreamHandler
Version: $Revision: 467222 $
Field Summary | |
---|---|
protected DirContext | context
Directory context. |
Constructor Summary | |
---|---|
DirContextURLStreamHandler() | |
DirContextURLStreamHandler(DirContext context) |
Method Summary | |
---|---|
static void | bind(DirContext dirContext)
Binds a directory context to a class loader. |
static void | bind(ClassLoader cl, 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. |
protected String | toExternalForm(URL u)
Override as part of the fix for 36534, to ensure toString is correct. |
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. |
URL
argument.