Package netscape.ldap.client.opers
Class JDAPAddRequest
java.lang.Object
netscape.ldap.client.opers.JDAPBaseDNRequest
netscape.ldap.client.opers.JDAPAddRequest
- All Implemented Interfaces:
JDAPProtocolOp
This class implements the add request. This object
is sent to the ldap server. See RFC 1777.
AddRequest ::= [APPLICATION 8] SEQUENCE { entry LDAPDN, attrs SEQUENCE OF SEQUENCE { type AttributeType, values SET OF AttributeValue } }
- Version:
- 1.0
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionGets the base dn component.Gets the ber representation of add request.Retrieves the string representation of add request parameters.int
getType()
Retrieves protocol operation type.void
Sets the base dn component.toString()
Retrieves the string representation of add request.
-
Field Details
-
m_dn
Internal variables -
m_attrs
-
-
Constructor Details
-
JDAPAddRequest
Constructs add request.- Parameters:
dn
- distinguished name of adding entryattrs
- list of attribute associated with entry
-
-
Method Details
-
getType
public int getType()Retrieves protocol operation type.- Specified by:
getType
in interfaceJDAPProtocolOp
- Returns:
- protcol type
-
setBaseDN
Sets the base dn component.- Specified by:
setBaseDN
in classJDAPBaseDNRequest
- Parameters:
basedn
- base dn
-
getBaseDN
Gets the base dn component.- Specified by:
getBaseDN
in classJDAPBaseDNRequest
- Returns:
- base dn
-
getBERElement
Gets the ber representation of add request.- Specified by:
getBERElement
in interfaceJDAPProtocolOp
- Returns:
- ber representation of request
-
getParamString
Retrieves the string representation of add request parameters.- Returns:
- string representation of add request parameters
-
toString
Retrieves the string representation of add request.- Specified by:
toString
in interfaceJDAPProtocolOp
- Overrides:
toString
in classObject
- Returns:
- string representation of add request
-