|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public class CompareRequestImpl
Comparison request implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
controls |
| Fields inherited from interface org.apache.directory.api.ldap.model.message.CompareRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
CompareRequestImpl()
Creates an CompareRequest implementation to compare a named entry with an attribute value assertion pair. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractAbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractRequest |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.ldap.model.message.AbstractMessage |
|---|
get, getControl, getControls, getMessageId, getType, hasControl, put, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.Request |
|---|
hasResponse |
| 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.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public CompareRequestImpl()
| Method Detail |
|---|
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 Id
public CompareRequest addControl(Control control)
throws MessageException
addControl in interface CompareRequestaddControl in interface MessageaddControl in class AbstractMessagecontrol - the control to add.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
public CompareRequest addAllControls(Control[] controls)
throws MessageException
addAllControls in interface CompareRequestaddAllControls in interface MessageaddAllControls in class AbstractMessagecontrols - the controls to add.
MessageException - if controls cannot be added to this Message or they are not known etc.
public CompareRequest removeControl(Control control)
throws MessageException
removeControl in interface CompareRequestremoveControl in interface MessageremoveControl in class AbstractMessagecontrol - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<CompareResponse>public CompareResponse getResultResponse()
getResultResponse in interface ResultResponseRequest<CompareResponse>public int hashCode()
hashCode in class AbstractRequestObject.hashCode()public boolean equals(Object obj)
equals in class AbstractRequestobj - the obj to compare with this CompareRequest
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||