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