Class EndTransactionFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.codec.api.AbstractExtendedOperationFactory
-
- org.apache.directory.api.ldap.extras.extended.ads_impl.endTransaction.EndTransactionFactory
-
- All Implemented Interfaces:
ExtendedOperationFactory
public class EndTransactionFactory extends AbstractExtendedOperationFactory
AnExtendedOperationFactory
for creating EndTransaction extended request response pairs.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description EndTransactionFactory(LdapApiService codec)
Creates a new instance of EndTransactionFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decodeValue(ExtendedRequest extendedRequest, byte[] requestValue)
Decode the value part of the extended request operation.void
decodeValue(ExtendedResponse extendedResponse, byte[] requestValue)
Decode the value part of the extended response operation.void
encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.void
encodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)
Encode the value part of the extended response operation.EndTransactionRequest
newRequest()
Returns a newExtendedRequest
with no valueEndTransactionRequest
newRequest(byte[] encodedValue)
Returns a newExtendedRequest
with the following encoded value.EndTransactionResponse
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no valueEndTransactionResponse
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
getOid
-
-
-
-
Constructor Detail
-
EndTransactionFactory
public EndTransactionFactory(LdapApiService codec)
Creates a new instance of EndTransactionFactory.- Parameters:
codec
- The codec for this factory.
-
-
Method Detail
-
newRequest
public EndTransactionRequest newRequest()
Returns a newExtendedRequest
with no value- Returns:
- the decorator for the extended request type
-
newRequest
public EndTransactionRequest newRequest(byte[] encodedValue) throws DecoderException
Returns a newExtendedRequest
with the following encoded value.- Specified by:
newRequest
in interfaceExtendedOperationFactory
- Overrides:
newRequest
in classAbstractExtendedOperationFactory
- Parameters:
encodedValue
- the encoded value- Returns:
- the decorator for the extended request type
- Throws:
DecoderException
- If we can't decode the response
-
newResponse
public EndTransactionResponse newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value- Returns:
- The new ExtendedResponse.
-
newResponse
public EndTransactionResponse newResponse(byte[] encodedValue) throws DecoderException
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.
- Throws:
DecoderException
- If we can't decode the response
-
decodeValue
public void decodeValue(ExtendedRequest extendedRequest, byte[] requestValue) throws DecoderException
Decode the value part of the extended request operation.- Specified by:
decodeValue
in interfaceExtendedOperationFactory
- Overrides:
decodeValue
in classAbstractExtendedOperationFactory
- Parameters:
extendedRequest
- The ExtendedRequest Operation to feedrequestValue
- The request value to decode- Throws:
DecoderException
- If the value cannot be decoded
-
decodeValue
public void decodeValue(ExtendedResponse extendedResponse, byte[] requestValue) throws DecoderException
Decode the value part of the extended response operation.- Specified by:
decodeValue
in interfaceExtendedOperationFactory
- Overrides:
decodeValue
in classAbstractExtendedOperationFactory
- Parameters:
extendedResponse
- The ExtendedResponse Operation to feedrequestValue
- The response value to decode- Throws:
DecoderException
- If the value cannot be decoded
-
encodeValue
public void encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.- Specified by:
encodeValue
in interfaceExtendedOperationFactory
- Overrides:
encodeValue
in classAbstractExtendedOperationFactory
- Parameters:
buffer
- The buffer into which to put the encoded valueextendedRequest
- The ExtendedRequest Operation to encode
-
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
-
-