Rebinds
name
to
obj
.
If the attributes parameter is non-null, the attributes it specifies become the only attributes of the binding. If the attributes parameter is null but obj
is an instance of DirContext
then the attributes of obj
become the only attributes of the binding. If the attributes
parameter is null and obj
is not an instance of DirContext
then any attributes of the previous binding remain.
If a schema defines mandatory attributes for the binding but they are not all present this method throws an InvalidAttributesException
.
This method throws any NamingException
that occurs.
@param name the name to be bound
@param obj the object to be bound
@param attributes the attributes of the binding
@throws NamingException If any occurs.