org.atmosphere.samples.chat.jersey
Class Jersey2Resource
java.lang.Object
org.atmosphere.samples.chat.jersey.Jersey2Resource
@Path(value="/")
public class Jersey2Resource
- extends Object
Extremely simple chat application supporting WebSocket, Server Side-Events, Long-Polling and Streaming.
- Author:
- Jeanfrancois Arcand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jersey2Resource
public Jersey2Resource()
configureAtmosphereResource
@GET
public void configureAtmosphereResource()
broadcast
@POST
public void broadcast(String message)
- Echo the chat message. Jackson can clearly be used here, but for simplicity we just echo what we receive.
- Parameters:
message -
Copyright © 2015. All Rights Reserved.