javax.naming.Context
public class SimpleContext
extends java.lang.Object
implements javax.naming.Context
Modifier and Type | Class | Description |
---|---|---|
static interface |
SimpleContext.SimpleReference<T> |
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map |
map |
|
protected static javax.naming.NameParser |
parser |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
addToEnvironment(java.lang.String propName,
java.lang.Object propVal) |
|
void |
bind(java.lang.String name,
java.lang.Object obj) |
|
void |
bind(javax.naming.Name name,
java.lang.Object obj) |
|
void |
close() |
|
java.lang.String |
composeName(java.lang.String name,
java.lang.String prefix) |
|
javax.naming.Name |
composeName(javax.naming.Name name,
javax.naming.Name prefix) |
|
protected javax.naming.Context |
createNewSubcontext(javax.naming.Context parent,
javax.naming.Name name) |
|
javax.naming.Context |
createSubcontext(java.lang.String name) |
|
javax.naming.Context |
createSubcontext(javax.naming.Name name) |
|
void |
destroySubcontext(java.lang.String name) |
|
void |
destroySubcontext(javax.naming.Name name) |
|
java.util.Hashtable |
getEnvironment() |
|
java.lang.String |
getNameInNamespace() |
|
javax.naming.NameParser |
getNameParser(java.lang.String name) |
|
javax.naming.NameParser |
getNameParser(javax.naming.Name name) |
|
javax.naming.NamingEnumeration |
list(java.lang.String name) |
|
javax.naming.NamingEnumeration |
list(javax.naming.Name name) |
|
javax.naming.NamingEnumeration |
listBindings(java.lang.String name) |
|
javax.naming.NamingEnumeration |
listBindings(javax.naming.Name name) |
|
java.lang.Object |
lookup(java.lang.String name) |
|
java.lang.Object |
lookup(javax.naming.Name name) |
|
java.lang.Object |
lookupLink(java.lang.String name) |
|
java.lang.Object |
lookupLink(javax.naming.Name name) |
|
void |
rebind(java.lang.String name,
java.lang.Object obj) |
|
void |
rebind(javax.naming.Name name,
java.lang.Object obj) |
|
java.lang.Object |
removeFromEnvironment(java.lang.String propName) |
|
void |
rename(java.lang.String oldName,
java.lang.String newName) |
|
void |
rename(javax.naming.Name oldName,
javax.naming.Name newName) |
|
protected javax.naming.Context |
resolve(javax.naming.Name name) |
|
protected javax.naming.Context |
resolve(javax.naming.Name name,
boolean createSubcontexts) |
|
void |
unbind(java.lang.String name) |
|
void |
unbind(javax.naming.Name name) |
protected static final javax.naming.NameParser parser
protected java.util.Map map
protected javax.naming.Context resolve(javax.naming.Name name, boolean createSubcontexts) throws javax.naming.NamingException
javax.naming.NamingException
protected javax.naming.Context resolve(javax.naming.Name name) throws javax.naming.NamingException
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 java.lang.Object lookup(java.lang.String name) throws javax.naming.NamingException
lookup
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 bind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
bind
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 rebind(java.lang.String name, java.lang.Object obj) throws javax.naming.NamingException
rebind
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 unbind(java.lang.String name) throws javax.naming.NamingException
unbind
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 rename(java.lang.String oldName, java.lang.String newName) throws javax.naming.NamingException
rename
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration list(javax.naming.Name name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration list(java.lang.String name) throws javax.naming.NamingException
list
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration listBindings(javax.naming.Name name) throws javax.naming.NamingException
listBindings
in interface javax.naming.Context
javax.naming.NamingException
public javax.naming.NamingEnumeration listBindings(java.lang.String name) throws javax.naming.NamingException
listBindings
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 void destroySubcontext(java.lang.String name) throws javax.naming.NamingException
destroySubcontext
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
protected javax.naming.Context createNewSubcontext(javax.naming.Context parent, javax.naming.Name name) throws javax.naming.NamingException
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 java.lang.Object lookupLink(javax.naming.Name name) throws javax.naming.NamingException
lookupLink
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 javax.naming.NameParser getNameParser(javax.naming.Name name) throws javax.naming.NamingException
getNameParser
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.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.String composeName(java.lang.String name, java.lang.String prefix) throws javax.naming.NamingException
composeName
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object addToEnvironment(java.lang.String propName, java.lang.Object propVal) throws javax.naming.NamingException
addToEnvironment
in interface javax.naming.Context
javax.naming.NamingException
public java.lang.Object removeFromEnvironment(java.lang.String propName) 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 void close() throws javax.naming.NamingException
close
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