org.apache.directory.shared.ldap.ldif
Class LdifControl

java.lang.Object
  extended by org.apache.directory.shared.ldap.ldif.LdifControl
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.Control

public class LdifControl
extends java.lang.Object
implements javax.naming.ldap.Control

The LdifControl class stores a control defined for an entry found in a ldif file.

Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
LdifControl(OID oid)
          Create a new Control
 
Method Summary
 byte[] getEncodedValue()
          Returns the BER encoded value of the control
 java.lang.String getID()
          Return the control's OID as a String
 boolean isCritical()
          Returns the criticality of the current control
 void setCriticality(boolean criticality)
          Set the criticality
 void setOid(OID oid)
          Set the control's OID
 void setValue(byte[] value)
          Set the BER encoded value of the control
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LdifControl

public LdifControl(OID oid)
Create a new Control

Parameters:
oid - OID of the created control
Method Detail

isCritical

public boolean isCritical()
Returns the criticality of the current control

Specified by:
isCritical in interface javax.naming.ldap.Control

setCriticality

public void setCriticality(boolean criticality)
Set the criticality

Parameters:
criticality - True or false.

getID

public java.lang.String getID()
Return the control's OID as a String

Specified by:
getID in interface javax.naming.ldap.Control

setOid

public void setOid(OID oid)
Set the control's OID

Parameters:
oid - The control's OID

getEncodedValue

public byte[] getEncodedValue()
Returns the BER encoded value of the control

Specified by:
getEncodedValue in interface javax.naming.ldap.Control

setValue

public void setValue(byte[] value)
Set the BER encoded value of the control

Parameters:
value - BER encodec value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2012. All Rights Reserved.