Class StartTransactionFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.startTransaction.StartTransactionFactory
-
- All Implemented Interfaces:
ExtendedOperationFactory
public class StartTransactionFactory extends AbstractExtendedOperationFactory
AnExtendedOperationFactory
for creating StartTransaction extended request response pairs.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description StartTransactionFactory(LdapApiService codec)
Creates a new instance of StartTransactionFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)
Encode the value part of the extended response operation.StartTransactionRequest
newRequest()
Returns a newExtendedRequest
with no valueStartTransactionResponse
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no valueStartTransactionResponse
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.-
Methods inherited from class org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
decodeValue, decodeValue, encodeValue, getOid, newRequest
-
-
-
-
Constructor Detail
-
StartTransactionFactory
public StartTransactionFactory(LdapApiService codec)
Creates a new instance of StartTransactionFactory.- Parameters:
codec
- The codec for this factory.
-
-
Method Detail
-
newRequest
public StartTransactionRequest newRequest()
Returns a newExtendedRequest
with no value- Returns:
- the decorator for the extended request type
-
newResponse
public StartTransactionResponse newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value- Returns:
- The new ExtendedResponse.
-
newResponse
public StartTransactionResponse newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific encoded value.- Specified by:
newResponse
in interfaceExtendedOperationFactory
- Overrides:
newResponse
in classAbstractExtendedOperationFactory
- Parameters:
encodedValue
- The encoded value for the ExtendedResponse instance.- Returns:
- The new ExtendedResponse.
-
encodeValue
public void encodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)
Encode the value part of the extended response operation.- Specified by:
encodeValue
in interfaceExtendedOperationFactory
- Overrides:
encodeValue
in classAbstractExtendedOperationFactory
- Parameters:
buffer
- The buffer into which to put the encoded valueextendedResponse
- The ExtendedResponse Operation to encode
-
-