Class NetscapeControlFactory


  • public class NetscapeControlFactory
    extends javax.naming.ldap.ControlFactory
    • 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 factory
      static javax.naming.ldap.Control getControlInstance​(netscape.ldap.LDAPControl rawCtrl)
      Create a JNDI control from a raw ldapjdk control
      • Methods inherited from class javax.naming.ldap.ControlFactory

        getControlInstance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetscapeControlFactory

        public NetscapeControlFactory()
    • 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 class javax.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.