Class CompareRequestImpl
java.lang.Object
org.apache.directory.api.ldap.model.message.AbstractMessage
org.apache.directory.api.ldap.model.message.AbstractRequest
org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest
org.apache.directory.api.ldap.model.message.CompareRequestImpl
- All Implemented Interfaces:
AbandonableRequest, CompareRequest, Message, Request, ResultResponseRequest, SingleReplyRequest
Comparison request implementation.
- Author:
- Apache Directory Project
-
Field Summary
Fields inherited from class AbstractMessage
controls -
Constructor Summary
ConstructorsConstructorDescriptionCreates an CompareRequest implementation to compare a named entry with an attribute value assertion pair. -
Method Summary
Modifier and TypeMethodDescriptionaddAllControls(Control[] controls) Adds an array of controls to this Message.addControl(Control control) Adds a control to this Message.booleanChecks to see if an object is equivalent to this CompareRequest.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.Gets the protocol response message type for this request which produces at least one response.The result containing response for this request.inthashCode()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 attributeId) 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.toString()Get a String representation of a Compare RequestMethods inherited from class AbstractAbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from class AbstractRequest
hasResponseMethods inherited from class AbstractMessage
get, getControl, getControls, getMessageId, getType, hasControl, put, toStringMethods inherited from interface AbandonableRequest
abandon, addAbandonListener, isAbandonedMethods inherited from interface Message
get, getControl, getControls, getMessageId, getType, hasControl, putMethods inherited from interface Request
hasResponse
-
Constructor Details
-
CompareRequestImpl
public CompareRequestImpl()Creates an CompareRequest implementation to compare a named entry with an attribute value assertion pair.
-
-
Method Details
-
getName
Gets the distinguished name of the entry to be compared using the attribute value assertion.- Specified by:
getNamein interfaceCompareRequest- Returns:
- the Dn of the compared entry.
-
setName
Sets the distinguished name of the entry to be compared using the attribute value assertion.- Specified by:
setNamein interfaceCompareRequest- Parameters:
name- the Dn of the compared entry.- Returns:
- The CompareRequest instance
-
getAssertionValue
Gets the attribute value to use in making the comparison.- Specified by:
getAssertionValuein interfaceCompareRequest- Returns:
- the attribute value to used in comparison.
-
setAssertionValue
Sets the attribute value to use in the comparison.- Specified by:
setAssertionValuein interfaceCompareRequest- Parameters:
value- the attribute value used in comparison.- Returns:
- The CompareRequest instance
-
setAssertionValue
Sets the attribute value to use in the comparison.- Specified by:
setAssertionValuein interfaceCompareRequest- Parameters:
value- the attribute value used in comparison.- Returns:
- The CompareRequest instance
-
getAttributeId
Gets the attribute id use in making the comparison.- Specified by:
getAttributeIdin interfaceCompareRequest- Returns:
- the attribute id used in comparison.
-
setAttributeId
Sets the attribute id used in the comparison.- Specified by:
setAttributeIdin interfaceCompareRequest- Parameters:
attributeId- the attribute id used in comparison.- Returns:
- The CompareRequest instance
-
setMessageId
Sets the Message ID for this request- Specified by:
setMessageIdin interfaceCompareRequest- Specified by:
setMessageIdin interfaceMessage- Overrides:
setMessageIdin classAbstractMessage- Parameters:
messageId- The message Id- Returns:
- A Message reference
-
addControl
Adds a control to this Message.- Specified by:
addControlin interfaceCompareRequest- Specified by:
addControlin interfaceMessage- Overrides:
addControlin classAbstractMessage- Parameters:
control- the control to add.- Returns:
- A Message reference
-
addAllControls
Adds an array of controls to this Message.- Specified by:
addAllControlsin interfaceCompareRequest- Specified by:
addAllControlsin interfaceMessage- Overrides:
addAllControlsin classAbstractMessage- Parameters:
controls- the controls to add.- Returns:
- A Message reference
-
removeControl
Deletes a control removing it from this Message.- Specified by:
removeControlin interfaceCompareRequest- Specified by:
removeControlin interfaceMessage- Overrides:
removeControlin classAbstractMessage- Parameters:
control- the control to remove.- Returns:
- A Message reference
-
getResponseType
Gets the protocol response message type for this request which produces at least one response.- Specified by:
getResponseTypein interfaceSingleReplyRequest- Returns:
- the message type of the response.
-
getResultResponse
The result containing response for this request.- Specified by:
getResultResponsein interfaceResultResponseRequest- Returns:
- the result containing response for this request
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractRequest- Returns:
- the instance's hash code
- See Also:
-
equals
Checks to see if an object is equivalent to this CompareRequest.- Overrides:
equalsin classAbstractRequest- Parameters:
obj- the obj to compare with this CompareRequest- Returns:
- true if the obj is equal to this request, false otherwise
-
toString
-