addBinding
protected void addBinding(Name name,
Object obj)
Add a name to object binding to this Context.
name
- a Name
valueobj
- an Object
value
addToEnvironment
public Object addToEnvironment(String propName,
Object propVal)
throws NamingException
Add an environment setting to this Context
propName
- name of the property to addpropVal
- value of the property to add
- propVal or previous value of the property
bind
public void bind(Name name,
Object obj)
throws NamingException
Bind a name to an object
name
- Name of the objectobj
- object to bind
bind
public void bind(String name,
Object obj)
throws NamingException
Bind a name (as a String) to an object
name
- a String
valueobj
- an Object
value
clone
public Object clone()
throws CloneNotSupportedException
Clone this NamingContext
- copy of this NamingContext
close
public void close()
throws NamingException
Do nothing
composeName
public Name composeName(Name name,
Name prefix)
throws NamingException
Join two names together. These are treated as
CompoundNames.
name
- a Name
valueprefix
- a Name
value
composeName
public String composeName(String name,
String prefix)
throws NamingException
Join two names together. These are treated as
CompoundNames.
name
- a Name
valueprefix
- a Name
value
createSubcontext
public Context createSubcontext(Name name)
throws NamingException
Create a context as a child of this one
createSubcontext
public Context createSubcontext(String name)
throws NamingException
Create a Context as a child of this one
destroySubcontext
public void destroySubcontext(Name name)
throws NamingException
Not supported
name
- name of subcontext to remove
destroySubcontext
public void destroySubcontext(String name)
throws NamingException
Not supported
name
- name of subcontext to remove
getBinding
protected Binding getBinding(Name name)
Get a name to object binding from this Context
getBinding
protected Binding getBinding(String name)
Get a name to object binding from this Context
getEnvironment
public Hashtable getEnvironment()
Get the environment of this Context.
- a copy of the environment of this Context.
getName
public String getName()
Getter for _name
- name of this Context (relative, not absolute)
getNameInNamespace
public String getNameInNamespace()
throws NamingException
Get the full name of this Context node
by visiting it's ancestors back to root.
NOTE: if this Context has a URL namespace then
the URL prefix will be missing
- the full name of this Context
getNameParser
public NameParser getNameParser(Name name)
Return a NameParser for this Context.
getNameParser
public NameParser getNameParser(String name)
Return a NameParser for this Context.
getParent
public Context getParent()
Getter for _parent
list
public NamingEnumeration list(Name name)
throws NamingException
List all names bound at Context named by Name
- a
NamingEnumeration
value
list
public NamingEnumeration list(String name)
throws NamingException
List all names bound at Context named by Name
- a
NamingEnumeration
value
listBindings
public NamingEnumeration listBindings(Name name)
throws NamingException
List all Bindings present at Context named by Name
- a
NamingEnumeration
value
listBindings
public NamingEnumeration listBindings(String name)
throws NamingException
List all Bindings at Name
- a
NamingEnumeration
value
lookup
public Object lookup(Name name)
throws NamingException
Lookup a binding by name
name
- name of bound object
lookup
public Object lookup(String name)
throws NamingException
Lookup binding of an object by name
name
- name of bound object
lookupLink
public Object lookupLink(Name name)
throws NamingException
Lookup link bound to name
name
- name of link binding
- LinkRef or plain object bound at name
lookupLink
public Object lookupLink(String name)
throws NamingException
Lookup link bound to name
name
- name of link binding
- LinkRef or plain object bound at name
rebind
public void rebind(Name name,
Object obj)
throws NamingException
Overwrite or create a binding
name
- a Name
valueobj
- an Object
value
rebind
public void rebind(String name,
Object obj)
throws NamingException
Overwrite or create a binding from Name to Object
name
- a String
valueobj
- an Object
value
removeFromEnvironment
public Object removeFromEnvironment(String propName)
throws NamingException
Remove a property from this Context's environment.
propName
- name of property to remove
- value of property or null if it didn't exist
rename
public void rename(Name oldName,
Name newName)
throws NamingException
Not supported
oldName
- a Name
valuenewName
- a Name
value
rename
public void rename(String oldName,
String newName)
throws NamingException
Not supported
oldName
- a Name
valuenewName
- a Name
value
setNameParser
public void setNameParser(NameParser parser)
Setter for _parser
toCanonicalName
public Name toCanonicalName(Name name)
Remove leading or trailing empty components from
name. Eg "/comp/env/" -> "comp/env"
name
- the name to normalize
unbind
public void unbind(Name name)
throws NamingException
Not supported.
unbind
public void unbind(String name)
throws NamingException
Not supported.