org.atmosphere.samples.server
Class JsonAtmosphereHandler

java.lang.Object
  extended by org.atmosphere.handler.AbstractReflectorAtmosphereHandler
      extended by org.atmosphere.samples.server.JsonAtmosphereHandler
All Implemented Interfaces:
org.atmosphere.cpr.AtmosphereHandler

public class JsonAtmosphereHandler
extends org.atmosphere.handler.AbstractReflectorAtmosphereHandler

This is a simple handler to show how to use JSON with the gwt-wrapper client

Author:
p.havelaar

Constructor Summary
JsonAtmosphereHandler()
           
 
Method Summary
 void destroy()
           
 void doGet(org.atmosphere.cpr.AtmosphereResource ar)
           
 void doPost(org.atmosphere.cpr.AtmosphereResource ar)
           
 void onRequest(org.atmosphere.cpr.AtmosphereResource ar)
           
 
Methods inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler
onStateChange, postStateChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonAtmosphereHandler

public JsonAtmosphereHandler()
Method Detail

onRequest

public void onRequest(org.atmosphere.cpr.AtmosphereResource ar)
               throws IOException
Throws:
IOException

doGet

public void doGet(org.atmosphere.cpr.AtmosphereResource ar)

doPost

public void doPost(org.atmosphere.cpr.AtmosphereResource ar)
            throws IOException
Throws:
IOException

destroy

public void destroy()
Specified by:
destroy in interface org.atmosphere.cpr.AtmosphereHandler
Overrides:
destroy in class org.atmosphere.handler.AbstractReflectorAtmosphereHandler


Copyright © 2013. All Rights Reserved.