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.intgetType()Retrieves protocol operation type.voidSets 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:
getTypein interfaceJDAPProtocolOp- Returns:
- protcol type
-
setBaseDN
Sets the base dn component.- Specified by:
setBaseDNin classJDAPBaseDNRequest- Parameters:
basedn- base dn
-
getBaseDN
Gets the base dn component.- Specified by:
getBaseDNin classJDAPBaseDNRequest- Returns:
- base dn
-
getBERElement
Gets the ber representation of add request.- Specified by:
getBERElementin 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:
toStringin interfaceJDAPProtocolOp- Overrides:
toStringin classObject- Returns:
- string representation of add request
-