Class SyncInfoValueFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.extras.intermediate.syncrepl_impl.SyncInfoValueFactory
-
- All Implemented Interfaces:
IntermediateResponseFactory
public class SyncInfoValueFactory extends Object implements IntermediateResponseFactory
AIntermediateResponseFactory
which createsSyncInfoValue
instances.- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SyncInfoValueFactory(LdapApiService codec)
Creates a new instance of SyncInfoValueFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyncInfoValueDecorator
decorate(IntermediateResponse decoratedMessage)
Decorates an IntermediateResponse which may or may not be of the expected type.String
getOid()
Gets the OID of the IntermediateResponse this factory generates.SyncInfoValue
newDecorator()
SyncInfoValue
newDecorator(SyncInfoValue syncInfoValue)
SyncInfoValue
newResponse(byte[] encodedValue)
Returns a newIntermediateResponse
with the following encoded value.
-
-
-
Constructor Detail
-
SyncInfoValueFactory
public SyncInfoValueFactory(LdapApiService codec)
Creates a new instance of SyncInfoValueFactory.- Parameters:
codec
- The codec for this factory.
-
-
Method Detail
-
getOid
public String getOid()
Gets the OID of the IntermediateResponse this factory generates.- Specified by:
getOid
in interfaceIntermediateResponseFactory
- Returns:
- the extended request OID
-
newDecorator
public SyncInfoValue newDecorator()
-
newDecorator
public SyncInfoValue newDecorator(SyncInfoValue syncInfoValue)
-
newResponse
public SyncInfoValue newResponse(byte[] encodedValue)
Returns a newIntermediateResponse
with the following encoded value.- Specified by:
newResponse
in interfaceIntermediateResponseFactory
- Parameters:
encodedValue
- the encoded value- Returns:
- the decorator for the extended response type
-
decorate
public SyncInfoValueDecorator decorate(IntermediateResponse decoratedMessage)
Decorates an IntermediateResponse which may or may not be of the expected type. The factory implementor must check and handle appropriately.- Specified by:
decorate
in interfaceIntermediateResponseFactory
- Parameters:
decoratedMessage
- the message to be decorated.- Returns:
- The decorated message
-
-