All LDAP Classes
Internal LDAP Classes

com.novell.ldap
Class LDAPAddRequest

java.lang.Object
  extended by com.novell.ldap.LDAPMessage
      extended by com.novell.ldap.LDAPAddRequest
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class LDAPAddRequest
extends LDAPMessage

Represents an LDAP Add Request.

See Also:
LDAPConnection.sendRequest(com.novell.ldap.LDAPMessage, com.novell.ldap.LDAPMessageQueue), Serialized Form

Field Summary
 
Fields inherited from class com.novell.ldap.LDAPMessage
ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, INTERMEDIATE_RESPONSE, message, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST
 
Constructor Summary
LDAPAddRequest()
          This constructor was added to support default Serialization
LDAPAddRequest(LDAPEntry entry, LDAPControl[] cont)
          Constructs a request to add an entry to the directory.
 
Method Summary
 LDAPEntry getEntry()
          Constructs an LDAPEntry that represents the add request
private static RfcAttributeList makeRfcAttrList(LDAPEntry entry)
          Build the attribuite list from an LDAPEntry.
protected  void setDeserializedValues(LDAPMessage readObject, RfcControls asn1Ctrls)
           
 java.lang.String toString()
          Return an ASN1 representation of this add request.
 
Methods inherited from class com.novell.ldap.LDAPMessage
clone, getASN1Object, getControls, getMessageID, getRequestingMessage, getTag, getType, isRequest, readDSML, readExternal, setTag, writeDSML, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPAddRequest

public LDAPAddRequest()
This constructor was added to support default Serialization


LDAPAddRequest

public LDAPAddRequest(LDAPEntry entry,
                      LDAPControl[] cont)
               throws LDAPException
Constructs a request to add an entry to the directory.

Parameters:
entry - The LDAPEntry to add to the directory.
cont - Any controls that apply to the add request, or null if none.
Throws:
LDAPException
Method Detail

getEntry

public LDAPEntry getEntry()
Constructs an LDAPEntry that represents the add request

Returns:
an LDAPEntry that represents the add request.

makeRfcAttrList

private static final RfcAttributeList makeRfcAttrList(LDAPEntry entry)
Build the attribuite list from an LDAPEntry.

Parameters:
entry - The LDAPEntry associated with this add request.

toString

public java.lang.String toString()
Return an ASN1 representation of this add request. #return an ASN1 representation of this object.

Overrides:
toString in class LDAPMessage
Returns:
a String representation for this LDAPMessage

setDeserializedValues

protected void setDeserializedValues(LDAPMessage readObject,
                                     RfcControls asn1Ctrls)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
Overrides:
setDeserializedValues in class LDAPMessage
Throws:
java.io.IOException
java.lang.ClassNotFoundException

All LDAP Classes
Internal LDAP Classes

Copyright ? 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000