Class SyncInfoFactory
- java.lang.Object
-
- org.apache.directory.api.ldap.extras.intermediate.syncrepl_impl.SyncInfoFactory
-
- All Implemented Interfaces:
IntermediateResponseFactory
public class SyncInfoFactory extends Object implements IntermediateResponseFactory
A factory to create a SyncInfoValue intermediate response- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description SyncInfoFactory(LdapApiService codec)
Creates an instance of SyncInfoFactory
-
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.IntermediateResponse
newResponse(byte[] encodedValue)
Returns a newIntermediateResponse
with the following encoded value.
-
-
-
Constructor Detail
-
SyncInfoFactory
public SyncInfoFactory(LdapApiService codec)
Creates an instance of SyncInfoFactory- Parameters:
codec
- TheLdapApiService
instance
-
-
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
-
newResponse
public IntermediateResponse 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
-
-