public class StoredProcedureFactory extends AbstractExtendedOperationFactory
ExtendedOperationFactory
for creating cancel extended request response
pairs.Constructor and Description |
---|
StoredProcedureFactory(LdapApiService codec)
Creates a new instance of StoredProcedureFactory.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeValue(ExtendedRequest extendedRequest,
byte[] requestValue)
Decode the value part of the extended request operation.
|
void |
encodeValue(Asn1Buffer buffer,
ExtendedRequest extendedRequest)
Encode the value part of the extended request operation.
|
StoredProcedureRequest |
newRequest()
Returns a new
ExtendedRequest with no value |
StoredProcedureRequest |
newRequest(byte[] value)
Returns a new
ExtendedRequest with the following encoded value. |
StoredProcedureResponse |
newResponse()
Creates a new ExtendedResponse, for the ExtendedRequest with no value
|
decodeValue, encodeValue, getOid, newResponse
public StoredProcedureFactory(LdapApiService codec)
codec
- The LDAP Service to usepublic StoredProcedureRequest newRequest()
ExtendedRequest
with no valuepublic StoredProcedureRequest newRequest(byte[] value) throws DecoderException
ExtendedRequest
with the following encoded value.newRequest
in interface ExtendedOperationFactory
newRequest
in class AbstractExtendedOperationFactory
value
- the encoded valueDecoderException
- If we can't decode the responsepublic StoredProcedureResponse newResponse()
public 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 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 encodeCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.