Class SyncInfoValueFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.extras.intermediate.syncrepl_impl.SyncInfoValueFactory
-
- All Implemented Interfaces:
IntermediateOperationFactory
public class SyncInfoValueFactory extends Object implements IntermediateOperationFactory
AIntermediateOperationFactorywhich createsSyncInfoValueinstances.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SyncInfoValueFactory()Creates a new instance of SyncInfoValueFactory.
-
Method Summary
All Methods Instance Methods Concrete 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.SyncInfoValuenewResponse()Returns a newIntermediateResponsewith no value.SyncInfoValuenewResponse(byte[] responseValue)Returns a newIntermediateResponsewith the following encoded value.
-
-
-
Method Detail
-
getOid
public String getOid()
Gets the OID of the IntermediateResponse this factory generates.- Specified by:
getOidin interfaceIntermediateOperationFactory- Returns:
- the extended request OID
-
newResponse
public SyncInfoValue newResponse()
Returns a newIntermediateResponsewith no value.- Specified by:
newResponsein interfaceIntermediateOperationFactory- Returns:
- the extended response type
-
newResponse
public SyncInfoValue newResponse(byte[] responseValue)
Returns a newIntermediateResponsewith the following encoded value.- Specified by:
newResponsein interfaceIntermediateOperationFactory- Parameters:
responseValue- the encoded value- Returns:
- the extended response type
-
encodeValue
public void encodeValue(Asn1Buffer buffer, IntermediateResponse intermediateResponse)
Description copied from interface:IntermediateOperationFactoryEncode the value part of the intermediate response operation.- Specified by:
encodeValuein interfaceIntermediateOperationFactory- Parameters:
buffer- The buffer into which to put the encoded valueintermediateResponse- The IntermediateResponse Operation to encode
-
decodeValue
public void decodeValue(IntermediateResponse intermediateResponse, byte[] responseValue) throws DecoderException
Decode the value part of the intermediate response operation.- Specified by:
decodeValuein interfaceIntermediateOperationFactory- Parameters:
intermediateResponse- The IntermediateResponse Operation to feedresponseValue- The response value to decode- Throws:
DecoderException- If the value cannot be decoded
-
-