public class DelRequestCodec extends LdapMessageCodec
ldapMessageLength
parent
Constructor and Description |
---|
DelRequestCodec()
Creates a new DelRequest object.
|
Modifier and Type | Method and Description |
---|---|
protected int |
computeLengthProtocolOp()
Compute the DelRequest length
DelRequest :
0x4A L1 entry
L1 = Length(entry)
Length(DelRequest) = Length(0x4A) + Length(L1) + L1
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the DelRequest message to a PDU.
|
DN |
getEntry()
Get the entry to be deleted
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
void |
setEntry(DN entry)
Set the entry to be deleted
|
String |
toString()
Return a String representing a DelRequest
|
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toString
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
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.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-2012 Apache Software Foundation. All Rights Reserved.