Class ChatRoomAction

java.lang.Object
org.apache.struts2.ActionSupport
org.apache.struts2.showcase.async.ChatRoomAction
All Implemented Interfaces:
Serializable, Action, ValidationAware, LocaleProvider, TextProvider, Validateable

public class ChatRoomAction extends ActionSupport
Example to illustrate the async plugin.
See Also:
  • Constructor Details

    • ChatRoomAction

      public ChatRoomAction()
  • Method Details

    • setMessage

      public void setMessage(String message)
    • setLastIndex

      public void setLastIndex(Integer lastIndex)
    • getNewMessages

      public List<String> getNewMessages()
    • receiveNewMessages

      public Callable<String> receiveNewMessages() throws Exception
      Throws:
      Exception
    • sendMessage

      public String sendMessage()