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
AnExtendedOperationFactoryfor creating StartTransaction extended request response pairs.- Author:
- Apache Directory Project
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
codec, LOG, oid
-
-
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 voidencodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)Encode the value part of the extended response operation.StartTransactionRequestnewRequest()Returns a newExtendedRequestwith no valueStartTransactionResponsenewResponse()Creates a new ExtendedResponse, for the ExtendedRequest with no valueStartTransactionResponsenewResponse(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 newExtendedRequestwith 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:
newResponsein interfaceExtendedOperationFactory- Overrides:
newResponsein 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:
encodeValuein interfaceExtendedOperationFactory- Overrides:
encodeValuein classAbstractExtendedOperationFactory- Parameters:
buffer- The buffer into which to put the encoded valueextendedResponse- The ExtendedResponse Operation to encode
-
-