org.ldaptive.control
Class AbstractControl

java.lang.Object
  extended by org.ldaptive.control.AbstractControl
All Implemented Interfaces:
Control
Direct Known Subclasses:
AuthorizationIdentityRequestControl, AuthorizationIdentityResponseControl, DirSyncControl, EntryChangeNotificationControl, ExtendedDnControl, ForceUpdateControl, GetStatsControl, LazyCommitControl, ManageDsaITControl, NotificationControl, PagedResultsControl, PasswordExpiredControl, PasswordExpiringControl, PasswordPolicyControl, PermissiveModifyControl, PersistentSearchRequestControl, ProxyAuthorizationControl, RangeRetrievalNoerrControl, SearchOptionsControl, ShowDeactivatedLinkControl, ShowDeletedControl, ShowRecycledControl, SortRequestControl, SortResponseControl, SyncDoneControl, SyncRequestControl, SyncStateControl, VerifyNameControl, VirtualListViewRequestControl, VirtualListViewResponseControl

public abstract class AbstractControl
extends Object
implements Control

Base class for ldap controls.

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

Field Summary
protected  org.slf4j.Logger logger
          Logger for this class.
 
Constructor Summary
AbstractControl(String id)
          Creates a new abstract control.
AbstractControl(String id, boolean b)
          Creates a new abstract control.
 
Method Summary
 boolean equals(Object o)
          
 boolean getCriticality()
          Returns whether the control is critical.
 String getOID()
          Returns the OID for this control.
abstract  int hashCode()
          Returns the hash code for this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.slf4j.Logger logger
Logger for this class.

Constructor Detail

AbstractControl

public AbstractControl(String id)
Creates a new abstract control.

Parameters:
id - OID of this control

AbstractControl

public AbstractControl(String id,
                       boolean b)
Creates a new abstract control.

Parameters:
id - OID of this control
b - whether this control is critical
Method Detail

getOID

public String getOID()
Returns the OID for this control.

Specified by:
getOID in interface Control
Returns:
oid

getCriticality

public boolean getCriticality()
Returns whether the control is critical.

Specified by:
getCriticality in interface Control
Returns:
whether the control is critical

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public abstract int hashCode()
Returns the hash code for this object.

Overrides:
hashCode in class Object
Returns:
hash code


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