public class EndTransactionFactory extends AbstractExtendedOperationFactory
ExtendedOperationFactory
for creating EndTransaction extended request response
pairs.Constructor and Description |
---|
EndTransactionFactory(LdapApiService codec)
Creates a new instance of EndTransactionFactory.
|
Modifier and Type | Method and 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 new
ExtendedRequest with no value |
EndTransactionRequest |
newRequest(byte[] encodedValue)
Returns a new
ExtendedRequest with the following encoded value. |
EndTransactionResponse |
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value
|
EndTransactionResponse |
newResponse(byte[] encodedValue)
Creates a new ExtendedResponse, for the ExtendedRequest with a specific
encoded value.
|
getOid
public EndTransactionFactory(LdapApiService codec)
codec
- The codec for this factory.public EndTransactionRequest newRequest()
ExtendedRequest
with no valuepublic EndTransactionRequest newRequest(byte[] encodedValue) throws DecoderException
ExtendedRequest
with the following encoded value.newRequest
in interface ExtendedOperationFactory
newRequest
in class AbstractExtendedOperationFactory
encodedValue
- the encoded valueDecoderException
- If we can't decode the responsepublic EndTransactionResponse newResponse()
public EndTransactionResponse newResponse(byte[] encodedValue) throws DecoderException
newResponse
in interface ExtendedOperationFactory
newResponse
in class AbstractExtendedOperationFactory
encodedValue
- The encoded value for the ExtendedResponse instance.DecoderException
- If we can't decode the responsepublic void decodeValue(ExtendedRequest extendedRequest, byte[] requestValue) throws DecoderException
decodeValue
in interface ExtendedOperationFactory
decodeValue
in class AbstractExtendedOperationFactory
extendedRequest
- The ExtendedRequest Operation to feedrequestValue
- The request value to decodeDecoderException
- If the value cannot be decodedpublic void decodeValue(ExtendedResponse extendedResponse, byte[] requestValue) throws DecoderException
decodeValue
in interface ExtendedOperationFactory
decodeValue
in class AbstractExtendedOperationFactory
extendedResponse
- The ExtendedResponse Operation to feedrequestValue
- The response value to decodeDecoderException
- If the value cannot be decodedpublic void encodeValue(Asn1Buffer buffer, ExtendedRequest extendedRequest)
encodeValue
in interface ExtendedOperationFactory
encodeValue
in class AbstractExtendedOperationFactory
buffer
- The buffer into which to put the encoded valueextendedRequest
- The ExtendedRequest Operation to encodepublic void encodeValue(Asn1Buffer buffer, ExtendedResponse extendedResponse)
encodeValue
in interface ExtendedOperationFactory
encodeValue
in class AbstractExtendedOperationFactory
buffer
- The buffer into which to put the encoded valueextendedResponse
- The ExtendedResponse Operation to encodeCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.