Package netscape.ldap.client.opers
Class JDAPModifyRDNRequest
- java.lang.Object
-
- netscape.ldap.client.opers.JDAPBaseDNRequest
-
- netscape.ldap.client.opers.JDAPModifyRDNRequest
-
- All 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
Fields Modifier and Type Field Description protected booleanm_delete_old_dnprotected java.lang.Stringm_new_rdnprotected java.lang.Stringm_new_superiorprotected java.lang.Stringm_old_dnInternal 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
Constructors Constructor Description JDAPModifyRDNRequest(java.lang.String old_dn, java.lang.String new_rdn, boolean delete_old_dn)Constructs modify RDN request.JDAPModifyRDNRequest(java.lang.String old_dn, java.lang.String new_rdn, boolean delete_old_dn, java.lang.String new_superior)Constructs modify DN request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseDN()Gets the base dn component.BERElementgetBERElement()Gets the ber representation of the request.intgetType()Retrieves the protocol operation type.voidsetBaseDN(java.lang.String basedn)Sets the base dn.java.lang.StringtoString()Gets the string representation of the request.
-
-
-
Constructor Detail
-
JDAPModifyRDNRequest
public JDAPModifyRDNRequest(java.lang.String old_dn, java.lang.String new_rdn, boolean delete_old_dn)Constructs modify RDN request.- Parameters:
old_dn- old distinguished namenew_rdn- new distinguished namedelete_old_dn- delete the old distinguished name
-
JDAPModifyRDNRequest
public JDAPModifyRDNRequest(java.lang.String old_dn, java.lang.String new_rdn, boolean delete_old_dn, java.lang.String new_superior)Constructs modify DN request.- Parameters:
old_dn- old distinguished namenew_rdn- new distinguished namedelete_old_dn- delete the old distinguished namenew_superior- parent dn
-
-
Method Detail
-
getType
public int getType()
Retrieves the protocol operation type.- Specified by:
getTypein interfaceJDAPProtocolOp- Returns:
- protocol type
-
setBaseDN
public void setBaseDN(java.lang.String basedn)
Sets the base dn.- Specified by:
setBaseDNin classJDAPBaseDNRequest- Parameters:
basedn- base dn
-
getBaseDN
public java.lang.String getBaseDN()
Gets the base dn component.- Specified by:
getBaseDNin classJDAPBaseDNRequest- Returns:
- base dn
-
getBERElement
public BERElement getBERElement()
Gets the ber representation of the request.- Specified by:
getBERElementin interfaceJDAPProtocolOp- Returns:
- ber representation
-
toString
public java.lang.String toString()
Gets the string representation of the request.- Specified by:
toStringin interfaceJDAPProtocolOp- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation
-
-