com.google.appengine.api.channel
Class ChannelMessage
java.lang.Object
com.google.appengine.api.channel.ChannelMessage
public final class ChannelMessage
- extends java.lang.Object
Class that represents a channel message. ChannelMessages
can be
sent as outgoing messages or can be parsed as incoming messages by
ChannelService.parseMessage(HttpServletRequest)
.
Constructor Summary |
ChannelMessage(java.lang.String clientId,
java.lang.String message)
Constructor for a channel message. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChannelMessage
public ChannelMessage(java.lang.String clientId,
java.lang.String message)
- Constructor for a channel message.
- Parameters:
clientId
- identifies the client that will receive this message. The
client should be connected to the channel using a token created by
ChannelService.CreateChannel, using the same client id.message
- the message payload.
getClientId
public java.lang.String getClientId()
getMessage
public java.lang.String getMessage()