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