org.atmosphere.gwt.client.extra
Class AtmosphereProxy

java.lang.Object
  extended by org.atmosphere.gwt.client.extra.AtmosphereProxy
All Implemented Interfaces:
UserInterface

public class AtmosphereProxy
extends Object
implements UserInterface

Author:
p.havelaar

Constructor Summary
AtmosphereProxy(String url, AtmosphereGWTSerializer serializer, AtmosphereListener clientListener)
           
 
Method Summary
 void broadcast(List<?> messages)
           
 void broadcast(Object message)
           
protected  AtmosphereProxyEvent deserialize(String data)
           
protected  void dispatchEvent(AtmosphereProxyEvent event)
           
protected  void dispatchEvent(Window target, AtmosphereProxyEvent event)
           
protected  void dispatchRawEvent(String event)
           
protected  void dispatchRawEvent(Window target, String event)
           
protected  AtmosphereProxyEvent event(AtmosphereProxyEvent.EventType type)
           
protected  void initialize()
           
 void localBroadcast(List<?> messages)
           
 void localBroadcast(Object message)
           
protected  void onEvent(Window source, AtmosphereProxyEvent event, String rawEvent)
           
protected  void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)
           
 void post(List<?> messages)
           
 void post(List<?> messages, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
 void post(Object message)
           
 void post(Object message, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
           
protected  String serialize(AtmosphereProxyEvent event)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmosphereProxy

public AtmosphereProxy(String url,
                       AtmosphereGWTSerializer serializer,
                       AtmosphereListener clientListener)
Method Detail

start

public void start()
Specified by:
start in interface UserInterface

stop

public void stop()
Specified by:
stop in interface UserInterface

post

public void post(Object message)
Specified by:
post in interface UserInterface

post

public void post(List<?> messages)
Specified by:
post in interface UserInterface

post

public void post(Object message,
                 com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Specified by:
post in interface UserInterface

post

public void post(List<?> messages,
                 com.google.gwt.user.client.rpc.AsyncCallback<Void> callback)
Specified by:
post in interface UserInterface

broadcast

public void broadcast(Object message)
Specified by:
broadcast in interface UserInterface

broadcast

public void broadcast(List<?> messages)
Specified by:
broadcast in interface UserInterface

localBroadcast

public void localBroadcast(Object message)

localBroadcast

public void localBroadcast(List<?> messages)

initialize

protected void initialize()

onWindowClosing

protected void onWindowClosing(com.google.gwt.user.client.Window.ClosingEvent event)

onEvent

protected void onEvent(Window source,
                       AtmosphereProxyEvent event,
                       String rawEvent)

event

protected AtmosphereProxyEvent event(AtmosphereProxyEvent.EventType type)

dispatchEvent

protected void dispatchEvent(Window target,
                             AtmosphereProxyEvent event)

dispatchEvent

protected void dispatchEvent(AtmosphereProxyEvent event)

dispatchRawEvent

protected void dispatchRawEvent(Window target,
                                String event)

dispatchRawEvent

protected void dispatchRawEvent(String event)

serialize

protected String serialize(AtmosphereProxyEvent event)

deserialize

protected AtmosphereProxyEvent deserialize(String data)


Copyright © 2013. All Rights Reserved.