netscape.ldap.client.opers

Class JDAPCompareRequest

Implemented Interfaces:
JDAPProtocolOp

public class JDAPCompareRequest
extends JDAPBaseDNRequest
implements JDAPProtocolOp

This class implements the compare request. This object is sent to the ldap server.
   CompareRequest ::= [APPLICATION 14] SEQUENCE {
     entry LDAPDN,
     ava AttributeValueAssertion
   }
 
Version:
1.0

Field Summary

protected JDAPAVA
m_ava
protected String
m_dn
Internal variables

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

JDAPCompareRequest(String dn, JDAPAVA ava)
Constructs the compare request.

Method Summary

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

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

getBaseDN, setBaseDN

Field Details

m_ava

protected JDAPAVA m_ava

m_dn

protected String m_dn
Internal variables

Constructor Details

JDAPCompareRequest

public JDAPCompareRequest(String dn,
                          JDAPAVA ava)
Constructs the compare request.
Parameters:
dn - distinguished name of the entry to be compared
ava - attribut value assertion

Method Details

getBERElement

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

getBaseDN

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

getType

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

setBaseDN

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

toString

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