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

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

public class SyncInfoValueNewCookieControl
extends InternalAbstractControl
implements SyncInfoValueControl

This class implement the SyncInfoValue interface, and represent the first choice : newcookie. The structure for this control is : syncInfoValue ::= CHOICE { newcookie [0] syncCookie, ... }

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

Field Summary
 
Fields inherited from interface org.apache.directory.shared.ldap.message.control.replication.SyncInfoValueControl
CONTROL_OID
 
Fields inherited from interface javax.naming.ldap.Control
CRITICAL, NONCRITICAL
 
Constructor Summary
SyncInfoValueNewCookieControl()
           
 
Method Summary
 byte[] getCookie()
          
 byte[] getEncodedValue()
          
 java.lang.String getID()
          Retrieves the object identifier assigned for the LDAP control.
 void setCookie(byte[] newCookie)
          
 
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
 

Constructor Detail

SyncInfoValueNewCookieControl

public SyncInfoValueNewCookieControl()
Method Detail

getCookie

public byte[] getCookie()

Specified by:
getCookie in interface SyncInfoValueControl
Returns:
the cookie

setCookie

public void setCookie(byte[] newCookie)

Specified by:
setCookie in interface SyncInfoValueControl
Parameters:
newCookie - the cookie to set

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()

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


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