netscape.ldap.client.opers

Class JDAPModifyRequest

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 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(String dn, mod[] )
Constructs the modify request

Method Summary

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

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

getBaseDN, setBaseDN

Field Details

m_dn

protected String m_dn
Internal variables

m_mod

protected LDAPModification[] m_mod

Constructor Details

JDAPModifyRequest

public JDAPModifyRequest(String dn,
                         mod[] )
Constructs the modify request
Parameters:
dn - distinguished name of modifying

Method Details

getBERElement

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

getBaseDN

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

getType

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

setBaseDN

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

toString

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