org.atmosphere.samples.server
Class JsonAtmosphereHandler
java.lang.Object
org.atmosphere.handler.AbstractReflectorAtmosphereHandler
org.atmosphere.samples.server.JsonAtmosphereHandler
- All Implemented Interfaces:
- org.atmosphere.cpr.AtmosphereHandler, org.atmosphere.cpr.AtmosphereServletProcessor
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
| Nested classes/interfaces inherited from class org.atmosphere.handler.AbstractReflectorAtmosphereHandler |
org.atmosphere.handler.AbstractReflectorAtmosphereHandler.Default |
|
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 |
init, onStateChange, postStateChange, useTwoStepWrite, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonAtmosphereHandler
public JsonAtmosphereHandler()
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 © 2015. All Rights Reserved.