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

UsersAvailableInRoomAction

public class UsersAvailableInRoomAction extends com.opensymphony.xwork2.ActionSupport

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


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

        try {
            usersAvailableInRoom = chatService.getUsersAvailableInRoom(roomName);
        }
        catch(ChatException e) {
            addActionError(e.getMessage());
        }
        return SUCCESS;
    
public java.lang.StringgetRoomName()

 return this.roomName; 
public java.util.ListgetUsersAvailableInRoom()

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

        this.roomName = roomName;