org.apache.directory.shared.ldap.message.control.replication
Class SyncDoneValueControl

java.lang.Object
  extended by org.apache.directory.shared.ldap.message.control.InternalAbstractControl
      extended by org.apache.directory.shared.ldap.message.control.replication.SyncDoneValueControl
All Implemented Interfaces:
java.io.Serializable, javax.naming.ldap.Control, InternalControl

public class SyncDoneValueControl
extends InternalAbstractControl

An implementation of syncDoneValue Contol as described in rfc 4533. The structure of this control is: syncDoneValue ::= SEQUENCE { cookie syncCookie OPTIONAL, refreshDeletes BOOLEAN DEFAULT FALSE }

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

Field Summary
static java.lang.String CONTROL_OID
          This control OID
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
SyncDoneValueControl()
           
 
Method Summary
 byte[] getCookie()
           
 byte[] getEncodedValue()
          
 java.lang.String getID()
          Retrieves the object identifier assigned for the LDAP control.
 boolean isRefreshDeletes()
           
 void setCookie(byte[] cookie)
           
 void setRefreshDeletes(boolean refreshDeletes)
           
 
Methods inherited from class org.apache.directory.shared.ldap.message.control.InternalAbstractControl
isCritical, setCritical, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTROL_OID

public static final java.lang.String CONTROL_OID
This control OID

See Also:
Constant Field Values
Constructor Detail

SyncDoneValueControl

public SyncDoneValueControl()
Method Detail

getCookie

public byte[] getCookie()
Returns:
the cookie

setCookie

public void setCookie(byte[] cookie)
Parameters:
cookie - cookie to be set

isRefreshDeletes

public boolean isRefreshDeletes()
Returns:
true, if refreshDeletes flag is set, false otherwise

setRefreshDeletes

public void setRefreshDeletes(boolean refreshDeletes)
Parameters:
refreshDeletes - set the refreshDeletes flag

getID

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

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

getEncodedValue

public byte[] getEncodedValue()



Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.