org.atmosphere.gwt20.client.managed
Class RPCEvent

java.lang.Object
  extended by org.atmosphere.gwt20.client.managed.RPCEvent
All Implemented Interfaces:
Serializable, AtmosphereMessage<String>

public class RPCEvent
extends Object
implements AtmosphereMessage<String>

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.

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.

Author:
Jeanfrancois Arcand
See Also:
Serialized Form

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

RPCEvent

public RPCEvent()

RPCEvent

public RPCEvent(String message)
Method Detail

type

public AtmosphereMessage.TYPE type()
Description copied from interface: AtmosphereMessage
Return the AtmosphereMessage.TYPE

Specified by:
type in interface AtmosphereMessage<String>
Returns:

getMessage

public String getMessage()
Description copied from interface: AtmosphereMessage
Return the message of type T

Specified by:
getMessage in interface AtmosphereMessage<String>
Returns:

setMessage

public void setMessage(String message)
Description copied from interface: AtmosphereMessage
Set the message of type T

Specified by:
setMessage in interface AtmosphereMessage<String>

asString

public String asString()
Description copied from interface: AtmosphereMessage
Serialize this object in the form of an String.

Specified by:
asString in interface AtmosphereMessage<String>
Returns:

asByte

public byte[] asByte()
Description copied from interface: AtmosphereMessage
Serialize this object in the form of an byte[] array.

Specified by:
asByte in interface AtmosphereMessage<String>
Returns:


Copyright © 2014. All Rights Reserved.