public class CompareRequestImpl extends AbstractAbandonableRequest implements CompareRequest
controls
Constructor and Description |
---|
CompareRequestImpl()
Creates an CompareRequest implementation to compare a named entry with an
attribute value assertion pair.
|
Modifier and Type | Method and Description |
---|---|
CompareRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message.
|
CompareRequest |
addControl(Control control)
Adds a control to this Message.
|
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.
|
CompareResponse |
getResultResponse()
The result containing response for this request.
|
int |
hashCode() |
CompareRequest |
removeControl(Control control)
Deletes a control removing it from this Message.
|
CompareRequest |
setAssertionValue(byte[] value)
Sets the attribute value to use in the comparison.
|
CompareRequest |
setAssertionValue(String value)
Sets the attribute value to use in the comparison.
|
CompareRequest |
setAttributeId(String attributeId)
Sets the attribute id used in the comparison.
|
CompareRequest |
setMessageId(int messageId)
Sets the Message ID for this request
|
CompareRequest |
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
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasResponse
get, getControl, getControls, getMessageId, getType, hasControl, put
abandon, addAbandonListener, isAbandoned
public CompareRequestImpl()
public Dn getName()
getName
in interface CompareRequest
public CompareRequest setName(Dn name)
setName
in interface CompareRequest
name
- the Dn of the compared entry.public Value<?> getAssertionValue()
getAssertionValue
in interface CompareRequest
public CompareRequest setAssertionValue(String value)
setAssertionValue
in interface CompareRequest
value
- the attribute value used in comparison.public CompareRequest setAssertionValue(byte[] value)
setAssertionValue
in interface CompareRequest
value
- the attribute value used in comparison.public String getAttributeId()
getAttributeId
in interface CompareRequest
public CompareRequest setAttributeId(String attributeId)
setAttributeId
in interface CompareRequest
attributeId
- the attribute id used in comparison.public CompareRequest setMessageId(int messageId)
setMessageId
in interface CompareRequest
setMessageId
in interface Message
setMessageId
in class AbstractMessage
messageId
- The message Idpublic CompareRequest addControl(Control control)
addControl
in interface CompareRequest
addControl
in interface Message
addControl
in class AbstractMessage
control
- the control to add.public CompareRequest addAllControls(Control[] controls)
addAllControls
in interface CompareRequest
addAllControls
in interface Message
addAllControls
in class AbstractMessage
controls
- the controls to add.public CompareRequest removeControl(Control control)
removeControl
in interface CompareRequest
removeControl
in interface Message
removeControl
in class AbstractMessage
control
- the control to remove.public MessageTypeEnum getResponseType()
getResponseType
in interface SingleReplyRequest
public CompareResponse getResultResponse()
getResultResponse
in interface ResultResponseRequest
public int hashCode()
hashCode
in class AbstractRequest
Object.hashCode()
public boolean equals(Object obj)
equals
in class AbstractRequest
obj
- the obj to compare with this CompareRequestCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.