netscape.ldap.client.opers

Class JDAPModifyRDNRequest

Implemented Interfaces:
JDAPProtocolOp

public class JDAPModifyRDNRequest
extends JDAPBaseDNRequest
implements JDAPProtocolOp

This class implements the modify rdn request. This object is sent to the ldap server.
 ModifyRDNRequest ::= [APPLICATION 12] SEQUENCE {
   entry LDAPDN,
   newrdn RelativeLDAPDN,
   deleteoldrdn BOOLEAN
 }
 
Note that LDAPv3 rename this object to JDAPModifyDNRequest and has the following defintion:
 ModifyDNRequest ::= [APPLICATION 12] SEQUENCE {
   entry LDAPDN,
   newrdn RelativeLDAPDN,
   deleteoldrdn BOOLEAN,
   newSuperior [0] LDAPDN OPTIONAL
 }
 
Version:
1.0

Field Summary

protected boolean
m_delete_old_dn
protected String
m_new_rdn
protected String
m_new_superior
protected String
m_old_dn
Internal variables

Fields inherited from interface netscape.ldap.client.opers.JDAPProtocolOp

ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST

Constructor Summary

JDAPModifyRDNRequest(String old_dn, String new_rdn, boolean delete_old_dn)
Constructs modify RDN request.
JDAPModifyRDNRequest(String old_dn, String new_rdn, boolean delete_old_dn, String new_superior)
Constructs modify DN request.

Method Summary

BERElement
getBERElement()
Gets the ber representation of the request.
String
getBaseDN()
Gets the base dn component.
int
getType()
Retrieves the protocol operation type.
void
setBaseDN(String basedn)
Sets the base dn.
String
toString()
Gets the string representation of the request.

Methods inherited from class netscape.ldap.client.opers.JDAPBaseDNRequest

getBaseDN, setBaseDN

Field Details

m_delete_old_dn

protected boolean m_delete_old_dn

m_new_rdn

protected String m_new_rdn

m_new_superior

protected String m_new_superior

m_old_dn

protected String m_old_dn
Internal variables

Constructor Details

JDAPModifyRDNRequest

public JDAPModifyRDNRequest(String old_dn,
                            String new_rdn,
                            boolean delete_old_dn)
Constructs modify RDN request.
Parameters:
old_dn - old distinguished name
new_rdn - new distinguished name
delete_old_dn - delete the old distinguished name

JDAPModifyRDNRequest

public JDAPModifyRDNRequest(String old_dn,
                            String new_rdn,
                            boolean delete_old_dn,
                            String new_superior)
Constructs modify DN request.
Parameters:
old_dn - old distinguished name
new_rdn - new distinguished name
delete_old_dn - delete the old distinguished name
new_superior - parent dn

Method Details

getBERElement

public BERElement getBERElement()
Gets the ber representation of the request.
Specified by:
getBERElement in interface JDAPProtocolOp
Returns:
ber representation

getBaseDN

public String getBaseDN()
Gets the base dn component.
Overrides:
getBaseDN in interface JDAPBaseDNRequest
Returns:
base dn

getType

public int getType()
Retrieves the protocol operation type.
Specified by:
getType in interface JDAPProtocolOp
Returns:
protocol type

setBaseDN

public void setBaseDN(String basedn)
Sets the base dn.
Overrides:
setBaseDN in interface JDAPBaseDNRequest
Parameters:
basedn - base dn

toString

public String toString()
Gets the string representation of the request.
Specified by:
toString in interface JDAPProtocolOp
Returns:
string representation