netscape.ldap.client.opers
Class JDAPModifyRequest

java.lang.Object
  extended by netscape.ldap.client.opers.JDAPBaseDNRequest
      extended by netscape.ldap.client.opers.JDAPModifyRequest
All Implemented Interfaces:
JDAPProtocolOp

public class JDAPModifyRequest
extends JDAPBaseDNRequest
implements JDAPProtocolOp

This class implements the modify request.

   ModifyRequest ::= [APPLICATION 6] SEQUENCE {
     object LDAPDN,
     modification SEQUENCE OF SEQUENCE {
       operation ENUMERATED {
         add (0),
         delete (1),
         replace (2)
       },
       modification SEQUENCE {
         type AttributeType,
         values SET OF AttributeValue
       }
     }
   }
 

Version:
1.0

Field Summary
protected  java.lang.String m_dn
          Internal variables
protected  LDAPModification[] m_mod
           
 
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
JDAPModifyRequest(java.lang.String dn, LDAPModification[] mod)
          Constructs the modify request
 
Method Summary
 java.lang.String getBaseDN()
          Gets the base dn component.
 BERElement getBERElement()
          Gets the ber representation of modify request.
 int getType()
          Retrieves protocol operation type.
 void setBaseDN(java.lang.String basedn)
          Sets the base dn component.
 java.lang.String toString()
          Retrieves string representation of modify request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_dn

protected java.lang.String m_dn
Internal variables


m_mod

protected LDAPModification[] m_mod
Constructor Detail

JDAPModifyRequest

public JDAPModifyRequest(java.lang.String dn,
                         LDAPModification[] mod)
Constructs the modify request

Parameters:
dn - distinguished name of modifying
mod - list of modifications
Method Detail

getType

public int getType()
Retrieves protocol operation type.

Specified by:
getType in interface JDAPProtocolOp
Returns:
protocol type

setBaseDN

public void setBaseDN(java.lang.String basedn)
Sets the base dn component.

Specified by:
setBaseDN in class JDAPBaseDNRequest
Parameters:
basedn - base dn

getBaseDN

public java.lang.String getBaseDN()
Gets the base dn component.

Specified by:
getBaseDN in class JDAPBaseDNRequest
Returns:
base dn

getBERElement

public BERElement getBERElement()
Gets the ber representation of modify request.

Specified by:
getBERElement in interface JDAPProtocolOp
Returns:
ber representation of modify request

toString

public java.lang.String toString()
Retrieves string representation of modify request.

Specified by:
toString in interface JDAPProtocolOp
Overrides:
toString in class java.lang.Object
Returns:
string representation of request