com.netscape.jndi.ldap.controls
Class NetscapeControlFactory

java.lang.Object
  extended byjavax.naming.ldap.ControlFactory
      extended bycom.netscape.jndi.ldap.controls.NetscapeControlFactory

public class NetscapeControlFactory
extends javax.naming.ldap.ControlFactory


Constructor Summary
NetscapeControlFactory()
           
 
Method Summary
 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

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

Returns:
A possibly null Control.
Throws:
javax.naming.NamingException - If ctrl contains invalid data that prevents it from being used to create a control.