public class SearchResultDoneDecorator extends ResponseDecorator<SearchResultDone> implements SearchResultDone
messageLength
TYPE
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.
|
int |
getSearchResultDoneLength() |
void |
setSearchResultDoneLength(int searchResultDoneLength)
Stores the encoded length for the SearchResultDone
|
getLdapResult, setLdapResult
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
clone, equals, finalize, 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)
decoratedMessage
- the decorated SearchResultDonepublic void setSearchResultDoneLength(int searchResultDoneLength)
searchResultDoneLength
- The encoded lengthpublic int getSearchResultDoneLength()
public int computeLength()
0x65 L1 | +--> LdapResult L1 = Length(LdapResult) Length(SearchResultDone) = Length(0x65) + Length(L1) + L1
computeLength
in interface Decorator<SearchResultDone>
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Decorator<SearchResultDone>
buffer
- The buffer where to put the PDUsearchResultDoneDecorator
- The SearchResultDone decoratorEncoderException
- if the buffer can't be encodedCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.