LDAP Classes
Implements Java LDAP

com.novell.ldap
Class LDAPCompareRequest

java.lang.Object
  extended bycom.novell.ldap.LDAPMessage
      extended bycom.novell.ldap.LDAPCompareRequest
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class LDAPCompareRequest
extends LDAPMessage

Represents an LDAP Compare 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
LDAPCompareRequest()
          This constructor was added to support default Serialization
LDAPCompareRequest(java.lang.String dn, java.lang.String name, byte[] value, LDAPControl[] cont)
          Constructs an LDAPCompareRequest Object.
 
Method Summary
 byte[] getAssertionValue()
          Returns the LDAPAttribute associated with this request.
 java.lang.String getAttributeDescription()
          Returns the LDAPAttribute associated with this request.
 java.lang.String getDN()
          Returns of the dn of the entry to compare in the directory
protected  void setDeserializedValues(LDAPMessage readObject, com.novell.ldap.rfc2251.RfcControls asn1Ctrls)
           
 
Methods inherited from class com.novell.ldap.LDAPMessage
getControls, getMessageID, getTag, getType, isRequest, readDSML, readExternal, setTag, toString, writeDSML, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPCompareRequest

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


LDAPCompareRequest

public LDAPCompareRequest(java.lang.String dn,
                          java.lang.String name,
                          byte[] value,
                          LDAPControl[] cont)
                   throws LDAPException
Constructs an LDAPCompareRequest Object.

Parameters:
dn - The distinguished name of the entry containing an attribute to compare.

name - The name of the attribute to compare.

value - The value of the attribute to compare.

cont - Any controls that apply to the compare request, or null if none.
Method Detail

getAttributeDescription

public java.lang.String getAttributeDescription()
Returns the LDAPAttribute associated with this request.

Returns:
the LDAPAttribute

getAssertionValue

public byte[] getAssertionValue()
Returns the LDAPAttribute associated with this request.

Returns:
the LDAPAttribute

getDN

public java.lang.String getDN()
Returns of the dn of the entry to compare in the directory

Returns:
the dn of the entry to compare

setDeserializedValues

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

LDAP Classes
Implements Java LDAP

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