org.atmosphere.gwt20.client
Interface AtmosphereMessage<T>

All Superinterfaces:
Serializable
All Known Implementing Classes:
RPCEvent

public interface AtmosphereMessage<T>
extends Serializable

Base class for GWT deserialized messages that will be broadcasted as String through the Atmosphere Framework own component like ManagedService

Author:
Jeanfrancois Arcand

Nested Class Summary
static class AtmosphereMessage.TYPE
           
 
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.
 T getMessage()
          Return the message of type T
 void setMessage(T message)
          Set the message of type T
 AtmosphereMessage.TYPE type()
          Return the AtmosphereMessage.TYPE
 

Method Detail

type

AtmosphereMessage.TYPE type()
Return the AtmosphereMessage.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

String asString()
Serialize this object in the form of an String.

Returns:

asByte

byte[] asByte()
Serialize this object in the form of an byte[] array.

Returns:


Copyright © 2015. All Rights Reserved.