Class AbstractControl
- java.lang.Object
-
- org.apache.directory.api.ldap.model.message.controls.AbstractControl
-
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
AdDirSyncRequestImpl
,AdDirSyncResponseImpl
,AdPolicyHintsImpl
,AdShowDeletedImpl
,CascadeImpl
,ChangeNotificationsImpl
,EntryChangeImpl
,ManageDsaITImpl
,OpaqueControl
,PagedResultsImpl
,PasswordPolicyRequestImpl
,PasswordPolicyResponseImpl
,PermissiveModifyImpl
,PersistentSearchImpl
,ProxiedAuthzImpl
,SortRequestImpl
,SortResponseImpl
,SubentriesImpl
,SyncDoneValueImpl
,SyncRequestValueImpl
,SyncStateValueImpl
,TransactionSpecificationImpl
,VirtualListViewRequestImpl
,VirtualListViewResponseImpl
public abstract class AbstractControl extends Object implements Control
A simple implementation of theControl
interface with storage for the OID and the criticality properties. When the codec factory service does not have specific control factories available, hence the control is unrecognized, it creates instances of this control for them.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AbstractControl(String oid)
Creates a Control with a specific OID.AbstractControl(String oid, boolean criticality)
Creates a Control with a specific OID, and criticality set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getOid()
Get the OIDint
hashCode()
boolean
isCritical()
Get the criticalityvoid
setCritical(boolean criticality)
Set the criticalityString
toString()
Return a String representing a Control
-
-
-
Constructor Detail
-
AbstractControl
public AbstractControl(String oid)
Creates a Control with a specific OID.- Parameters:
oid
- The OID of this Control.
-
AbstractControl
public AbstractControl(String oid, boolean criticality)
Creates a Control with a specific OID, and criticality set.- Parameters:
oid
- The OID of this Control.criticality
- true if this Control is critical, false otherwise.
-
-
Method Detail
-
isCritical
public boolean isCritical()
Get the criticality- Specified by:
isCritical
in interfaceControl
- Returns:
true
if the criticality flag is true.
-
setCritical
public void setCritical(boolean criticality)
Set the criticality- Specified by:
setCritical
in interfaceControl
- Parameters:
criticality
- The criticality value
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObject
- See Also:
Object.equals(Object)
-
-