org.apache.directory.shared.ldap.extras.controls.syncrepl_impl
Class SyncStateValueFactory

java.lang.Object
  extended by org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory
All Implemented Interfaces:
ControlFactory<SyncStateValue,SyncStateValueDecorator>

public class SyncStateValueFactory
extends Object
implements ControlFactory<SyncStateValue,SyncStateValueDecorator>

A ControlFactory which creates SyncStateValue controls.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
SyncStateValueFactory(LdapCodecService codec)
          Creates a new instance of SyncStateValueFactory.
 
Method Summary
 String getOid()
          
 SyncStateValueDecorator newCodecControl()
          Creates and returns a decorated version of the Control.
 SyncStateValueDecorator newCodecControl(SyncStateValue control)
          Decorates an existing control.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncStateValueFactory

public SyncStateValueFactory(LdapCodecService codec)
Creates a new instance of SyncStateValueFactory.

Parameters:
codec - The codec for this factory.
Method Detail

getOid

public String getOid()

Specified by:
getOid in interface ControlFactory<SyncStateValue,SyncStateValueDecorator>
Returns:
The OID of the Control this factory creates.

newCodecControl

public SyncStateValueDecorator newCodecControl()
Creates and returns a decorated version of the Control.

Specified by:
newCodecControl in interface ControlFactory<SyncStateValue,SyncStateValueDecorator>
Returns:
The CodecControl decorated version of the Control.

newCodecControl

public SyncStateValueDecorator newCodecControl(SyncStateValue control)
Decorates an existing control. Implementors should check to make sure the supplied Control has not already been decorated to prevent needless decorator nesting.

Specified by:
newCodecControl in interface ControlFactory<SyncStateValue,SyncStateValueDecorator>
Parameters:
control - The Control to be decorated.
Returns:
The decorator wrapping the Control.


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