public class LdifControl extends Object implements Control, Externalizable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
criticality
The criticality (default value is false)
|
private String |
oid
The control type
|
protected byte[] |
value
Optional control value
|
| Constructor and Description |
|---|
LdifControl()
Create a new Control
|
LdifControl(String oid)
Create a new Control
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getOid() |
byte[] |
getValue()
Get back the control value
|
int |
hashCode() |
boolean |
hasValue() |
boolean |
isCritical()
Tells if the control is critical or not.
|
void |
readExternal(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)
Store the control value
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
private String oid
private boolean criticality
protected byte[] value
public LdifControl()
public LdifControl(String oid)
oid - OID of the created controlpublic 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)
value - The value to storepublic boolean hasValue()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object o)
equals in class ObjectObject.equals(Object)Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.