Inheritance diagram for org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener:
Definition at line 42 of file EmptyOpenMSPSyncListener.java.
Public Member Functions | |
EmptyOpenMSPSyncListener () | |
void | initListener () throws OpenMSPException |
Call during listener registering. | |
void | endSync () throws OpenMSPException |
Fire this event once the current synchro is ended. | |
int | getSynchroStatus () |
Return the synchro status of the listener. | |
boolean | isSyncOK () |
return true if the synchronisation is OK for the listener. | |
void | notifySynchroFailure () |
The listener is called if the syncML command processing failed. | |
void | receiveMapCommand (ContainerMessage mapContainer) throws OpenMSPException |
Event sent when the sync manager receives MAP command openML messages from the server. | |
void | receiveResultCommand (ContainerMessage resultContainer, ContainerMessage initialCommand) throws OpenMSPException |
Event sent when the sync manager receives RESULT openML messages from the server. | |
void | receiveStatusCommand (Status statusCommande, ContainerMessage initialCommand) throws OpenMSPException |
Event sent when the sync manager receives STATUS openML messages from the server. | |
void | receiveSyncCommand (ContainerMessage syncContainer, long newSyncNumber) throws OpenMSPException |
Event sent when the sync manager receives Sync command openML messages from the server. | |
void | receiveGetCommand (Credential cred, ContainerMessage replaceContainer, long newSyncNumber) throws OpenMSPException |
Call when the server answer container contains a GET command. | |
void | sendData (Message message) throws OpenMSPException |
Event sent when the sync manager sends a openML message to the server The specified message is the message use to construct the synchro message This method fill the message with listener commande container. | |
void | startSync (Credential cred, SynchroDescriptor synchrodescriptor) throws OpenMSPException |
Fire this event once a synchro is starting. |
void org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.initListener | ( | ) | throws OpenMSPException |
Call during listener registering.
The init occurs before the synchronisation. If an exception is throws the listener is not registered.
ServiceException |
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 50 of file EmptyOpenMSPSyncListener.java.
int org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.getSynchroStatus | ( | ) |
Return the synchro status of the listener.
The return value is defined by the OpenMSP Status class.
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 62 of file EmptyOpenMSPSyncListener.java.
void org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.receiveMapCommand | ( | ContainerMessage | mapContainer | ) | throws OpenMSPException |
Event sent when the sync manager receives MAP command openML messages from the server.
ContainerMessage | container : container containing the message | |
long | newSessionID : the session id use for this synchro for this listener message. |
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 82 of file EmptyOpenMSPSyncListener.java.
void org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.receiveResultCommand | ( | ContainerMessage | resultContainer, | |
ContainerMessage | initialCommand | |||
) | throws OpenMSPException |
Event sent when the sync manager receives RESULT openML messages from the server.
Result | resultCommande : resultCommande containing the result of a command | |
long | newSessionID : the session id use for this synchro for this listener message. | |
ContainerMessage | : command sent that generate the status. |
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 88 of file EmptyOpenMSPSyncListener.java.
void org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.receiveStatusCommand | ( | Status | statusCommande, | |
ContainerMessage | initialCommand | |||
) | throws OpenMSPException |
Event sent when the sync manager receives STATUS openML messages from the server.
Status | statusCommande : resultCommande containing the Status of a command | |
long | newSessionID : the session id use for this synchro for this listener message. | |
ContainerMessage | : command sent that generate the status. |
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 94 of file EmptyOpenMSPSyncListener.java.
void org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.receiveSyncCommand | ( | ContainerMessage | syncContainer, | |
long | newSyncNumber | |||
) | throws OpenMSPException |
Event sent when the sync manager receives Sync command openML messages from the server.
ContainerMessage | container : container containing the message | |
long | newSessionID : the session id use for this synchro for this listener message. |
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 100 of file EmptyOpenMSPSyncListener.java.
void org.openmobileis.synchro.openmsp.client.EmptyOpenMSPSyncListener.receiveGetCommand | ( | Credential | cred, | |
ContainerMessage | replaceContainer, | |||
long | newSyncNumber | |||
) | throws OpenMSPException |
Call when the server answer container contains a GET command.
Extends this method to process GET command.
ContainerMessage | container : container containing the GET message | |
long | newSyncNumber : the synchro number use for this synchro for this listener message. | |
Credential | cred : the credential is any added in the GET command. |
Implements org.openmobileis.synchro.openmsp.client.OpenMSPSyncListener.
Definition at line 110 of file EmptyOpenMSPSyncListener.java.