|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openejb.client.JNDIContext
public class JNDIContext
JNDI client
| Field Summary |
|---|
| Fields inherited from interface javax.naming.Context |
|---|
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
| Fields inherited from interface org.openejb.client.ResponseCodes |
|---|
AUTH_DENIED, AUTH_GRANTED, AUTH_REDIRECT, EJB_APP_EXCEPTION, EJB_ERROR, EJB_OK, EJB_OK_CREATE, EJB_OK_FOUND, EJB_OK_FOUND_COLLECTION, EJB_OK_FOUND_ENUMERATION, EJB_OK_NOT_FOUND, EJB_SYS_EXCEPTION, JNDI_CONTEXT, JNDI_EJBHOME, JNDI_ENUMERATION, JNDI_ERROR, JNDI_NAMING_EXCEPTION, JNDI_NOT_FOUND, JNDI_OK, JNDI_RUNTIME_EXCEPTION |
| Constructor Summary | |
|---|---|
JNDIContext()
|
|
JNDIContext(JNDIContext that)
|
|
| Method Summary | |
|---|---|
Object |
addToEnvironment(String key,
Object value)
|
void |
authenticate(String userID,
String psswrd)
|
void |
bind(Name name,
Object obj)
Throws a javax.naming.OperationNotSupportedException. |
void |
bind(String name,
Object obj)
Throws a javax.naming.OperationNotSupportedException. |
void |
close()
|
Name |
composeName(Name name,
Name prefix)
|
String |
composeName(String name,
String prefix)
|
EJBHomeProxy |
createEJBHomeProxy(EJBMetaDataImpl ejbData)
|
Context |
createSubcontext(Name name)
Throws a javax.naming.OperationNotSupportedException. |
Context |
createSubcontext(String name)
Throws a javax.naming.OperationNotSupportedException. |
void |
destroySubcontext(Name name)
Throws a javax.naming.OperationNotSupportedException. |
void |
destroySubcontext(String name)
Throws a javax.naming.OperationNotSupportedException. |
Hashtable |
getEnvironment()
|
Context |
getInitialContext(Hashtable environment)
Creates an Initial Context for beginning name resolution. |
String |
getNameInNamespace()
|
NameParser |
getNameParser(Name name)
|
NameParser |
getNameParser(String name)
|
void |
init(Hashtable environment)
Initializes this JNDI context for the client. |
NamingEnumeration |
list(Name name)
|
NamingEnumeration |
list(String name)
|
NamingEnumeration |
listBindings(Name name)
|
NamingEnumeration |
listBindings(String name)
|
Object |
lookup(Name name)
|
Object |
lookup(String name)
|
Object |
lookupLink(Name name)
|
Object |
lookupLink(String name)
|
static void |
print(String s)
|
static void |
println(String s)
|
void |
rebind(Name name,
Object obj)
Throws a javax.naming.OperationNotSupportedException. |
void |
rebind(String name,
Object obj)
Throws a javax.naming.OperationNotSupportedException. |
Object |
removeFromEnvironment(String key)
|
void |
rename(Name oldname,
Name newname)
Throws a javax.naming.OperationNotSupportedException. |
void |
rename(String oldname,
String newname)
Throws a javax.naming.OperationNotSupportedException. |
protected AuthenticationResponse |
requestAuthorization(AuthenticationRequest req)
|
void |
unbind(Name name)
Throws a javax.naming.OperationNotSupportedException. |
void |
unbind(String name)
Throws a javax.naming.OperationNotSupportedException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNDIContext()
public JNDIContext(JNDIContext that)
| Method Detail |
|---|
public void init(Hashtable environment)
throws NamingException
environment -
NamingExceptionpublic static void print(String s)
public static void println(String s)
protected AuthenticationResponse requestAuthorization(AuthenticationRequest req)
throws RemoteException
RemoteException
public Context getInitialContext(Hashtable environment)
throws NamingException
environment.
The environment parameter is owned by the caller. The implementation will not modify the object or keep a reference to it, although it may keep a reference to a clone or copy.
getInitialContext in interface InitialContextFactoryenvironment - The possibly null environment
specifying information to be used in the creation
of the initial context.
NamingException - If cannot create an initial context.
public void authenticate(String userID,
String psswrd)
throws AuthenticationException
AuthenticationExceptionpublic EJBHomeProxy createEJBHomeProxy(EJBMetaDataImpl ejbData)
public Object lookup(String name)
throws NamingException
lookup in interface ContextNamingException
public Object lookup(Name name)
throws NamingException
lookup in interface ContextNamingException
public NamingEnumeration list(String name)
throws NamingException
list in interface ContextNamingException
public NamingEnumeration list(Name name)
throws NamingException
list in interface ContextNamingException
public NamingEnumeration listBindings(String name)
throws NamingException
listBindings in interface ContextNamingException
public NamingEnumeration listBindings(Name name)
throws NamingException
listBindings in interface ContextNamingException
public Object lookupLink(String name)
throws NamingException
lookupLink in interface ContextNamingException
public Object lookupLink(Name name)
throws NamingException
lookupLink in interface ContextNamingException
public NameParser getNameParser(String name)
throws NamingException
getNameParser in interface ContextNamingException
public NameParser getNameParser(Name name)
throws NamingException
getNameParser in interface ContextNamingException
public String composeName(String name,
String prefix)
throws NamingException
composeName in interface ContextNamingException
public Name composeName(Name name,
Name prefix)
throws NamingException
composeName in interface ContextNamingException
public Object addToEnvironment(String key,
Object value)
throws NamingException
addToEnvironment in interface ContextNamingException
public Object removeFromEnvironment(String key)
throws NamingException
removeFromEnvironment in interface ContextNamingException
public Hashtable getEnvironment()
throws NamingException
getEnvironment in interface ContextNamingException
public String getNameInNamespace()
throws NamingException
getNameInNamespace in interface ContextNamingException
public void close()
throws NamingException
close in interface ContextNamingException
public void bind(String name,
Object obj)
throws NamingException
bind in interface Contextname - obj -
NamingException
public void bind(Name name,
Object obj)
throws NamingException
bind in interface Contextname - obj -
NamingException
public void rebind(String name,
Object obj)
throws NamingException
rebind in interface Contextname - obj -
NamingException
public void rebind(Name name,
Object obj)
throws NamingException
rebind in interface Contextname - obj -
NamingException
public void unbind(String name)
throws NamingException
unbind in interface Contextname -
NamingException
public void unbind(Name name)
throws NamingException
unbind in interface Contextname -
NamingException
public void rename(String oldname,
String newname)
throws NamingException
rename in interface Contextoldname - newname -
NamingException
public void rename(Name oldname,
Name newname)
throws NamingException
rename in interface Contextoldname - newname -
NamingException
public void destroySubcontext(String name)
throws NamingException
destroySubcontext in interface Contextname -
NamingException
public void destroySubcontext(Name name)
throws NamingException
destroySubcontext in interface Contextname -
NamingException
public Context createSubcontext(String name)
throws NamingException
createSubcontext in interface Contextname -
NamingException
public Context createSubcontext(Name name)
throws NamingException
createSubcontext in interface Contextname -
NamingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||