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, isAbandonedhasResponseget, getControl, getControls, getMessageId, getType, hasControl, put, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waithasResponseget, getControl, getControls, getMessageId, getType, hasControl, putabandon, addAbandonListener, isAbandonedpublic CompareRequestImpl()
public Dn getName()
getName in interface CompareRequestpublic CompareRequest setName(Dn name)
setName in interface CompareRequestname - the Dn of the compared entry.public Value<?> getAssertionValue()
getAssertionValue in interface CompareRequestpublic CompareRequest setAssertionValue(String value)
setAssertionValue in interface CompareRequestvalue - the attribute value used in comparison.public CompareRequest setAssertionValue(byte[] value)
setAssertionValue in interface CompareRequestvalue - the attribute value used in comparison.public String getAttributeId()
getAttributeId in interface CompareRequestpublic CompareRequest setAttributeId(String attributeId)
setAttributeId in interface CompareRequestattributeId - the attribute id used in comparison.public CompareRequest setMessageId(int messageId)
setMessageId in interface CompareRequestsetMessageId in interface MessagesetMessageId in class AbstractMessagemessageId - The message Idpublic CompareRequest addControl(Control control)
addControl in interface CompareRequestaddControl in interface MessageaddControl in class AbstractMessagecontrol - the control to add.public CompareRequest addAllControls(Control[] controls)
addAllControls in interface CompareRequestaddAllControls in interface MessageaddAllControls in class AbstractMessagecontrols - the controls to add.public CompareRequest removeControl(Control control)
removeControl in interface CompareRequestremoveControl in interface MessageremoveControl in class AbstractMessagecontrol - the control to remove.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequestpublic CompareResponse getResultResponse()
getResultResponse in interface ResultResponseRequestpublic int hashCode()
hashCode in class AbstractRequestObject.hashCode()public boolean equals(Object obj)
equals in class AbstractRequestobj - the obj to compare with this CompareRequestCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.