public class CompareRequestCodec extends LdapMessageCodec
ldapMessageLength
parent
Constructor and Description |
---|
CompareRequestCodec()
Creates a new CompareRequest object.
|
Modifier and Type | Method and Description |
---|---|
protected int |
computeLengthProtocolOp()
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
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the CompareRequest message to a PDU.
|
Object |
getAssertionValue()
Get the assertion value
|
String |
getAttributeDesc()
Get the attribute description
|
DN |
getEntry()
Get the entry to be compared
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
void |
setAssertionValue(Object assertionValue)
Set the assertion value
|
void |
setAttributeDesc(String attributeDesc)
Set the attribute description
|
void |
setEntry(DN entry)
Set the entry to be compared
|
String |
toString()
Get a String representation of a Compare Request
|
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toString
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public CompareRequestCodec()
public MessageTypeEnum getMessageType()
getMessageType
in class LdapMessageCodec
public String getMessageTypeName()
getMessageTypeName
in class LdapMessageCodec
public DN getEntry()
public void setEntry(DN entry)
entry
- The entry to set.public Object getAssertionValue()
public void setAssertionValue(Object assertionValue)
assertionValue
- The assertionValue to set.public String getAttributeDesc()
public void setAttributeDesc(String attributeDesc)
attributeDesc
- The attributeDesc to set.protected int computeLengthProtocolOp()
computeLengthProtocolOp
in class LdapMessageCodec
protected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
encodeProtocolOp
in class LdapMessageCodec
buffer
- The buffer where to put the PDUEncoderException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.