public class RPCEvent extends Object implements AtmosphereMessage<String>
RPCSerializer. This class is normally used with
the org.atmosphere.gwt20.managed.AtmosphereMessageInterceptor to allow GWT and non GWT
application to interact using a org.atmosphere.cpr.Broadcaster.
The asString() or asByte() are used to serialize the object so Atmosphere's component
can react on the deserialize GWT object as a normal request's body, without the GWT protocol.
AtmosphereMessage.TYPE| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByte()
Serialize this object in the form of an byte[] array.
|
String |
asString()
Serialize this object in the form of an
String. |
String |
getMessage()
Return the message of type T
|
void |
setMessage(String message)
Set the message of type T
|
AtmosphereMessage.TYPE |
type()
Return the
AtmosphereMessage.TYPE |
public RPCEvent()
public RPCEvent(String message)
public AtmosphereMessage.TYPE type()
AtmosphereMessageAtmosphereMessage.TYPEtype in interface AtmosphereMessage<String>public String getMessage()
AtmosphereMessagegetMessage in interface AtmosphereMessage<String>public void setMessage(String message)
AtmosphereMessagesetMessage in interface AtmosphereMessage<String>public String asString()
AtmosphereMessageString.asString in interface AtmosphereMessage<String>public byte[] asByte()
AtmosphereMessageasByte in interface AtmosphereMessage<String>Copyright © 2014. All Rights Reserved.