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
AIntermediateOperationFactory
which createsSyncInfoValue
instances.- 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 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.SyncInfoValue
newResponse()
Returns a newIntermediateResponse
with no value.SyncInfoValue
newResponse(byte[] responseValue)
Returns a newIntermediateResponse
with the following encoded value.
-
-
-
Constructor Detail
-
SyncInfoValueFactory
public SyncInfoValueFactory()
Creates a new instance of SyncInfoValueFactory.
-
-
Method Detail
-
getOid
public String getOid()
Gets the OID of the IntermediateResponse this factory generates.- Specified by:
getOid
in interfaceIntermediateOperationFactory
- Returns:
- the extended request OID
-
newResponse
public SyncInfoValue newResponse()
Returns a newIntermediateResponse
with no value.- Specified by:
newResponse
in interfaceIntermediateOperationFactory
- Returns:
- the extended response type
-
newResponse
public SyncInfoValue newResponse(byte[] responseValue)
Returns a newIntermediateResponse
with the following encoded value.- Specified by:
newResponse
in interfaceIntermediateOperationFactory
- Parameters:
responseValue
- the encoded value- Returns:
- the extended response type
-
encodeValue
public void encodeValue(Asn1Buffer buffer, IntermediateResponse intermediateResponse)
Description copied from interface:IntermediateOperationFactory
Encode the value part of the intermediate response operation.- Specified by:
encodeValue
in 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:
decodeValue
in interfaceIntermediateOperationFactory
- Parameters:
intermediateResponse
- The IntermediateResponse Operation to feedresponseValue
- The response value to decode- Throws:
DecoderException
- If the value cannot be decoded
-
-