Package netscape.ldap.client.opers
Class JDAPModifyRequest
- java.lang.Object
-
- netscape.ldap.client.opers.JDAPBaseDNRequest
-
- 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
Fields Modifier and Type Field Description protected java.lang.Stringm_dnInternal variablesprotected 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
Constructors Constructor Description JDAPModifyRequest(java.lang.String dn, LDAPModification[] mod)Constructs the modify 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 modify request.intgetType()Retrieves protocol operation type.voidsetBaseDN(java.lang.String basedn)Sets the base dn component.java.lang.StringtoString()Retrieves string representation of modify request.
-
-
-
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 modifyingmod- list of modifications
-
-
Method Detail
-
getType
public int getType()
Retrieves protocol operation type.- Specified by:
getTypein interfaceJDAPProtocolOp- Returns:
- protocol type
-
setBaseDN
public void setBaseDN(java.lang.String basedn)
Sets the base dn component.- 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 modify request.- Specified by:
getBERElementin interfaceJDAPProtocolOp- Returns:
- ber representation of modify request
-
toString
public java.lang.String toString()
Retrieves string representation of modify request.- Specified by:
toStringin interfaceJDAPProtocolOp- Overrides:
toStringin classjava.lang.Object- Returns:
- string representation of request
-
-