com.sun.jndi.ldap.ctl
Class ResponseControlFactory

java.lang.Object
  extended by javax.naming.ldap.ControlFactory
      extended by com.sun.jndi.ldap.ctl.ResponseControlFactory

public class ResponseControlFactory
extends javax.naming.ldap.ControlFactory

This class represents a factory for creating LDAP response controls. The following response controls are supported:

Author:
Vincent Ryan
See Also:
PagedResultsResponseControl, SortResponseControl, VirtualListViewResponseControl, DirSyncResponseControl, PasswordExpiredResponseControl, PasswordExpiringResponseControl, AuthorizationIDResponseControl

Constructor Summary
ResponseControlFactory()
          Constructs a new instance of the response control factory.
 
Method Summary
 javax.naming.ldap.Control getControlInstance(javax.naming.ldap.Control ctl)
          Creates an instance of a response control class from a more generic control class (BasicControl).
 
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

ResponseControlFactory

public ResponseControlFactory()
Constructs a new instance of the response control factory.

Method Detail

getControlInstance

public javax.naming.ldap.Control getControlInstance(javax.naming.ldap.Control ctl)
                                             throws javax.naming.NamingException
Creates an instance of a response control class from a more generic control class (BasicControl).

Specified by:
getControlInstance in class javax.naming.ldap.ControlFactory
Parameters:
ctl - A non-null control.
Returns:
The LDAP control created or null if it cannot be created. Null indicates that another factory should be attempted.
Throws:
javax.naming.NamingException - if this control factory encountered an error condition while attempting to create the LDAP control, and no other control factories are to be tried.