Class AbstractControl
java.lang.Object
org.apache.directory.api.ldap.model.message.controls.AbstractControl
- All Implemented Interfaces:
Control
- Direct Known Subclasses:
CascadeImpl, EntryChangeImpl, ManageDsaITImpl, OpaqueControl, PagedResultsImpl, PersistentSearchImpl, ProxiedAuthzImpl, SortRequestImpl, SortResponseImpl, SubentriesImpl
A simple implementation of the
Control 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
ConstructorsConstructorDescriptionAbstractControl(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
Modifier and TypeMethodDescriptionbooleangetOid()Get the OIDinthashCode()booleanGet the criticalityvoidsetCritical(boolean criticality) Set the criticalitytoString()Return a String representing a Control
-
Constructor Details
-
AbstractControl
Creates a Control with a specific OID.- Parameters:
oid- The OID of this Control.
-
AbstractControl
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 Details
-
getOid
-
isCritical
public boolean isCritical()Get the criticality- Specified by:
isCriticalin interfaceControl- Returns:
trueif the criticality flag is true.
-
setCritical
public void setCritical(boolean criticality) Set the criticality- Specified by:
setCriticalin interfaceControl- Parameters:
criticality- The criticality value
-
hashCode
-
equals
-
toString
-