|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.net.URLStreamHandler org.apache.naming.resources.DirContextURLStreamHandler
public class DirContextURLStreamHandler
Stream handler to a JNDI directory context.
Field Summary | |
---|---|
protected DirContext |
context
Directory context. |
Constructor Summary | |
---|---|
DirContextURLStreamHandler()
|
|
DirContextURLStreamHandler(DirContext context)
|
Method Summary | |
---|---|
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. |
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. |
Methods inherited from class java.net.URLStreamHandler |
---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DirContext context
Constructor Detail |
---|
public DirContextURLStreamHandler()
public DirContextURLStreamHandler(DirContext context)
Method Detail |
---|
protected URLConnection openConnection(URL u) throws IOException
URL
argument.
openConnection
in class URLStreamHandler
IOException
protected String toExternalForm(URL u)
toExternalForm
in class URLStreamHandler
public static void setProtocolHandler()
URLStreamHandlerFactory
.
public static boolean isBound()
public static void bind(DirContext dirContext)
public static void unbind()
public static void bindThread(DirContext dirContext)
public static void unbindThread()
public static DirContext get()
public static void bind(ClassLoader cl, DirContext dirContext)
public static void unbind(ClassLoader cl)
public static DirContext get(ClassLoader cl)
public static DirContext get(Thread thread)
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |