public class IntermediateResponseDecorator extends MessageDecorator<IntermediateResponse> implements IntermediateResponse
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
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the IntermediateResponse message to a PDU.
|
String |
getResponseName()
Gets the response name
|
byte[] |
getResponseValue()
Gets the ResponseValue.
|
void |
setResponseName(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, setMessageIdpublic IntermediateResponseDecorator(LdapApiService codec, IntermediateResponse decoratedMessage)
decoratedMessage - the decorated IntermediateResponsepublic String getResponseName()
getResponseName in interface IntermediateResponsepublic void setResponseName(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 ByteBuffer encode(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 encodedCopyright © 2021. All rights reserved.