public class TransientContext extends Object implements Context, Serializable
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| Constructor and Description |
|---|
TransientContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
addToEnvironment(String propName,
Object propVal)
Add the property name and value to the environment.
|
void |
bind(Name name,
Object obj)
Bind the object to the specified name.
|
void |
bind(String name,
Object obj)
Bind the object to the specified name.
|
void |
close()
Invalidate the current environment.
|
Name |
composeName(Name name,
Name prefix)
Compose a new name specified by name and prefix.
|
String |
composeName(String name,
String prefix)
Compose a new name specified by name and prefix.
|
Context |
createSubcontext(Name name)
Create a subcontext with the specified name.
|
Context |
createSubcontext(String name)
Create a subcontext with the specified name.
|
void |
destroySubcontext(Name name)
Destroy the subcontext with the specified name.
|
void |
destroySubcontext(String name)
Destroy the subcontext with the specified name.
|
Hashtable |
getEnvironment()
List the current environment.
|
String |
getNameInNamespace()
Operation not supported.
|
NameParser |
getNameParser(Name name)
List the NameParser specified by name.
|
NameParser |
getNameParser(String name)
List the NameParser specified by name.
|
Hashtable |
list()
list the objects stored by the current context
|
NamingEnumeration<NameClassPair> |
list(Name name)
List the objects specified by name.
|
NamingEnumeration<NameClassPair> |
list(String name)
List the objects specified by name.
|
NamingEnumeration<Binding> |
listBindings(Name name)
List the binding of objects specified by name.
|
NamingEnumeration<Binding> |
listBindings(String name)
List the bindings of objects present in name.
|
Hashtable |
listContext(String name)
List the objects specified by name.
|
Object |
lookup(Name name)
Lookup the specified name.
|
Object |
lookup(String name)
Lookup the specified name.
|
Object |
lookupLink(Name name)
Lookup name.
|
Object |
lookupLink(String name)
Lookup the name.
|
void |
rebind(Name name,
Object obj)
Binds or rebinds the object specified by name
|
void |
rebind(String name,
Object obj)
Rebinds the object specified by name
|
Object |
removeFromEnvironment(String propName)
Remove property from the environment.
|
void |
rename(Name oldname,
Name newname)
Rename the object specified by oldname to newname
|
void |
rename(String oldname,
String newname)
Rename the object specified by oldname to newname
|
void |
unbind(Name name)
Unbinds the object specified by name
|
void |
unbind(String name)
Unbinds the object specified by name.
|
public Context createSubcontext(String name) throws NamingException
createSubcontext in interface ContextNamingException - if there is a naming exception.public Context createSubcontext(Name name) throws NamingException
createSubcontext in interface ContextNamingException - if there is a naming exception.public void destroySubcontext(String name) throws NamingException
destroySubcontext in interface ContextNamingException - if there is a naming exception.public void destroySubcontext(Name name) throws NamingException
destroySubcontext in interface ContextNamingException - if there is a naming exception.public Object lookup(String name) throws NamingException
lookup in interface ContextNamingException - if there is a naming exception.RemoteException - if there is an RMI exception.public Object lookup(Name name) throws NamingException
lookup in interface ContextNamingException - if there is a naming exception.RemoteException - if there is an RMI exception.public void bind(String name, Object obj) throws NamingException
bind in interface ContextNamingException - if there is a naming exception.RemoteException - if there is an RMI exception.public void bind(Name name, Object obj) throws NamingException
bind in interface ContextNamingException - if there is a naming exception.RemoteException - if there is an RMI exception.public void rebind(String name, Object obj) throws NamingException
rebind in interface ContextNamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic void rebind(Name name, Object obj) throws NamingException
rebind in interface ContextNamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic void unbind(String name) throws NamingException
unbind in interface ContextNamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic void unbind(Name name) throws NamingException
unbind in interface ContextNamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic void rename(Name oldname, Name newname) throws NamingException
rename in interface ContextNamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic void rename(String oldname, String newname) throws NamingException
rename in interface ContextNamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic Hashtable list()
NamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic Hashtable listContext(String name) throws NamingException
NamingException - if there is a naming exceptionRemoteException - if there is a RMI exceptionpublic NamingEnumeration<NameClassPair> list(Name name) throws NamingException
list in interface ContextNamingException - if there is a naming exceptionpublic NamingEnumeration<NameClassPair> list(String name) throws NamingException
list in interface ContextNamingException - if there is a naming exceptionpublic NamingEnumeration<Binding> listBindings(String name) throws NamingException
listBindings in interface ContextNamingException - if there is a naming exceptionpublic NamingEnumeration<Binding> listBindings(Name name) throws NamingException
listBindings in interface ContextNamingException - if there is a naming exceptionpublic Object lookupLink(String name) throws NamingException
lookupLink in interface ContextNamingException - if there is a naming exceptionpublic Object lookupLink(Name name) throws NamingException
lookupLink in interface ContextNamingException - if there is a naming exceptionpublic NameParser getNameParser(String name) throws NamingException
getNameParser in interface ContextNamingException - if there is a naming exceptionpublic NameParser getNameParser(Name name) throws NamingException
getNameParser in interface ContextNamingException - if there is a naming exceptionpublic String composeName(String name, String prefix) throws NamingException
composeName in interface ContextNamingException - if there is a naming exceptionpublic Name composeName(Name name, Name prefix) throws NamingException
composeName in interface ContextNamingException - if there is a naming exceptionpublic Object addToEnvironment(String propName, Object propVal) throws NamingException
addToEnvironment in interface ContextNamingException - if there is a naming exceptionpublic Object removeFromEnvironment(String propName) throws NamingException
removeFromEnvironment in interface ContextNamingException - if there is a naming exceptionpublic Hashtable getEnvironment() throws NamingException
getEnvironment in interface ContextNamingException - if there is a naming exceptionpublic void close()
throws NamingException
close in interface ContextNamingExceptionpublic String getNameInNamespace() throws NamingException
getNameInNamespace in interface ContextNamingExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.