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) |
protected byte[] value
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)
public 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–2014 The Apache Software Foundation. All rights reserved.