com.netscape.jndi.ldap.controls

Class NetscapeControlFactory


public class NetscapeControlFactory
extends ControlFactory

Factory for creating controls. Only controls send by the direcory server are processed.

Method Summary

Control
getControlInstance(Control ctrl)
Creates a control using this control factory
static Control
getControlInstance(LDAPControl rawCtrl)
Create a JNDI control from a raw ldapjdk control

Method Details

getControlInstance

public Control getControlInstance(Control ctrl)
            throws NamingException
Creates a control using this control factory
Parameters:
ctrl - A non-null control.
Returns:
A possibly null Control.

getControlInstance

public static Control getControlInstance(LDAPControl rawCtrl)
            throws NamingException
Create a JNDI control from a raw ldapjdk control
Parameters:
rawCtrl - A non-null control.
Returns:
A possibly null Control.