| java.lang.Object java.net.URLStreamHandler org.apache.naming.resources.DirContextURLStreamHandler
All known Subclasses: org.apache.naming.resources.jndi.Handler,
DirContextURLStreamHandler | public class DirContextURLStreamHandler extends URLStreamHandler (Code) | | Stream handler to a JNDI directory context.
author: Remy Maucherat version: $Revision: 1.3 $ |
Method Summary | |
public static void | bind(DirContext dirContext) Binds a directory context to a class loader. | public static void | bind(ClassLoader cl, DirContext dirContext) Binds a directory context to a class loader. | public static void | bindThread(DirContext dirContext) Binds a directory context to a thread. | public static DirContext | get() Get the bound context. | public static DirContext | get(ClassLoader cl) Get the bound context. | public static DirContext | get(Thread thread) Get the bound context. | public 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. | public static void | setProtocolHandler() Set the java.protocol.handler.pkgs system property. | public static void | unbind() Unbinds a directory context to a class loader. | public static void | unbind(ClassLoader cl) Unbinds a directory context to a class loader. | public static void | unbindThread() Unbinds a directory context to a thread. |
DirContextURLStreamHandler | public DirContextURLStreamHandler()(Code) | | |
DirContextURLStreamHandler | public DirContextURLStreamHandler(DirContext context)(Code) | | |
bind | public static void bind(DirContext dirContext)(Code) | | Binds a directory context to a class loader.
|
bindThread | public static void bindThread(DirContext dirContext)(Code) | | Binds a directory context to a thread.
|
isBound | public static boolean isBound()(Code) | | Returns true if the thread or the context class loader of the current
thread is bound.
|
setProtocolHandler | public static void setProtocolHandler()(Code) | | Set the java.protocol.handler.pkgs system property.
|
unbind | public static void unbind()(Code) | | Unbinds a directory context to a class loader.
|
unbind | public static void unbind(ClassLoader cl)(Code) | | Unbinds a directory context to a class loader.
|
unbindThread | public static void unbindThread()(Code) | | Unbinds a directory context to a thread.
|
Methods inherited from java.net.URLStreamHandler | protected boolean equals(URL u1, URL u2)(Code)(Java Doc) protected int getDefaultPort()(Code)(Java Doc) protected synchronized InetAddress getHostAddress(URL u)(Code)(Java Doc) protected int hashCode(URL u)(Code)(Java Doc) protected boolean hostsEqual(URL u1, URL u2)(Code)(Java Doc) abstract protected URLConnection openConnection(URL u) throws IOException(Code)(Java Doc) protected URLConnection openConnection(URL u, Proxy p) throws IOException(Code)(Java Doc) protected void parseURL(URL u, String spec, int start, int limit)(Code)(Java Doc) protected boolean sameFile(URL u1, URL u2)(Code)(Java Doc) protected void setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)(Code)(Java Doc) protected void setURL(URL u, String protocol, String host, int port, String file, String ref)(Code)(Java Doc) protected String toExternalForm(URL u)(Code)(Java Doc)
|
|
|