public class JNDIContext
extends java.lang.Object
implements javax.naming.spi.InitialContextFactory, javax.naming.Context
Modifier and Type | Class and Description |
---|---|
static class |
JNDIContext.AuthenticationInfo |
static interface |
JNDIContext.Decipher |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHENTICATE_WITH_THE_REQUEST |
static java.lang.String |
DEFAULT_PROVIDER_URL |
protected java.util.concurrent.ThreadPoolExecutor |
executorService |
static java.lang.String |
POOL_QUEUE_SIZE |
static java.lang.String |
POOL_THREAD_NUMBER |
static java.lang.String |
SERIALIZER |
Constructor and Description |
---|
JNDIContext() |
JNDIContext(JNDIContext that) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
addToEnvironment(java.lang.String key,
java.lang.Object value) |
void |
authenticate(java.lang.String userID,
java.lang.String psswrd) |
void |
bind(javax.naming.Name name,
java.lang.Object obj) |
void |
bind(java.lang.String name,
java.lang.Object obj) |
void |
close() |
javax.naming.Name |
composeName(javax.naming.Name name,
javax.naming.Name prefix) |
java.lang.String |
composeName(java.lang.String name,
java.lang.String prefix) |
EJBHomeProxy |
createEJBHomeProxy(EJBMetaDataImpl ejbData) |
javax.naming.Context |
createSubcontext(javax.naming.Name name) |
javax.naming.Context |
createSubcontext(java.lang.String name) |
void |
destroySubcontext(javax.naming.Name name) |
void |
destroySubcontext(java.lang.String name) |
java.util.Hashtable |
getEnvironment() |
javax.naming.Context |
getInitialContext(java.util.Hashtable environment) |
java.lang.String |
getNameInNamespace() |
javax.naming.NameParser |
getNameParser(javax.naming.Name name) |
javax.naming.NameParser |
getNameParser(java.lang.String name) |
static java.util.concurrent.ThreadPoolExecutor |
globalExecutor() |
javax.naming.NamingEnumeration<javax.naming.NameClassPair> |
list(javax.naming.Name name) |
javax.naming.NamingEnumeration<javax.naming.NameClassPair> |
list(java.lang.String name) |
javax.naming.NamingEnumeration<javax.naming.Binding> |
listBindings(javax.naming.Name name) |
javax.naming.NamingEnumeration<javax.naming.Binding> |
listBindings(java.lang.String name) |
java.lang.Object |
lookup(javax.naming.Name name) |
java.lang.Object |
lookup(java.lang.String name) |
java.lang.Object |
lookupLink(javax.naming.Name name) |
java.lang.Object |
lookupLink(java.lang.String name) |
static java.util.concurrent.ThreadPoolExecutor |
newExecutor(int threads,
java.util.concurrent.BlockingQueue<java.lang.Runnable> blockingQueue) |
void |
rebind(javax.naming.Name name,
java.lang.Object obj) |
void |
rebind(java.lang.String name,
java.lang.Object obj) |
java.lang.Object |
removeFromEnvironment(java.lang.String key) |
void |
rename(javax.naming.Name oldname,
javax.naming.Name newname) |
void |
rename(java.lang.String oldname,
java.lang.String newname) |
protected AuthenticationResponse |
requestAuthorization(AuthenticationRequest req) |
void |
unbind(javax.naming.Name name) |
void |
unbind(java.lang.String name) |
public static final java.lang.String DEFAULT_PROVIDER_URL
public static final java.lang.String SERIALIZER
public static final java.lang.String AUTHENTICATE_WITH_THE_REQUEST
public static final java.lang.String POOL_QUEUE_SIZE
public static final java.lang.String POOL_THREAD_NUMBER
protected transient java.util.concurrent.ThreadPoolExecutor executorService
public JNDIContext()
public JNDIContext(JNDIContext that)
public static java.util.concurrent.ThreadPoolExecutor globalExecutor()
public static java.util.concurrent.ThreadPoolExecutor newExecutor(int threads, java.util.concurrent.BlockingQueue<java.lang.Runnable> blockingQueue)
protected AuthenticationResponse requestAuthorization(AuthenticationRequest req) throws java.rmi.RemoteException
java.rmi.RemoteException
public javax.naming.Context getInitialContext(java.util.Hashtable environment) throws javax.naming.NamingException
getInitialContext
in interface javax.naming.spi.InitialContextFactory
javax.naming.NamingException
public void authenticate(java.lang.String userID, java.lang.String psswrd) throws javax.naming.AuthenticationException
javax.naming.AuthenticationException
public EJBHomeProxy createEJBHomeProxy(EJBMetaDataImpl ejbData)
public java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookup(javax.naming.Name name) throws javax.naming.NamingException
lookup
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.NameClassPair> list(java.lang.String name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.NameClassPair> list(javax.naming.Name name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.Binding> listBindings(java.lang.String name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration<javax.naming.Binding> listBindings(javax.naming.Name name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(java.lang.String name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object lookupLink(javax.naming.Name name) throws javax.naming.NamingException
lookupLink
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(java.lang.String name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NameParser getNameParser(javax.naming.Name name) throws javax.naming.NamingException
getNameParser
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String composeName(java.lang.String name, java.lang.String prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Name composeName(javax.naming.Name name, javax.naming.Name prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String key, java.lang.Object value) throws javax.naming.NamingException
addToEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object removeFromEnvironment(java.lang.String key) throws javax.naming.NamingException
removeFromEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.util.Hashtable getEnvironment() throws javax.naming.NamingException
getEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.String getNameInNamespace() throws javax.naming.NamingException
getNameInNamespace
in interface javax.naming.Context
javax.naming.NamingException
public void close() throws javax.naming.NamingException
close
in interface javax.naming.Context
javax.naming.NamingException
public void bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void bind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
bind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void rebind(javax.naming.Name name, java.lang.Object obj) throws javax.naming.NamingException
rebind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(java.lang.String name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void unbind(javax.naming.Name name) throws javax.naming.NamingException
unbind
in interface javax.naming.Context
javax.naming.NamingException
public void rename(java.lang.String oldname, java.lang.String newname) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public void rename(javax.naming.Name oldname, javax.naming.Name newname) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(java.lang.String name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public void destroySubcontext(javax.naming.Name name) throws javax.naming.NamingException
destroySubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(java.lang.String name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.Context createSubcontext(javax.naming.Name name) throws javax.naming.NamingException
createSubcontext
in interface javax.naming.Context
javax.naming.NamingException