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, isAbandoned
hashCode, hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
add, addAll, get, getControls, getMessageId, getType, hasControl, put, remove
abandon, addAbandonListener, isAbandoned
public CompareRequestImpl(int id)
id
- the sequence identifier of the CompareRequest message.public DN getName()
getName
in interface InternalCompareRequest
public void setName(DN name)
setName
in interface InternalCompareRequest
name
- the DN of the compared entry.public Value<?> getAssertionValue()
getAssertionValue
in interface InternalCompareRequest
public void setAssertionValue(String attrVal)
setAssertionValue
in interface InternalCompareRequest
attrVal
- the attribute value used in comparison.public void setAssertionValue(byte[] attrVal)
setAssertionValue
in interface InternalCompareRequest
attrVal
- the attribute value used in comparison.public String getAttributeId()
getAttributeId
in interface InternalCompareRequest
public void setAttributeId(String attrId)
setAttributeId
in interface InternalCompareRequest
attrId
- the attribute id used in comparison.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public InternalResultResponse getResultResponse()
getResultResponse
in interface InternalResultResponseRequest
public boolean equals(Object obj)
equals
in class InternalAbstractMessage
obj
- the obj to compare with this CompareRequestCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.