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