|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.message.controls.AbstractControl
public abstract class AbstractControl
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.
| Constructor Summary | |
|---|---|
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 | |
|---|---|
boolean |
equals(Object o)
|
String |
getOid()
Get the OID |
int |
hashCode()
|
boolean |
isCritical()
Get the criticality |
void |
setCritical(boolean criticality)
Set the criticality |
String |
toString()
Return a String representing a Control |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractControl(String oid)
oid - The OID of this Control.
public AbstractControl(String oid,
boolean criticality)
oid - The OID of this Control.criticality - true if this Control is critical, false otherwise.| Method Detail |
|---|
public String getOid()
getOid in interface Controlpublic boolean isCritical()
isCritical in interface Controltrue if the criticality flag is true.public void setCritical(boolean criticality)
setCritical in interface Controlcriticality - The criticality valuepublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(Object)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||