org.atmosphere.gwt20.managed
Class AtmosphereMessageFilterEncoder
java.lang.Object
org.atmosphere.gwt20.managed.AtmosphereMessageFilterEncoder
- All Implemented Interfaces:
- org.atmosphere.cpr.BroadcastFilter
public class AtmosphereMessageFilterEncoder
- extends Object
- implements org.atmosphere.cpr.BroadcastFilter
Wrap a message into an AtmosphereMessage
- Author:
- Jeanfrancois Arcand
| Nested classes/interfaces inherited from interface org.atmosphere.cpr.BroadcastFilter |
org.atmosphere.cpr.BroadcastFilter.BroadcastAction |
| Fields inherited from interface org.atmosphere.cpr.BroadcastFilter |
VOID_ATMOSPHERE_RESOURCE_UUID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtmosphereMessageFilterEncoder
public AtmosphereMessageFilterEncoder()
filter
public org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter(String broadcasterId,
Object originalMessage,
Object message)
- Wrap message inside our
RPCEvent
- Specified by:
filter in interface org.atmosphere.cpr.BroadcastFilter
- Parameters:
originalMessage - the String messagemessage - the String message
- Returns:
- an RPCEvent instance.
classToEncode
public AtmosphereMessageFilterEncoder classToEncode(Class<? extends AtmosphereMessage<?>> messageClazz)
Copyright © 2014. All Rights Reserved.