|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.samples.chat.jersey.ResourceChat
public class ResourceChat
Simple chat resource demonstrating the power of Atmosphere. This resource supports transport like WebSocket, Streaming, JSONP and Long-Polling.
| Constructor Summary | |
|---|---|
ResourceChat()
|
|
| Method Summary | |
|---|---|
Response |
broadcast(Message message)
Broadcast the received message object to all suspended response. |
java.lang.String |
suspend()
Suspend the response without writing anything back to the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceChat()
| Method Detail |
|---|
@Suspend public java.lang.String suspend()
public Response broadcast(Message message)
message - a Message
Response
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||