|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.decorators.MessageDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.RequestDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator<CompareRequest>
org.apache.directory.shared.ldap.codec.decorators.CompareRequestDecorator
public class CompareRequestDecorator
A decorator for the CompareRequest message
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.decorators.MessageDecorator |
|---|
messageLength |
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.CompareRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
CompareRequestDecorator(LdapCodecService codec,
CompareRequest decoratedMessage)
Makes a CompareRequest a MessageDecorator. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the CompareRequest length CompareRequest : 0x6E L1 | +--> 0x04 L2 entry +--> 0x30 L3 (ava) | +--> 0x04 L4 attributeDesc +--> 0x04 L5 assertionValue L3 = Length(0x04) + Length(L4) + L4 + Length(0x04) + Length(L5) + L5 Length(CompareRequest) = Length(0x6E) + Length(L1) + L1 + Length(0x04) + Length(L2) + L2 + Length(0x30) + Length(L3) + L3 |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the CompareRequest message to a PDU. |
Value<?> |
getAssertionValue()
|
String |
getAttributeId()
|
byte[] |
getAttrIdBytes()
Gets the attribute id bytes use in making the comparison. |
byte[] |
getAttrValBytes()
Gets the attribute value bytes use in making the comparison. |
int |
getAvaLength()
|
int |
getCompareRequestLength()
|
Dn |
getName()
|
void |
setAssertionValue(byte[] value)
|
void |
setAssertionValue(String value)
|
void |
setAttributeId(String attrId)
|
void |
setAttrIdBytes(byte[] attrIdBytes)
Sets the attribute id bytes used in the comparison. |
void |
setAttrValBytes(byte[] attrValBytes)
Sets the attribute value bytes used in the comparison. |
void |
setAvaLength(int avaLength)
Stores the encoded length for the ava |
void |
setCompareRequestLength(int compareRequestLength)
Stores the encoded length for the CompareRequest |
void |
setName(Dn name)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator |
|---|
abandon, addAbandonListener, getResponseType, isAbandoned |
| Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator |
|---|
getResultResponse, hasResponse |
| Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.MessageDecorator |
|---|
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.SingleReplyRequest |
|---|
getResponseType |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public CompareRequestDecorator(LdapCodecService codec,
CompareRequest decoratedMessage)
decoratedMessage - the decorated CompareRequest| Method Detail |
|---|
public void setCompareRequestLength(int compareRequestLength)
compareRequestLength - The encoded lengthpublic int getCompareRequestLength()
public void setAvaLength(int avaLength)
avaLength - The encoded lengthpublic int getAvaLength()
public byte[] getAttrIdBytes()
public void setAttrIdBytes(byte[] attrIdBytes)
attrIdBytes - the attribute id bytes used in comparison.public byte[] getAttrValBytes()
public void setAttrValBytes(byte[] attrValBytes)
attrValBytes - the attribute value bytes used in comparison.public Dn getName()
getName in interface CompareRequestpublic void setName(Dn name)
setName in interface CompareRequestpublic Value<?> getAssertionValue()
getAssertionValue in interface CompareRequestpublic void setAssertionValue(String value)
setAssertionValue in interface CompareRequestpublic void setAssertionValue(byte[] value)
setAssertionValue in interface CompareRequestpublic String getAttributeId()
getAttributeId in interface CompareRequestpublic void setAttributeId(String attrId)
setAttributeId in interface CompareRequestpublic int computeLength()
computeLength in interface Decorator<CompareRequest>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Decorator<CompareRequest>buffer - The buffer where to put the PDU
EncoderException - if the buffer can't be encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||