org.opends.dsml.protocol
Class DSMLAddOperation

java.lang.Object
  extended by org.opends.dsml.protocol.DSMLAddOperation

public class DSMLAddOperation
extends java.lang.Object

This class provides the functionality for the performing an LDAP ADD operation based on the specified DSML request.


Constructor Summary
DSMLAddOperation(LDAPConnection connection)
          Create the instance with the specified LDAP connection.
 
Method Summary
 org.opends.dsml.protocol.LDAPResult doOperation(org.opends.dsml.protocol.ObjectFactory objFactory, org.opends.dsml.protocol.AddRequest addRequest)
          Perform the LDAP ADD operation and return the result to the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSMLAddOperation

public DSMLAddOperation(LDAPConnection connection)
Create the instance with the specified LDAP connection.

Parameters:
connection - The LDAP connection to the server.
Method Detail

doOperation

public org.opends.dsml.protocol.LDAPResult doOperation(org.opends.dsml.protocol.ObjectFactory objFactory,
                                                       org.opends.dsml.protocol.AddRequest addRequest)
                                                throws java.io.IOException,
                                                       LDAPException,
                                                       ASN1Exception
Perform the LDAP ADD operation and return the result to the client.

Parameters:
objFactory - The object factory for this operation.
addRequest - The add request for this operation.
Returns:
The result of the add operation.
Throws:
java.io.IOException - If an I/O problem occurs.
LDAPException - If an error occurs while interacting with an LDAP element.
ASN1Exception - If an error occurs while interacting with an ASN.1 element.