com.funambol.syncml.protocol
Interface SyncFilter


public interface SyncFilter

The interface SyncFilter is used by the SyncManager to apply a filter defined for a SyncSource to the outgoing request.

An implementation of SyncSource can contain an implementation of SyncFilter, that must be able to provide a SyncML 1.2 filter when the method toString() is called.


Method Summary
 java.lang.String toSyncML()
          Format the Filter in SyncML syntax, according to the parameter contained in the SyncFilter implementation.
 java.lang.String toSyncML(int maxSize)
          Format the Filter in SyncML syntax.
 

Method Detail

toSyncML

java.lang.String toSyncML()
Format the Filter in SyncML syntax, according to the parameter contained in the SyncFilter implementation.

Returns:
the SyncML filter to add to the Alert command.

toSyncML

java.lang.String toSyncML(int maxSize)
Format the Filter in SyncML syntax. This is done according to the parameter contained in the SyncFilter implementation, but with a size limit forced by the sync engine. This limit is usually maxMsgSize or MaxObjSize.

Returns:
the SyncML filter to add to the Alert command.


Copyright © 2001-2009 Funambol.