Interface CompareRequest
- All Superinterfaces:
AbandonableRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
- All Known Implementing Classes:
CompareRequestImpl
Compare request protocol message that tests an entry to see if it abides by
an attribute value assertion.
- Author:
- Apache Directory Project
-
Method Summary
Modifier and TypeMethodDescriptionaddAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.Gets the attribute value to use in making the comparison.Gets the attribute id use in making the comparison.getName()Gets the distinguished name of the entry to be compared using the attribute value assertion.removeControl(Control control) Deletes a control removing it from this Message.setAssertionValue(byte[] value) Sets the attribute value to use in the comparison.setAssertionValue(String value) Sets the attribute value to use in the comparison.setAttributeId(String attrId) Sets the attribute id used in the comparison.setMessageId(int messageId) Sets the Message ID for this requestSets the distinguished name of the entry to be compared using the attribute value assertion.Methods inherited from interface AbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponseMethods inherited from interface ResultResponseRequest
getResultResponseMethods inherited from interface SingleReplyRequest
getResponseType
-
Method Details
-
getName
Dn getName()Gets the distinguished name of the entry to be compared using the attribute value assertion.- Returns:
- the Dn of the compared entry.
-
setName
Sets the distinguished name of the entry to be compared using the attribute value assertion.- Parameters:
name- the Dn of the compared entry.- Returns:
- The CompareRequest instance
-
getAssertionValue
Value getAssertionValue()Gets the attribute value to use in making the comparison.- Returns:
- the attribute value to used in comparison.
-
setAssertionValue
Sets the attribute value to use in the comparison.- Parameters:
value- the attribute value used in comparison.- Returns:
- The CompareRequest instance
-
setAssertionValue
Sets the attribute value to use in the comparison.- Parameters:
value- the attribute value used in comparison.- Returns:
- The CompareRequest instance
-
getAttributeId
String getAttributeId()Gets the attribute id use in making the comparison.- Returns:
- the attribute id used in comparison.
-
setAttributeId
Sets the attribute id used in the comparison.- Parameters:
attrId- the attribute id used in comparison.- Returns:
- The CompareRequest instance
-
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-