Interface CompareRequest
-
- All Superinterfaces:
AbandonableRequest,Message,Request,ResultResponseRequest,SingleReplyRequest
- All Known Implementing Classes:
CompareRequestDsml,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.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompareRequestaddAllControls(Control[] controls)Adds an array of controls to this Message.CompareRequestaddControl(Control control)Adds a control to this Message.ValuegetAssertionValue()Gets the attribute value to use in making the comparison.StringgetAttributeId()Gets the attribute id use in making the comparison.DngetName()Gets the distinguished name of the entry to be compared using the attribute value assertion.CompareRequestremoveControl(Control control)Deletes a control removing it from this Message.CompareRequestsetAssertionValue(byte[] value)Sets the attribute value to use in the comparison.CompareRequestsetAssertionValue(String value)Sets the attribute value to use in the comparison.CompareRequestsetAttributeId(String attrId)Sets the attribute id used in the comparison.CompareRequestsetMessageId(int messageId)Sets the Message ID for this requestCompareRequestsetName(Dn name)Sets the distinguished name of the entry to be compared using the attribute value assertion.-
Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest
abandon, addAbandonListener, isAbandoned
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
get, getControl, getControls, getMessageId, getType, hasControl, put
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Request
hasResponse
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest
getResultResponse
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.SingleReplyRequest
getResponseType
-
-
-
-
Method Detail
-
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
CompareRequest setName(Dn name)
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
CompareRequest setAssertionValue(String value)
Sets the attribute value to use in the comparison.- Parameters:
value- the attribute value used in comparison.- Returns:
- The CompareRequest instance
-
setAssertionValue
CompareRequest setAssertionValue(byte[] value)
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
CompareRequest setAttributeId(String attrId)
Sets the attribute id used in the comparison.- Parameters:
attrId- the attribute id used in comparison.- Returns:
- The CompareRequest instance
-
setMessageId
CompareRequest setMessageId(int messageId)
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
CompareRequest addControl(Control control)
Adds a control to this Message.- Specified by:
addControlin interfaceMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
CompareRequest addAllControls(Control[] controls)
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
CompareRequest removeControl(Control control)
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
-