public class RPCEvent extends java.lang.Object implements AtmosphereMessage<java.lang.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| Constructor and Description |
|---|
RPCEvent() |
RPCEvent(java.lang.String message) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asByte()
Serialize this object in the form of an byte[] array.
|
java.lang.String |
asString()
Serialize this object in the form of an
String. |
java.lang.String |
getMessage()
Return the message of type T
|
void |
setMessage(java.lang.String message)
Set the message of type T
|
AtmosphereMessage.TYPE |
type()
Return the
AtmosphereMessage.TYPE |
public AtmosphereMessage.TYPE type()
AtmosphereMessageAtmosphereMessage.TYPEtype in interface AtmosphereMessage<java.lang.String>public java.lang.String getMessage()
AtmosphereMessagegetMessage in interface AtmosphereMessage<java.lang.String>public void setMessage(java.lang.String message)
AtmosphereMessagesetMessage in interface AtmosphereMessage<java.lang.String>public java.lang.String asString()
AtmosphereMessageString.asString in interface AtmosphereMessage<java.lang.String>public byte[] asByte()
AtmosphereMessageasByte in interface AtmosphereMessage<java.lang.String>Copyright © 2020. All Rights Reserved.