|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.decorators.MessageDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.RequestDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator<M>
org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator<ModifyDnRequest>
org.apache.directory.shared.ldap.codec.decorators.ModifyDnRequestDecorator
public class ModifyDnRequestDecorator
A decorator for the ModifyDnRequest message
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.codec.decorators.MessageDecorator |
|---|
messageLength |
| Fields inherited from interface org.apache.directory.shared.ldap.model.message.ModifyDnRequest |
|---|
RESP_TYPE, TYPE |
| Constructor Summary | |
|---|---|
ModifyDnRequestDecorator(LdapCodecService codec,
ModifyDnRequest decoratedMessage)
Makes a ModifyDnRequest encodable. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the ModifyDNRequest length ModifyDNRequest : |
ByteBuffer |
encode(ByteBuffer buffer)
Encode the ModifyDNRequest message to a PDU. |
boolean |
getDeleteOldRdn()
|
int |
getModifyDnResponseLength()
Stores the encoded length for the ModifyDnRequest |
Dn |
getName()
|
Rdn |
getNewRdn()
|
Dn |
getNewSuperior()
|
boolean |
isMove()
|
void |
setDeleteOldRdn(boolean deleteOldRdn)
|
void |
setModifyDnRequestLength(int modifyDnRequestLength)
|
void |
setName(Dn name)
|
void |
setNewRdn(Rdn newRdn)
|
void |
setNewSuperior(Dn newSuperior)
|
| Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.SingleReplyRequestDecorator |
|---|
abandon, addAbandonListener, getResponseType, isAbandoned |
| Methods inherited from class org.apache.directory.shared.ldap.codec.decorators.ResultResponseRequestDecorator |
|---|
getResultResponse, hasResponse |
| 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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.SingleReplyRequest |
|---|
getResponseType |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.ResultResponseRequest |
|---|
getResultResponse |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Request |
|---|
hasResponse |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.Message |
|---|
addAllControls, addControl, get, getControl, getControls, getMessageId, getType, hasControl, put, removeControl, setMessageId |
| Methods inherited from interface org.apache.directory.shared.ldap.model.message.AbandonableRequest |
|---|
abandon, addAbandonListener, isAbandoned |
| Constructor Detail |
|---|
public ModifyDnRequestDecorator(LdapCodecService codec,
ModifyDnRequest decoratedMessage)
decoratedMessage - the decorated ModifyDnRequest| Method Detail |
|---|
public void setModifyDnRequestLength(int modifyDnRequestLength)
modifyDnRequestLength - The encoded ModifyDnRequest's lengthpublic int getModifyDnResponseLength()
public Dn getName()
getName in interface ModifyDnRequestpublic void setName(Dn name)
setName in interface ModifyDnRequestpublic Rdn getNewRdn()
getNewRdn in interface ModifyDnRequestpublic void setNewRdn(Rdn newRdn)
setNewRdn in interface ModifyDnRequestpublic boolean getDeleteOldRdn()
getDeleteOldRdn in interface ModifyDnRequestpublic void setDeleteOldRdn(boolean deleteOldRdn)
setDeleteOldRdn in interface ModifyDnRequestpublic Dn getNewSuperior()
getNewSuperior in interface ModifyDnRequestpublic void setNewSuperior(Dn newSuperior)
setNewSuperior in interface ModifyDnRequestpublic boolean isMove()
isMove in interface ModifyDnRequestpublic int computeLength()
0x6C L1 | +--> 0x04 L2 entry +--> 0x04 L3 newRDN +--> 0x01 0x01 (true/false) deleteOldRDN (3 bytes) [+--> 0x80 L4 newSuperior ] L2 = Length(0x04) + Length(Length(entry)) + Length(entry) L3 = Length(0x04) + Length(Length(newRDN)) + Length(newRDN) L4 = Length(0x80) + Length(Length(newSuperior)) + Length(newSuperior) L1 = L2 + L3 + 3 [+ L4] Length(ModifyDNRequest) = Length(0x6C) + Length(L1) + L1
computeLength in interface Decorator<ModifyDnRequest>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
0x6C LL 0x04 LL entry 0x04 LL newRDN 0x01 0x01 deleteOldRDN [0x80 LL newSuperior]
encode in interface Decorator<ModifyDnRequest>buffer - The buffer where to put the PDU
EncoderException - if the buffer can't be encoded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||