|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.jndi.http.HttpJndiInitialContextFactory
public class HttpJndiInitialContextFactory
This is the client side helper class that retrieves the root context of the JNDI server. This class implements the InitialContextFactory interface.
Field Summary | |
---|---|
protected static java.lang.String |
SERVLET
The JNDI servlet name |
Constructor Summary | |
---|---|
HttpJndiInitialContextFactory()
Default constructor |
Method Summary | |
---|---|
javax.naming.Context |
getInitialContext(java.util.Hashtable environment)
Creates an initial context for beginning name resolution. |
protected java.lang.String |
getProviderURL(java.util.Hashtable environment)
Returns the JNDI provider URL |
protected org.exolab.core.http.HttpClient |
openConnection(java.lang.String url)
Get a connection to the JNDI provider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String SERVLET
Constructor Detail |
---|
public HttpJndiInitialContextFactory()
Method Detail |
---|
public javax.naming.Context getInitialContext(java.util.Hashtable environment) throws javax.naming.NamingException
getInitialContext
in interface javax.naming.spi.InitialContextFactory
environment
- the environment specifying information to be used in
the creation of the initial context.
javax.naming.NamingException
- if the initial context cannot be createdprotected java.lang.String getProviderURL(java.util.Hashtable environment) throws javax.naming.NamingException
javax.naming.NamingException
- if the URL cannot be determinedprotected org.exolab.core.http.HttpClient openConnection(java.lang.String url) throws javax.naming.NamingException
url
- the JNDI provider URL
javax.naming.NamingException
- if a connection cannot be established
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |