org.apache.directory.shared.ldap.message
Interface CompareRequest

All Superinterfaces:
AbandonableRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
All Known Implementing Classes:
CompareRequestImpl

public interface CompareRequest
extends SingleReplyRequest, AbandonableRequest

Compare request protocol message that tests an entry to see if it abides by an attribute value assertion.

Version:
$Revision: 379008 $
Author:
Apache Directory Project

Field Summary
static MessageTypeEnum RESP_TYPE
          Compare response message type enum code
static MessageTypeEnum TYPE
          Compare request message type enum code
 
Method Summary
 byte[] getAssertionValue()
          Gets the attribute value to use in making the comparison.
 java.lang.String getAttributeId()
          Gets the attribute id use in making the comparison.
 java.lang.String getName()
          Gets the distinguished name of the entry to be compared using the attribute value assertion.
 void setAssertionValue(byte[] value)
          Sets the attribute value to use in the comparison.
 void setAssertionValue(java.lang.String a_value)
          Sets the attribute value to use in the comparison.
 void setAttributeId(java.lang.String a_attrId)
          Sets the attribute id used in the comparison.
 void setName(java.lang.String a_name)
          Sets the distinguished name of the entry to be compared using the attribute value assertion.
 
Methods inherited from interface org.apache.directory.shared.ldap.message.SingleReplyRequest
getResponseType
 
Methods inherited from interface org.apache.directory.shared.ldap.message.ResultResponseRequest
getResultResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Request
hasResponse
 
Methods inherited from interface org.apache.directory.shared.ldap.message.Message
add, get, getControls, getMessageId, getType, put, remove
 
Methods inherited from interface org.apache.directory.shared.ldap.message.AbandonableRequest
abandon, addAbandonListener, isAbandoned
 

Field Detail

TYPE

public static final MessageTypeEnum TYPE
Compare request message type enum code


RESP_TYPE

public static final MessageTypeEnum RESP_TYPE
Compare response message type enum code

Method Detail

getName

public java.lang.String getName()
Gets the distinguished name of the entry to be compared using the attribute value assertion.

Returns:
the DN of the compared entry.

setName

public void setName(java.lang.String a_name)
Sets the distinguished name of the entry to be compared using the attribute value assertion.

Parameters:
a_name - the DN of the compared entry.

getAssertionValue

public byte[] getAssertionValue()
Gets the attribute value to use in making the comparison.

Returns:
the attribute value to used in comparison.

setAssertionValue

public void setAssertionValue(java.lang.String a_value)
Sets the attribute value to use in the comparison.

Parameters:
a_value - the attribute value used in comparison.

setAssertionValue

public void setAssertionValue(byte[] value)
Sets the attribute value to use in the comparison.


getAttributeId

public java.lang.String getAttributeId()
Gets the attribute id use in making the comparison.

Returns:
the attribute id used in comparison.

setAttributeId

public void setAttributeId(java.lang.String a_attrId)
Sets the attribute id used in the comparison.

Parameters:
a_attrId - the attribute id used in comparison.


Copyright © 2003-2006 . All Rights Reserved.