Interface IntermediateOperationFactory
-
- All Known Implementing Classes:
SyncInfoValueFactory
public interface IntermediateOperationFactory
The 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 void
decodeValue(IntermediateResponse intermediateResponse, byte[] responseValue)
Decode the value part of the intermediate response operation.void
encodeValue(Asn1Buffer buffer, IntermediateResponse intermediateResponse)
Encode the value part of the intermediate response operation.String
getOid()
Gets the OID of the IntermediateResponse this factory generates.IntermediateResponse
newResponse()
Returns a newIntermediateResponse
with no value.IntermediateResponse
newResponse(byte[] value)
Returns a newIntermediateResponse
with 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 newIntermediateResponse
with no value.- Returns:
- the extended response type
-
newResponse
IntermediateResponse newResponse(byte[] value)
Returns a newIntermediateResponse
with 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
-
-