Class AbstractControl

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

public abstract class AbstractControl extends Object implements Control
Base class for ldap controls.
  • Field Details

    • logger

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

      private final String oid
      control oid.
    • criticality

      private final boolean criticality
      is control critical.
  • Constructor Details

    • 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 Details

    • getOID

      public String getOID()
      Description copied from interface: Control
      Returns the OID for this control.
      Specified by:
      getOID in interface Control
      Returns:
      oid
    • getCriticality

      public boolean getCriticality()
      Description copied from interface: Control
      Returns whether the control is critical.
      Specified by:
      getCriticality in interface Control
      Returns:
      whether the control is critical
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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