public class ExtendedRequestCodec extends LdapMessageCodec
ldapMessageLengthparent| Constructor and Description |
|---|
ExtendedRequestCodec()
Creates a new ExtendedRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeLengthProtocolOp()
Compute the ExtendedRequest length
ExtendedRequest :
0x77 L1
|
+--> 0x80 L2 name
[+--> 0x81 L3 value]
L1 = Length(0x80) + Length(L2) + L2
[+ Length(0x81) + Length(L3) + L3]
Length(ExtendedRequest) = Length(0x77) + Length(L1) + L1
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the ExtendedRequest message to a PDU.
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
String |
getRequestName()
Get the extended request name
|
byte[] |
getRequestValue()
Get the extended request value
|
void |
setRequestName(OID requestName)
Set the extended request name
|
void |
setRequestValue(byte[] requestValue)
Set the extended request value
|
String |
toString()
Get a String representation of an Extended Request
|
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toStringaddLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic ExtendedRequestCodec()
public MessageTypeEnum getMessageType()
getMessageType in class LdapMessageCodecpublic String getMessageTypeName()
getMessageTypeName in class LdapMessageCodecpublic String getRequestName()
public void setRequestName(OID requestName)
requestName - The request name to set.public byte[] getRequestValue()
public void setRequestValue(byte[] requestValue)
requestValue - The request value to set.protected int computeLengthProtocolOp()
computeLengthProtocolOp in class LdapMessageCodecprotected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
encodeProtocolOp in class LdapMessageCodecbuffer - The buffer where to put the PDUEncoderExceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.