public class LdifControl extends java.lang.Object implements Control, java.io.Externalizable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
criticality
The criticality (default value is false)
|
private java.lang.String |
oid
The control type
|
protected byte[] |
value
Optional control value
|
| Constructor and Description |
|---|
LdifControl()
Create a new Control
|
LdifControl(java.lang.String oid)
Create a new Control
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getOid() |
byte[] |
getValue() |
int |
hashCode() |
boolean |
hasValue() |
boolean |
isCritical()
Tells if the control is critical or not.
|
void |
readExternal(java.io.ObjectInput in) |
void |
setCritical(boolean criticality)
Sets the critical flag which determines whether or not this control is
critical for the correct operation of a request or response message.
|
void |
setValue(byte[] value) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
private java.lang.String oid
private boolean criticality
protected byte[] value
public LdifControl()
public LdifControl(java.lang.String oid)
oid - OID of the created controlpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getOid()
public boolean isCritical()
isCritical in interface Controltrue if the control is critical, false otherwisepublic void setCritical(boolean criticality)
setCritical in interface Controlcriticality - true if the control is critical false otherwise.public byte[] getValue()
public void setValue(byte[] value)
public boolean hasValue()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(Object)