public class IntermediateResponseDecorator extends MessageDecorator<IntermediateResponse> implements IntermediateResponse
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
encodedValueBytes
The encoded value as a byte[]
|
private int |
intermediateResponseLength
The encoded intermediateResponse length
|
private byte[] |
responseNameBytes
The response name as a byte[]
|
messageLengthTYPE| Constructor and Description |
|---|
IntermediateResponseDecorator(LdapApiService codec,
IntermediateResponse decoratedMessage)
Makes a IntermediateResponse encodable.
|
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
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
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the IntermediateResponse message to a PDU.
|
java.lang.String |
getResponseName()
Gets the response name
|
byte[] |
getResponseValue()
Gets the ResponseValue.
|
void |
setResponseName(java.lang.String oid)
Sets the response name.
|
void |
setResponseValue(byte[] value)
Sets the respponseValue
|
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageIdprivate byte[] responseNameBytes
private int intermediateResponseLength
private byte[] encodedValueBytes
public IntermediateResponseDecorator(LdapApiService codec, IntermediateResponse decoratedMessage)
decoratedMessage - the decorated IntermediateResponsepublic java.lang.String getResponseName()
getResponseName in interface IntermediateResponsepublic void setResponseName(java.lang.String oid)
setResponseName in interface IntermediateResponseoid - the ResponseNamepublic byte[] getResponseValue()
getResponseValue in interface IntermediateResponsepublic void setResponseValue(byte[] value)
setResponseValue in interface IntermediateResponsevalue - The responseValuepublic int computeLength()
computeLength in interface Asn1ObjectcomputeLength in interface Decorator<IntermediateResponse>public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in interface Decorator<IntermediateResponse>buffer - The buffer where to put the PDUEncoderException - if the buffer can't be encoded