Class RPCEvent
- java.lang.Object
-
- org.atmosphere.gwt20.client.managed.RPCEvent
-
- All Implemented Interfaces:
java.io.Serializable,AtmosphereMessage<java.lang.String>
public class RPCEvent extends java.lang.Object implements AtmosphereMessage<java.lang.String>
This class is used during serialization by theRPCSerializer. This class is normally used with theorg.atmosphere.gwt20.managed.AtmosphereMessageInterceptorto allow GWT and non GWT application to interact using aorg.atmosphere.cpr.Broadcaster. TheasString()orasByte()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.- Author:
- Jeanfrancois Arcand
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.atmosphere.gwt20.client.AtmosphereMessage
AtmosphereMessage.TYPE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]asByte()Serialize this object in the form of an byte[] array.java.lang.StringasString()Serialize this object in the form of anString.java.lang.StringgetMessage()Return the message of type TvoidsetMessage(java.lang.String message)Set the message of type TAtmosphereMessage.TYPEtype()Return theAtmosphereMessage.TYPE
-
-
-
Method Detail
-
type
public AtmosphereMessage.TYPE type()
Description copied from interface:AtmosphereMessageReturn theAtmosphereMessage.TYPE- Specified by:
typein interfaceAtmosphereMessage<java.lang.String>- Returns:
-
getMessage
public java.lang.String getMessage()
Description copied from interface:AtmosphereMessageReturn the message of type T- Specified by:
getMessagein interfaceAtmosphereMessage<java.lang.String>- Returns:
-
setMessage
public void setMessage(java.lang.String message)
Description copied from interface:AtmosphereMessageSet the message of type T- Specified by:
setMessagein interfaceAtmosphereMessage<java.lang.String>
-
asString
public java.lang.String asString()
Description copied from interface:AtmosphereMessageSerialize this object in the form of anString.- Specified by:
asStringin interfaceAtmosphereMessage<java.lang.String>- Returns:
-
asByte
public byte[] asByte()
Description copied from interface:AtmosphereMessageSerialize this object in the form of an byte[] array.- Specified by:
asBytein interfaceAtmosphereMessage<java.lang.String>- Returns:
-
-