public class LdifControl extends Object implements Control, Externalizable
| Modifier and Type | Field and Description |
|---|---|
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() |
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) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
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)
public 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–2016 The Apache Software Foundation. All rights reserved.