|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.gwt20.client.managed.RPCEvent
public class RPCEvent
This class is used during serialization by the 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.
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.atmosphere.gwt20.client.AtmosphereMessage |
|---|
AtmosphereMessage.TYPE |
| Constructor Summary | |
|---|---|
RPCEvent()
|
|
RPCEvent(String message)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RPCEvent()
public RPCEvent(String message)
| Method Detail |
|---|
public AtmosphereMessage.TYPE type()
AtmosphereMessageAtmosphereMessage.TYPE
type in interface AtmosphereMessage<String>public String getMessage()
AtmosphereMessage
getMessage in interface AtmosphereMessage<String>public void setMessage(String message)
AtmosphereMessage
setMessage in interface AtmosphereMessage<String>public String asString()
AtmosphereMessageString.
asString in interface AtmosphereMessage<String>public byte[] asByte()
AtmosphereMessage
asByte in interface AtmosphereMessage<String>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||