FileDocCategorySizeDatePackage
ExitRoomAction.javaAPI DocApache Struts 2.0.9 Apps1887Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.chat

ExitRoomAction

public class ExitRoomAction extends com.opensymphony.xwork2.ActionSupport implements org.apache.struts2.interceptor.SessionAware

Fields Summary
private static final long
serialVersionUID
private String
roomName
private Map
session
private ChatService
chatService
Constructors Summary
public ExitRoomAction(ChatService chatService)

        this.chatService = chatService;
    
Methods Summary
public java.lang.Stringexecute()

        User user = (User) session.get(ChatAuthenticationInterceptor.USER_SESSION_KEY);
        chatService.exitRoom(user.getName(), roomName);

        return SUCCESS;
    
public java.lang.StringgetRoomName()


        return roomName; 
public voidsetRoomName(java.lang.String roomName)

 this.roomName = roomName; 
public voidsetSession(java.util.Map session)

        this.session = session;