Package com.netscape.jndi.ldap.controls
Class NetscapeControlFactory
- java.lang.Object
-
- javax.naming.ldap.ControlFactory
-
- com.netscape.jndi.ldap.controls.NetscapeControlFactory
-
public class NetscapeControlFactory extends javax.naming.ldap.ControlFactory
-
-
Constructor Summary
Constructors Constructor Description NetscapeControlFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.naming.ldap.Control
getControlInstance(javax.naming.ldap.Control ctrl)
Creates a control using this control factorystatic javax.naming.ldap.Control
getControlInstance(netscape.ldap.LDAPControl rawCtrl)
Create a JNDI control from a raw ldapjdk control
-
-
-
Method Detail
-
getControlInstance
public javax.naming.ldap.Control getControlInstance(javax.naming.ldap.Control ctrl) throws javax.naming.NamingException
Creates a control using this control factory- Specified by:
getControlInstance
in classjavax.naming.ldap.ControlFactory
- Parameters:
ctrl
- A non-null control.- Returns:
- A possibly null Control.
- Throws:
javax.naming.NamingException
- If ctrl contains invalid data that prevents it from being used to create a control.
-
getControlInstance
public static javax.naming.ldap.Control getControlInstance(netscape.ldap.LDAPControl rawCtrl) throws javax.naming.NamingException
Create a JNDI control from a raw ldapjdk control- Parameters:
rawCtrl
- A non-null control.- Returns:
- A possibly null Control.
- Throws:
javax.naming.NamingException
- If ctrl contains invalid data that prevents it from being used to create a control.
-
-