Interface IntermediateOperationFactory
-
- All Known Implementing Classes:
SyncInfoValueFactory
public interface IntermediateOperationFactoryThe factory interface, defined by the codec API, for creating new Intermediate responses.- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecodeValue(IntermediateResponse intermediateResponse, byte[] responseValue)Decode the value part of the intermediate response operation.voidencodeValue(Asn1Buffer buffer, IntermediateResponse intermediateResponse)Encode the value part of the intermediate response operation.StringgetOid()Gets the OID of the IntermediateResponse this factory generates.IntermediateResponsenewResponse()Returns a newIntermediateResponsewith no value.IntermediateResponsenewResponse(byte[] value)Returns a newIntermediateResponsewith the following encoded value.
-
-
-
Method Detail
-
getOid
String getOid()
Gets the OID of the IntermediateResponse this factory generates.- Returns:
- the extended request OID
-
newResponse
IntermediateResponse newResponse()
Returns a newIntermediateResponsewith no value.- Returns:
- the extended response type
-
newResponse
IntermediateResponse newResponse(byte[] value)
Returns a newIntermediateResponsewith the following encoded value.- Parameters:
value- the encoded value- Returns:
- the extended response type
-
encodeValue
void encodeValue(Asn1Buffer buffer, IntermediateResponse intermediateResponse)
Encode the value part of the intermediate response operation.- Parameters:
buffer- The buffer into which to put the encoded valueintermediateResponse- The IntermediateResponse Operation to encode
-
decodeValue
void decodeValue(IntermediateResponse intermediateResponse, byte[] responseValue) throws DecoderException
Decode the value part of the intermediate response operation.- Parameters:
intermediateResponse- The IntermediateResponse Operation to feedresponseValue- The response value to decode- Throws:
DecoderException- If the value cannot be decoded
-
-