public class GcmSubscriber extends Object implements Subscriber<org.jivesoftware.smack.XMPPConnection>
Constructor and Description |
---|
GcmSubscriber(String id,
String googleRegistrationId,
org.jivesoftware.smack.XMPPConnection connection) |
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smack.XMPPConnection |
channel()
The channel that this subscriber uses to communicate.
|
String |
clientId()
The client identifier of this subscriber
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
patched(PatchMessage<?> patchMessage)
Is called when this subscribers underlying document has been patched, allowing
it to handle the
PatchMessage . |
protected void |
send(String jsonRequest) |
String |
toString() |
public String clientId()
Subscriber
clientId
in interface Subscriber<org.jivesoftware.smack.XMPPConnection>
String
the subscribers/clients identifierpublic org.jivesoftware.smack.XMPPConnection channel()
Subscriber
This can be anything that the subscriber supports, for example it could be object representing a connection, or a simple String representing the communication channel.
channel
in interface Subscriber<org.jivesoftware.smack.XMPPConnection>
T
the channel used to communicate.public void patched(PatchMessage<?> patchMessage)
Subscriber
PatchMessage
.patched
in interface Subscriber<org.jivesoftware.smack.XMPPConnection>
patchMessage
- the result of patching this subscribers underying document.protected void send(String jsonRequest) throws org.jivesoftware.smack.SmackException.NotConnectedException
org.jivesoftware.smack.SmackException.NotConnectedException
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.