public class ExtendedResponseCodec extends LdapResponseCodec
ldapMessageLengthparent| Constructor and Description |
|---|
ExtendedResponseCodec()
Creates a new ExtendedResponse object.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeLengthProtocolOp()
Compute the ExtendedResponse length
ExtendedResponse :
0x78 L1
|
+--> LdapResult
[+--> 0x8A L2 name
[+--> 0x8B L3 response]]
L1 = Length(LdapResult)
[ + Length(0x8A) + Length(L2) + L2
[ + Length(0x8B) + Length(L3) + L3]]
Length(ExtendedResponse) = Length(0x78) + Length(L1) + L1
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the ExtendedResponse message to a PDU.
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
Object |
getResponse()
Get the extended response
|
String |
getResponseName()
Get the extended response name
|
void |
setResponse(Object response)
Set the extended response
|
void |
setResponseName(OID responseName)
Set the extended response name
|
String |
toString()
Get a String representation of an ExtendedResponse
|
computeLdapResultLength, encode, getLdapResponseLength, getLdapResult, setLdapResultaddControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toStringaddLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic ExtendedResponseCodec()
public MessageTypeEnum getMessageType()
getMessageType in class LdapMessageCodecpublic String getMessageTypeName()
getMessageTypeName in class LdapMessageCodecpublic String getResponseName()
public void setResponseName(OID responseName)
responseName - The name to set.public Object getResponse()
public void setResponse(Object response)
response - The response 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 PDUEncoderExceptionpublic String toString()
toString in class LdapResponseCodecCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.