org.apache.directory.shared.ldap.codec.decorators
Class ModifyDnResponseDecorator
java.lang.Object
org.apache.directory.shared.ldap.codec.decorators.MessageDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.ResponseDecorator<ModifyDnResponse>
org.apache.directory.shared.ldap.codec.decorators.ModifyDnResponseDecorator
- All Implemented Interfaces:
- Decorator<ModifyDnResponse>, Message, ModifyDnResponse, Response, ResultResponse
public class ModifyDnResponseDecorator
- extends ResponseDecorator<ModifyDnResponse>
- implements ModifyDnResponse
A decorator for the ModifyDnResponse message
- Author:
- Apache Directory Project
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.ModifyDnResponse |
TYPE |
| Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.MessageDecorator |
addAllControls, addControl, get, getCodecService, getControl, getControls, getControlsLength, getCurrentControl, getDecorated, getDecorator, getMessageId, getMessageLength, getType, hasControl, put, removeControl, setControlsLength, setMessageId, setMessageLength, toString |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message |
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
ModifyDnResponseDecorator
public ModifyDnResponseDecorator(LdapCodecService codec,
ModifyDnResponse decoratedMessage)
- Makes a ModifyDnResponse encodable.
- Parameters:
decoratedMessage - the decorated ModifyDnResponse
setModifyDnResponseLength
public void setModifyDnResponseLength(int modifyDnResponseLength)
- Parameters:
modifyDnResponseLength - The encoded ModifyDnResponse's length
getModifyDnResponseLength
public int getModifyDnResponseLength()
- Stores the encoded length for the ModifyDnResponse
- Returns:
- The encoded length
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 interface Decorator<ModifyDnResponse>
- 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 interface Decorator<ModifyDnResponse>
- Parameters:
buffer - The buffer where to put the PDU
- Returns:
- The PDU.
- Throws:
EncoderException - if the buffer can't be encoded
Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.