org.apache.directory.shared.ldap.message
Class AbstractMutableControlImpl

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.AbstractMutableControlImpl
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.Control, MutableControl
Direct Known Subclasses:
CascadeControl, EntryChangeControl, ManageDsaITControl, PersistentSearchControl, SubentriesControl

public abstract class AbstractMutableControlImpl
extends java.lang.Object
implements MutableControl

Control implementation.

Version:
$Rev: 691847 $
Author:
Apache Directory Project
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
AbstractMutableControlImpl()
           
 
Method Summary
 java.lang.String getID()
          Retrieves the object identifier assigned for the LDAP control.
 boolean isCritical()
          Determines whether or not this control is critical for the correct operation of a request or response message.
 void setCritical(boolean isCritical)
          Sets the criticil flag which determines whether or not this control is critical for the correct operation of a request or response message.
 void setID(java.lang.String oid)
          Sets the OID of the Control to identify the control type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.naming.ldap.Control
getEncodedValue
 

Constructor Detail

AbstractMutableControlImpl

public AbstractMutableControlImpl()
Method Detail

isCritical

public boolean isCritical()
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:
isCritical in interface javax.naming.ldap.Control
Returns:
true if the control is critical false otherwise.

setCritical

public void setCritical(boolean isCritical)
Sets the criticil 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:
setCritical in interface MutableControl
Parameters:
isCritical - true if the control is critical false otherwise.

setID

public void setID(java.lang.String oid)
Sets the OID of the Control to identify the control type.

Specified by:
setID in interface MutableControl
Parameters:
oid - the OID of this Control.

getID

public java.lang.String getID()
Retrieves the object identifier assigned for the LDAP control.

Specified by:
getID in interface javax.naming.ldap.Control
Returns:
The non-null object identifier string.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.