public class LdifControl extends Object implements Control, Externalizable
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) |
public LdifControl()
public LdifControl(String oid)
oid
- OID of the created controlpublic boolean isCritical()
isCritical
in interface Control
true
if the control is critical, false
otherwisepublic void setCritical(boolean criticality)
setCritical
in interface Control
criticality
- 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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object o)
equals
in class Object
Object.equals(Object)
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.