org.atmosphere.samples.di.guice
Class MessageResource

java.lang.Object
  extended by org.atmosphere.samples.di.guice.MessageResource

public class MessageResource
extends Object

Since:
0.7
Author:
Mathieu Carbou

Constructor Summary
MessageResource()
           
 
Method Summary
 org.atmosphere.jersey.Broadcastable listen(String topic)
           
 org.atmosphere.jersey.Broadcastable publish(String topic, String from, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageResource

public MessageResource()
Method Detail

listen

@Suspend(outputComments=true,
         resumeOnBroadcast=false,
         listeners=EventsLogger.class)
public org.atmosphere.jersey.Broadcastable listen(String topic)
                                           throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException

publish

public org.atmosphere.jersey.Broadcastable publish(String topic,
                                                   String from,
                                                   String message)
                                            throws org.codehaus.jettison.json.JSONException
Throws:
org.codehaus.jettison.json.JSONException


Copyright © 2014. All Rights Reserved.