org.apache.ldap.clients
Class LdapDel

java.lang.Object
  extended by org.apache.ldap.clients.LdapBind
      extended by org.apache.ldap.clients.LdapDel

public class LdapDel
extends LdapBind

Ldap client for the DELETE operation


Constructor Summary
LdapDel(java.lang.String[] args)
          Create an instance of the delete client and parse the command line arguments
 
Method Summary
 DeleteResponse delete(int id)
          Encode the message for the delete of the entry and send the encoded message to the serever.
static void main(java.lang.String[] args)
          The main will call trhe bind operation first.
 
Methods inherited from class org.apache.ldap.clients.LdapBind
bind, connect, disconnect, enableLogging, getDecoder, getEncoder, getIn, getLog, getModule, getOpts, getOut, getSocket, setDecoder, setEncoder, setIn, setLog, setModule, setOpts, setOut, setSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapDel

public LdapDel(java.lang.String[] args)
Create an instance of the delete client and parse the command line arguments

Parameters:
args - Command line arguments
Method Detail

delete

public DeleteResponse delete(int id)
Encode the message for the delete of the entry and send the encoded message to the serever. Then wait for the serever to respond and decode that message

Parameters:
id - Message number being sent to the server in this transaction. Since bind will be the fist, start with 2.
Returns:
The LDAP response to the operation from the server

main

public static void main(java.lang.String[] args)
The main will call trhe bind operation first. If that is successful, call the delete and write the reponse from the server to the console

Parameters:
args - Command line string