|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.protocol.wesahmi.Subscriber
| Nested Class Summary | |
static interface |
Subscriber.MessageListener
|
| Constructor Summary | |
Subscriber(java.lang.String sipAddress)
|
|
Subscriber(java.lang.String sipAddress,
Subscriber.MessageListener listener)
|
|
| Method Summary | |
Notification |
checkForNotifications()
Checks if there is a notification waiting. |
int |
registerToService(java.lang.String service,
java.lang.String url)
Registers to the local notification client daemon. |
boolean |
sendSubscriptionRefresh(int subscriptionId,
java.lang.String body)
Sends data given by caller to notification server. |
boolean |
startService()
Starts the subscriber service. |
void |
stopService()
Stops the subscriber service |
boolean |
unregisterFromService(int id)
Unregisters from the local notification client daemon. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Subscriber(java.lang.String sipAddress)
sipAddress - SIP-address used for subscriptions
public Subscriber(java.lang.String sipAddress,
Subscriber.MessageListener listener)
sipAddress - SIP-address used for subscriptions| Method Detail |
public boolean startService()
true if service was started.public void stopService()
public int registerToService(java.lang.String service,
java.lang.String url)
throws java.io.IOException
service - service name that subscriber is interestedurl - url of the service that subscriber is interested
(optional)
java.io.IOException
public boolean unregisterFromService(int id)
throws java.io.IOException
id - id of the service
true if unregistration succeeded.
java.io.IOException
public Notification checkForNotifications()
throws java.io.IOException
true if there was a notification.
java.io.IOException
public boolean sendSubscriptionRefresh(int subscriptionId,
java.lang.String body)
throws java.io.IOException
body - Data which caller wants to send to notification server
true if the query was sent to server.
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||