Package org.atmosphere.gwt20.client
Interface AtmosphereMessage<T>
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
RPCEvent
public interface AtmosphereMessage<T> extends java.io.SerializableBase class for GWT deserialized messages that will be broadcasted as String through the Atmosphere Framework own component likeManagedService- Author:
- Jeanfrancois Arcand
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAtmosphereMessage.TYPE
-
Method Summary
All Methods Instance Methods Abstract 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.TgetMessage()Return the message of type TvoidsetMessage(T message)Set the message of type TAtmosphereMessage.TYPEtype()Return theAtmosphereMessage.TYPE
-
-
-
Method Detail
-
type
AtmosphereMessage.TYPE type()
Return theAtmosphereMessage.TYPE- Returns:
-
getMessage
T getMessage()
Return the message of type T- Returns:
-
setMessage
void setMessage(T message)
Set the message of type T- Parameters:
message-
-
asString
java.lang.String asString()
Serialize this object in the form of anString.- Returns:
-
asByte
byte[] asByte()
Serialize this object in the form of an byte[] array.- Returns:
-
-