public class JDAPAddRequest extends JDAPBaseDNRequest implements JDAPProtocolOp
AddRequest ::= [APPLICATION 8] SEQUENCE {
entry LDAPDN,
attrs SEQUENCE OF SEQUENCE {
type AttributeType,
values SET OF AttributeValue
}
}
| Modifier and Type | Field and Description |
|---|---|
protected LDAPAttribute[] |
m_attrs |
protected java.lang.String |
m_dn
Internal variables
|
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 and Description |
|---|
JDAPAddRequest(java.lang.String dn,
LDAPAttribute[] attrs)
Constructs add request.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBaseDN()
Gets the base dn component.
|
BERElement |
getBERElement()
Gets the ber representation of add request.
|
java.lang.String |
getParamString()
Retrieves the string representation of add request parameters.
|
int |
getType()
Retrieves protocol operation type.
|
void |
setBaseDN(java.lang.String basedn)
Sets the base dn component.
|
java.lang.String |
toString()
Retrieves the string representation of add request.
|
protected java.lang.String m_dn
protected LDAPAttribute[] m_attrs
public JDAPAddRequest(java.lang.String dn,
LDAPAttribute[] attrs)
dn - distinguished name of adding entryattrs - list of attribute associated with entrypublic int getType()
getType in interface JDAPProtocolOppublic void setBaseDN(java.lang.String basedn)
setBaseDN in class JDAPBaseDNRequestbasedn - base dnpublic java.lang.String getBaseDN()
getBaseDN in class JDAPBaseDNRequestpublic BERElement getBERElement()
getBERElement in interface JDAPProtocolOppublic java.lang.String getParamString()
public java.lang.String toString()
toString in interface JDAPProtocolOptoString in class java.lang.Object