public class SimplePushClient extends Object
| Constructor and Description |
|---|
SimplePushClient(String simplePushServerURL) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMessageListener(MessageListener listener) |
void |
close()
Close the communication
|
void |
connect()
Create a connection with the Simple Push Server.
|
String |
getChannelId(int index)
Get the channel id by index.
|
net.wessendorf.websocket.SimpleWebSocketClient |
getWebsocketClient() |
void |
register(RegistrationListener registrationListener)
Register to a new channel for notification by the simple push server
|
void |
unregister(String channelId)
Remove the registered channel
|
public SimplePushClient(String simplePushServerURL)
public void connect()
public String getChannelId(int index)
index - the index of the registered channelpublic void register(RegistrationListener registrationListener)
registrationListener - called when the registration is completepublic void unregister(String channelId)
channelId - the previously registered channel idpublic void close()
public void addMessageListener(MessageListener listener)
public net.wessendorf.websocket.SimpleWebSocketClient getWebsocketClient()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.