e.setAttribute("dn", moddn.getDN()); e.setAttribute("newrdn", moddn.getNewRDN()); e.setAttribute("deleteoldrdn", moddn.getDeleteOldRDN()+""); String temp = moddn.getParentDN(); if (temp != null && temp.length() >0){
out.write(" newrdn=\""); out.write(((LDAPModifyDNRequest) message).getNewRDN() + "\" deleteoldrdn=\""); out.write(((LDAPModifyDNRequest) message).getDeleteOldRDN() + "\" newSuperior=\""); out.write(((LDAPModifyDNRequest) message).getParentDN() + "\"");
protected void setDeserializedValues(LDAPMessage readObject, RfcControls asn1Ctrls) throws IOException, ClassNotFoundException { // Check if it is the correct message type if(!(readObject instanceof LDAPModifyDNRequest)) throw new ClassNotFoundException("Error occured while deserializing " + "LDAPModifyDNRequest object"); LDAPModifyDNRequest tmp = (LDAPModifyDNRequest)readObject; String dn = tmp.getDN(); String newRdn = tmp.getNewRDN(); boolean deleteOldRdn = tmp.getDeleteOldRDN(); String newParentdn = tmp.getParentDN(); tmp = null; //remove reference after getting properties RfcRequest operation = new RfcModifyDNRequest( new RfcLDAPDN(dn), new RfcRelativeLDAPDN(newRdn), new ASN1Boolean(deleteOldRdn), (newParentdn != null) ? new RfcLDAPSuperDN(newParentdn) : null); message = new RfcLDAPMessage(operation, asn1Ctrls); // Garbage collect the readObject from readDSML().. readObject = null; } }
rreq.getDeleteOldRDN(), rreq.getParentDN(), controls );