public class CompareRequestImpl extends AbstractAbandonableRequest implements InternalCompareRequest
RESP_TYPE, TYPE| Constructor and Description |
|---|
CompareRequestImpl(int id)
Creates an CompareRequest implementation to compare a named entry with an
attribute value assertion pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Checks to see if an object is equivalent to this CompareRequest.
|
Value<?> |
getAssertionValue()
Gets the attribute value to use in making the comparison.
|
String |
getAttributeId()
Gets the attribute id use in making the comparison.
|
DN |
getName()
Gets the distinguished name of the entry to be compared using the
attribute value assertion.
|
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces
at least one response.
|
InternalResultResponse |
getResultResponse()
The result containing response for this request.
|
void |
setAssertionValue(byte[] attrVal)
Sets the attribute value to use in the comparison.
|
void |
setAssertionValue(String attrVal)
Sets the attribute value to use in the comparison.
|
void |
setAttributeId(String attrId)
Sets the attribute id used in the comparison.
|
void |
setName(DN name)
Sets the distinguished name of the entry to be compared using the
attribute value assertion.
|
String |
toString()
Get a String representation of a Compare Request
|
abandon, addAbandonListener, isAbandonedhashCode, hasResponseadd, addAll, get, getControls, getMessageId, getType, hasControl, put, removeclone, finalize, getClass, notify, notifyAll, wait, wait, waithasResponseadd, addAll, get, getControls, getMessageId, getType, hasControl, put, removeabandon, addAbandonListener, isAbandonedpublic CompareRequestImpl(int id)
id - the sequence identifier of the CompareRequest message.public DN getName()
getName in interface InternalCompareRequestpublic void setName(DN name)
setName in interface InternalCompareRequestname - the DN of the compared entry.public Value<?> getAssertionValue()
getAssertionValue in interface InternalCompareRequestpublic void setAssertionValue(String attrVal)
setAssertionValue in interface InternalCompareRequestattrVal - the attribute value used in comparison.public void setAssertionValue(byte[] attrVal)
setAssertionValue in interface InternalCompareRequestattrVal - the attribute value used in comparison.public String getAttributeId()
getAttributeId in interface InternalCompareRequestpublic void setAttributeId(String attrId)
setAttributeId in interface InternalCompareRequestattrId - the attribute id used in comparison.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequestpublic InternalResultResponse getResultResponse()
getResultResponse in interface InternalResultResponseRequestpublic boolean equals(Object obj)
equals in class InternalAbstractMessageobj - the obj to compare with this CompareRequestCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.