public class SearchResultDoneDecorator extends ResponseDecorator<SearchResultDone> implements SearchResultDone
Constructor and Description |
---|
SearchResultDoneDecorator(LdapApiService codec,
SearchResultDone decoratedMessage)
Makes a SearchResultDone encodable.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLength()
Compute the SearchResultDone length
SearchResultDone : |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the SearchResultDone message to a PDU.
|
getLdapResult, setLdapResult
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLdapResult
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
public SearchResultDoneDecorator(LdapApiService codec, SearchResultDone decoratedMessage)
codec
- The LDAP service instancedecoratedMessage
- the decorated SearchResultDonepublic int computeLength()
0x65 L1 | +--> LdapResult L1 = Length(LdapResult) Length(SearchResultDone) = Length(0x65) + Length(L1) + L1
computeLength
in interface Asn1Object
computeLength
in interface Decorator<SearchResultDone>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in interface Decorator<SearchResultDone>
buffer
- The buffer where to put the PDU
return The encoded responseEncoderException
- If the encoding failedCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.