|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator<E>
org.apache.directory.api.dsmlv2.request.AbstractRequestDsml<E>
org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml<CompareRequest,CompareResponse>
org.apache.directory.api.dsmlv2.request.CompareRequestDsml
public class CompareRequestDsml
DSML Decorator for CompareRequest
| Field Summary |
|---|
| Fields inherited from interface org.apache.directory.api.ldap.model.message.CompareRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
CompareRequestDsml(LdapApiService codec)
Creates a new getDecoratedMessage() of CompareRequestDsml. |
|
CompareRequestDsml(LdapApiService codec,
CompareRequest ldapMessage)
Creates a new getDecoratedMessage() of CompareRequestDsml. |
|
| Method Summary | |
|---|---|
CompareRequest |
addAllControls(Control[] controls)
Adds an array of controls to this Message. |
CompareRequest |
addControl(Control control)
Adds a control to this Message. |
Value<?> |
getAssertionValue()
Gets the attribute value to use in making the comparison. |
String |
getAttributeDesc()
Get the attribute description |
String |
getAttributeId()
Gets the attribute id use in making the comparison. |
Dn |
getName()
Get the entry to be compared |
MessageTypeEnum |
getResponseType()
Gets the protocol response message type for this request which produces at least one response. |
MessageTypeEnum |
getType()
Gets the LDAP message type code associated with this Message. |
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. |
void |
setAssertionValue(Object assertionValue)
Set the assertion value |
CompareRequest |
setAssertionValue(String value)
Sets the attribute value to use in the comparison. |
void |
setAttributeDesc(String attributeDesc)
Set the attribute description |
CompareRequest |
setAttributeId(String attrId)
Sets the attribute id used in the comparison. |
CompareRequest |
setMessageId(int messageId)
Sets the Message ID for this request |
CompareRequest |
setName(Dn entry)
Set the entry to be compared |
org.dom4j.Element |
toDsml(org.dom4j.Element root)
Creates the Request Element and adds RequestID and Controls. |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractResultResponseRequestDsml |
|---|
abandon, addAbandonListener, computeLength, encode, getResultResponse, isAbandoned |
| Methods inherited from class org.apache.directory.api.dsmlv2.request.AbstractRequestDsml |
|---|
hasResponse |
| Methods inherited from class org.apache.directory.api.dsmlv2.AbstractDsmlMessageDecorator |
|---|
get, getCodecService, getControl, getControls, getCurrentControl, getDecorated, getMessageId, hasControl, put |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| 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, hasControl, put |
| Methods inherited from interface org.apache.directory.api.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public CompareRequestDsml(LdapApiService codec)
public CompareRequestDsml(LdapApiService codec,
CompareRequest ldapMessage)
ldapMessage - the message to decorate| Method Detail |
|---|
public MessageTypeEnum getType()
getType in interface MessagegetType in class AbstractDsmlMessageDecorator<CompareRequest>public org.dom4j.Element toDsml(org.dom4j.Element root)
toDsml in interface DsmlDecorator<CompareRequest>toDsml in class AbstractResultResponseRequestDsml<CompareRequest,CompareResponse>root - the root element
public Dn getName()
getName in interface CompareRequestpublic CompareRequest setName(Dn entry)
setName in interface CompareRequestentry - The entry to set.
public void setAssertionValue(Object assertionValue)
assertionValue - The assertionValue to set.public String getAttributeDesc()
public void setAttributeDesc(String attributeDesc)
attributeDesc - The attributeDesc to set.public MessageTypeEnum getResponseType()
getResponseType in interface SingleReplyRequest<CompareResponse>public 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 attrId)
setAttributeId in interface CompareRequestattrId - the attribute id used in comparison.
public Value<?> getAssertionValue()
getAssertionValue in interface CompareRequestpublic CompareRequest setMessageId(int messageId)
setMessageId in interface CompareRequestsetMessageId in interface MessagesetMessageId in class AbstractDsmlMessageDecorator<CompareRequest>messageId - The message Id
public CompareRequest addControl(Control control)
throws MessageException
addControl in interface CompareRequestaddControl in interface MessageaddControl in class AbstractDsmlMessageDecorator<CompareRequest>control - 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 AbstractDsmlMessageDecorator<CompareRequest>controls - 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 AbstractDsmlMessageDecorator<CompareRequest>control - the control to remove.
MessageException - if controls cannot be added to this Message or the control is
not known etc.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||