APIdia Launch Partner
Top Description Constructors Methods
com.sun.jndi.ldap

public Class DefaultResponseControlFactory

extends ControlFactory
Class Inheritance
Imports
java.io.IOException, javax.naming.*, javax.naming.directory.*, javax.naming.ldap.*

This class represents a factory for creating LDAPv3 response controls. The following response controls are supported:
Author
Vincent Ryan
See Also
javax.naming.ldap.SortResponseControl, javax.naming.ldap.PagedResultsResponseControl, PersistentSearchControl, EntryChangeResponseControl

Constructor Summary

AccessConstructor and Description
public
DefaultResponseControlFactory()

Constructs a new instance of the response control factory.

Method Summary

Modifier and TypeMethod and Description
public Control

Returns:

The LDAP control created or null if it cannot be created. Null indicates that another factory should be attempted.
getControlInstance
(Control
A non-null control.
ctl
)

Implements abstract javax.naming.ldap.ControlFactory.getControlInstance.

Creates an instance of a response control class from a more generic control class (BasicControl).

Inherited from javax.naming.ldap.ControlFactory:
getControlInstance

Constructor Detail

DefaultResponseControlFactoryback to summary
public DefaultResponseControlFactory()

Constructs a new instance of the response control factory.

Method Detail

getControlInstanceback to summary
public Control getControlInstance(Control ctl) throws NamingException

Implements abstract javax.naming.ldap.ControlFactory.getControlInstance.

Creates an instance of a response control class from a more generic control class (BasicControl).

Parameters
ctl:Control

A non-null control.

Returns:Control

The LDAP control created or null if it cannot be created. Null indicates that another factory should be attempted.

Exceptions
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.