public class ExtendedResponseCodec extends LdapResponseCodec
ldapMessageLength
parent
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, setLdapResult
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public ExtendedResponseCodec()
public MessageTypeEnum getMessageType()
getMessageType
in class LdapMessageCodec
public String getMessageTypeName()
getMessageTypeName
in class LdapMessageCodec
public 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 LdapMessageCodec
protected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
encodeProtocolOp
in class LdapMessageCodec
buffer
- The buffer where to put the PDUEncoderException
public String toString()
toString
in class LdapResponseCodec
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.