org.atmosphere.samples.chat.jersey
Class Jersey2Resource

java.lang.Object
  extended by 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

Constructor Summary
Jersey2Resource()
           
 
Method Summary
 void broadcast(String message)
          Echo the chat message.
 void configureAtmosphereResource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jersey2Resource

public Jersey2Resource()
Method Detail

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.