|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.LdapMessageCodec
org.apache.directory.shared.ldap.codec.modifyDn.ModifyDNRequestCodec
public class ModifyDNRequestCodec
A ModifyDNRequest Message. Its syntax is : ModifyDNRequest ::= [APPLICATION 12] SEQUENCE { entry LDAPDN, newrdn RelativeLDAPDN, deleteoldrdn BOOLEAN, newSuperior [0] LDAPDN OPTIONAL }
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
ModifyDNRequestCodec()
Creates a new ModifyDNRequest object. |
|
| Method Summary | |
|---|---|
int |
computeLength()
Compute the ModifyDNRequest length ModifyDNRequest : 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 |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the ModifyDNRequest message to a PDU. |
LdapDN |
getEntry()
Get the modification's DN |
int |
getMessageType()
Get the message type |
Rdn |
getNewRDN()
Get the new RDN |
LdapDN |
getNewSuperior()
Get the newSuperior |
boolean |
isDeleteOldRDN()
Tells if the old RDN is to be deleted |
void |
setDeleteOldRDN(boolean deleteOldRDN)
Set the flag to delete the old RDN |
void |
setEntry(LdapDN entry)
Set the modification DN. |
void |
setNewRDN(Rdn newRDN)
Set the new RDN |
void |
setNewSuperior(LdapDN newSuperior)
Set the new superior |
java.lang.String |
toString()
Get a String representation of a ModifyDNRequest |
| Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
|---|
addControl, getAbandonRequest, getAddRequest, getAddResponse, getBindRequest, getBindResponse, getCompareRequest, getCompareResponse, getControls, getControls, getCurrentControl, getDelRequest, getDelResponse, getExtendedRequest, getExtendedResponse, getIntermediateResponse, getLdapResponse, getMessageId, getMessageTypeName, getModifyDNRequest, getModifyDNResponse, getModifyRequest, getModifyResponse, getSearchRequest, getSearchResultDone, getSearchResultEntry, getSearchResultReference, getUnBindRequest, initControls, setMessageId, setProtocolOP |
| Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ModifyDNRequestCodec()
| Method Detail |
|---|
public int getMessageType()
getMessageType in class LdapMessageCodecpublic LdapDN getEntry()
public void setEntry(LdapDN entry)
entry - The entry to set.public boolean isDeleteOldRDN()
public void setDeleteOldRDN(boolean deleteOldRDN)
deleteOldRDN - The deleteOldRDN to set.public Rdn getNewRDN()
public void setNewRDN(Rdn newRDN)
newRDN - The newRDN to set.public LdapDN getNewSuperior()
public void setNewSuperior(LdapDN newSuperior)
newSuperior - The newSuperior to set.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in class LdapMessageCodec
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in class LdapMessageCodecbuffer - The buffer where to put the PDU
EncoderException - If anything goes wrong.public java.lang.String toString()
toString in class LdapMessageCodec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||