Class ChatLoginAction

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

public class ChatLoginAction extends ActionSupport implements SessionAware
See Also:
  • Constructor Details

    • ChatLoginAction

      public ChatLoginAction(ChatService chatService)
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • execute

      public String execute() throws Exception
      Description copied from class: ActionSupport
      A default implementation that does nothing an returns "success".

      Subclasses should override this method to provide their business logic.

      See also Action.execute().

      Specified by:
      execute in interface Action
      Overrides:
      execute in class ActionSupport
      Returns:
      returns Action.SUCCESS
      Throws:
      Exception - can be thrown by subclasses.
    • withSession

      public void withSession(Map<String,Object> session)
      Description copied from interface: SessionAware
      Applies the Map of session attributes in the implementing class.
      Specified by:
      withSession in interface SessionAware
      Parameters:
      session - a Map of HTTP session attribute name/value pairs.