Creates a particular type of control based on the supplied control c. It
is likely that the supplied control contains data encoded in BER format
as received from an LDAP server.
This method tries the factories in LdapContext.CONTROL_FACTORIES, first
from the supplied Hashtable then from the resource
provider files of the supplied Context .
It returns the supplied control if no factories are loaded or a control
cannot be created. Otherwise, a new Control instance is
returned.
Parameters: c - the supplied Control instance Parameters: ctx - the supplied Context instance Parameters: h - the supplier JNDI environment properties the supplied control if no factories are loaded or a controlcannot be created, otherwise a new Control instance throws: NamingException - If an error is encountered. |