org.apache.directory.shared.ldap.message.control
Class InternalAbstractControl

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.control.InternalAbstractControl
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.Control, InternalControl
Direct Known Subclasses:
CascadeControl, EntryChangeControl, ManageDsaITControl, PagedSearchControl, PersistentSearchControl, SubentriesControl, SyncDoneValueControl, SyncInfoValueNewCookieControl, SyncInfoValueRefreshDeleteControl, SyncInfoValueRefreshPresentControl, SyncInfoValueSyncIdSetControl, SyncRequestValueControl, SyncStateValueControl

public abstract class InternalAbstractControl
extends java.lang.Object
implements InternalControl

Control implementation.

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

Field Summary
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
InternalAbstractControl()
           
 
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 critical 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

InternalAbstractControl

public InternalAbstractControl()
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 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:
setCritical in interface InternalControl
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 InternalControl
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 © 2004-2009 The Apache Software Foundation. All Rights Reserved.