Class LdifControl
java.lang.Object
org.apache.directory.api.ldap.model.ldif.LdifControl
- All Implemented Interfaces:
Externalizable, Serializable, Control
The LdifControl class stores a control defined for an entry found in a LDIF
file.
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetOid()Get the control's OIDbyte[]getValue()Get back the control valueinthashCode()booleanhasValue()booleanTells if the control is critical or not.voidvoidsetCritical(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.voidsetValue(byte[] value) Store the control valuetoString()void
-
Field Details
-
value
protected byte[] valueOptional control value
-
-
Constructor Details
-
LdifControl
public LdifControl()Create a new Control -
LdifControl
-
-
Method Details
-
toString
-
getOid
-
isCritical
public boolean isCritical()Tells if the control is critical or not.- Specified by:
isCriticalin interfaceControl- Returns:
trueif the control is critical,falseotherwise
-
setCritical
public 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. The default for this value should be false.- Specified by:
setCriticalin interfaceControl- Parameters:
criticality- true if the control is critical false otherwise.
-
getValue
public byte[] getValue()Get back the control value- Returns:
- The control's value
-
setValue
public void setValue(byte[] value) Store the control value- Parameters:
value- The value to store
-
hasValue
public boolean hasValue()- Returns:
trueif the control has a value
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
hashCode
-
equals
-