|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.push.OTAService
public class OTAService
This class implements a service to listen to OTA messages for push notification. The actions to respond to the notifications are deletegated to the PushNotificationListener that can be registered.
Field Summary | |
---|---|
static boolean |
firstSMS
|
static boolean |
smsHandling
|
static boolean |
startViaOTA
|
static boolean |
syncViaSMS
|
Constructor Summary | |
---|---|
OTAService(java.lang.String smsPort)
Creates a new instance of OTAMessagesListener |
|
OTAService(java.lang.String smsPort,
ThreadPool threadPool)
|
Method Summary | |
---|---|
void |
notifyIncomingMessage(MessageConnection messageConnection)
Callback Method invoked when an SMS is received on a specific port |
void |
run()
Fired in a separated thread by notifyIncomingMessage() when a binary SMS is received |
void |
setConnection(MessageConnection mc)
|
void |
setPushNotificationListener(OTANotificationListener pushListener)
|
void |
startService()
Starts the service. |
void |
stopService()
Stop the service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean smsHandling
public static boolean syncViaSMS
public static boolean startViaOTA
public static boolean firstSMS
Constructor Detail |
---|
public OTAService(java.lang.String smsPort)
public OTAService(java.lang.String smsPort, ThreadPool threadPool)
Method Detail |
---|
public void setPushNotificationListener(OTANotificationListener pushListener)
public void startService()
public void stopService()
public void setConnection(MessageConnection mc) throws java.io.IOException
java.io.IOException
public void notifyIncomingMessage(MessageConnection messageConnection)
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |