Class ModifyResponseDecorator
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.MessageDecorator<M>
-
- org.apache.directory.api.ldap.codec.decorators.ResponseDecorator<ModifyResponse>
-
- org.apache.directory.api.ldap.codec.decorators.ModifyResponseDecorator
-
- All Implemented Interfaces:
Asn1Object
,Decorator<ModifyResponse>
,Message
,ModifyResponse
,Response
,ResultResponse
public class ModifyResponseDecorator extends ResponseDecorator<ModifyResponse> implements ModifyResponse
A decorator for the ModifyResponse message- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description ModifyResponseDecorator(LdapApiService codec, ModifyResponse decoratedMessage)
Makes a ModifyResponse encodable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
computeLength()
Compute the ModifyResponse length
ModifyResponse :ByteBuffer
encode(ByteBuffer buffer)
Encode the ModifyResponse 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
-
ModifyResponseDecorator
public ModifyResponseDecorator(LdapApiService codec, ModifyResponse decoratedMessage)
Makes a ModifyResponse encodable.- Parameters:
codec
- The LDAP service instancedecoratedMessage
- the decorated ModifyResponse
-
-
Method Detail
-
computeLength
public int computeLength()
Compute the ModifyResponse length
ModifyResponse :0x67 L1 | +--> LdapResult L1 = Length(LdapResult) Length(ModifyResponse) = Length(0x67) + Length(L1) + L1
- Specified by:
computeLength
in interfaceAsn1Object
- Returns:
- The object's computed length
-
encode
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
Encode the ModifyResponse message to a PDU.- Specified by:
encode
in interfaceAsn1Object
- Parameters:
buffer
- The buffer where to put the PDU- Returns:
- The encoded PDU.
- Throws:
EncoderException
- if the buffer can't be encoded
-
-