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

MessagesAvailableInRoomAction

public class MessagesAvailableInRoomAction extends com.opensymphony.xwork2.ActionSupport

Fields Summary
private static final long
serialVersionUID
private String
roomName
private ChatService
chatService
private List
messagesAvailableInRoom
Constructors Summary
public MessagesAvailableInRoomAction(ChatService chatService)

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

        try {
            messagesAvailableInRoom = chatService.getMessagesInRoom(roomName);
        }
        catch(ChatException e) {
            addActionError(e.getMessage());
        }
        return SUCCESS;
    
public java.util.ListgetMessagesAvailableInRoom()

        return messagesAvailableInRoom;
    
public java.lang.StringgetRoomName()


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

        this.roomName = roomName;