Class SyncStateValueFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory
-
- All Implemented Interfaces:
ControlFactory<SyncStateValue>
public class SyncStateValueFactory extends Object implements ControlFactory<SyncStateValue>
AControlFactory
which createsSyncStateValue
controls.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SyncStateValueFactory(LdapApiService codec)
Creates a new instance of SyncStateValueFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getOid()
CodecControl<SyncStateValue>
newCodecControl()
Creates and returns a decorated version of the Control.CodecControl<SyncStateValue>
newCodecControl(SyncStateValue control)
Decorates an existing control.
-
-
-
Constructor Detail
-
SyncStateValueFactory
public SyncStateValueFactory(LdapApiService codec)
Creates a new instance of SyncStateValueFactory.- Parameters:
codec
- The codec for this factory.
-
-
Method Detail
-
getOid
public String getOid()
- Specified by:
getOid
in interfaceControlFactory<SyncStateValue>
- Returns:
- The OID of the Control this factory creates.
-
newCodecControl
public CodecControl<SyncStateValue> newCodecControl()
Creates and returns a decorated version of the Control.- Specified by:
newCodecControl
in interfaceControlFactory<SyncStateValue>
- Returns:
- The
CodecControl
decorated version of the Control.
-
newCodecControl
public CodecControl<SyncStateValue> 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 interfaceControlFactory<SyncStateValue>
- Parameters:
control
- TheControl
to be decorated.- Returns:
- The decorator wrapping the Control.
-
-