org.ldaptive
Class CompareRequest

java.lang.Object
  extended by org.ldaptive.AbstractRequest
      extended by org.ldaptive.CompareRequest
All Implemented Interfaces:
Message<RequestControl>, Request

public class CompareRequest
extends AbstractRequest

Contains the data required to perform an ldap compare operation.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Constructor Summary
CompareRequest()
          Default constructor.
CompareRequest(String dn, LdapAttribute attr)
          Creates a new compare request.
 
Method Summary
 LdapAttribute getAttribute()
          Returns the attribute containing the value to compare.
 String getDn()
          Returns the DN to compare.
 void setAttribute(LdapAttribute attr)
          Sets the attribute to compare.
 void setDn(String dn)
          Sets the DN to compare.
 String toString()
          
 
Methods inherited from class org.ldaptive.AbstractRequest
getControls, getFollowReferrals, getIntermediateResponseHandlers, setControls, setFollowReferrals, setIntermediateResponseHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompareRequest

public CompareRequest()
Default constructor.


CompareRequest

public CompareRequest(String dn,
                      LdapAttribute attr)
Creates a new compare request.

Parameters:
dn - containing the attribute to compare
attr - attribute to compare
Method Detail

getDn

public String getDn()
Returns the DN to compare.

Returns:
DN

setDn

public void setDn(String dn)
Sets the DN to compare.

Parameters:
dn - to compare

getAttribute

public LdapAttribute getAttribute()
Returns the attribute containing the value to compare. If this attribute contains multiple values, only the first value as return by the underlying collection is used.

Returns:
attribute to compare

setAttribute

public void setAttribute(LdapAttribute attr)
Sets the attribute to compare.

Parameters:
attr - attribute to compare

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.