Class SearchResultDoneDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.ResponseDecorator<SearchResultDone>
-
- org.apache.directory.api.ldap.codec.decorators.SearchResultDoneDecorator
-
- All Implemented Interfaces:
Asn1Object
,Decorator<SearchResultDone>
,Message
,Response
,ResultResponse
,SearchResultDone
public class SearchResultDoneDecorator extends ResponseDecorator<SearchResultDone> implements SearchResultDone
A decorator for the SearchResultDone message- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SearchResultDoneDecorator(LdapApiService codec, SearchResultDone decoratedMessage)
Makes a SearchResultDone encodable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeLength()
Compute the SearchResultDone length
SearchResultDone :ByteBuffer
encode(ByteBuffer buffer)
Encode the SearchResultDone message to a PDU.-
Methods inherited from class org.apache.directory.api.ldap.codec.decorators.ResponseDecorator
getLdapResult, setLdapResult
-
Methods inherited from class org.apache.directory.api.ldap.codec.api.MessageDecorator
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.Message
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId
-
Methods inherited from interface org.apache.directory.api.ldap.model.message.ResultResponse
getLdapResult
-
-
-
-
Constructor Detail
-
SearchResultDoneDecorator
public SearchResultDoneDecorator(LdapApiService codec, SearchResultDone decoratedMessage)
Makes a SearchResultDone encodable.- Parameters:
codec
- The LDAP service instancedecoratedMessage
- the decorated SearchResultDone
-
-
Method Detail
-
computeLength
public int computeLength()
Compute the SearchResultDone length
SearchResultDone :0x65 L1 | +--> LdapResult L1 = Length(LdapResult) Length(SearchResultDone) = Length(0x65) + Length(L1) + L1
- Specified by:
computeLength
in interfaceAsn1Object
- Returns:
- The object's computed length
-
encode
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the SearchResultDone message to a PDU.- Specified by:
encode
in interfaceAsn1Object
- Parameters:
buffer
- The buffer where to put the PDU return The encoded response- Returns:
- The encoded PDU.
- Throws:
EncoderException
- If the encoding failed
-
-