public class IntermediateResponseCodec extends LdapResponseCodec
ldapMessageLength
parent
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, setLdapResult
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public IntermediateResponseCodec()
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 byte[] getResponseValue()
public void setResponseValue(byte[] responseValue)
responseValue
- The intermediate response value 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-2013 The Apache Software Foundation. All Rights Reserved.