org.apache.struts2.showcase.chat
Class ChatServiceImpl
java.lang.Object
org.apache.struts2.showcase.chat.ChatServiceImpl
- All Implemented Interfaces:
- ChatService
public class ChatServiceImpl
- extends Object
- implements ChatService
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChatServiceImpl
public ChatServiceImpl()
getAvailableUsers
public List<User> getAvailableUsers()
- Specified by:
getAvailableUsers in interface ChatService
getAvailableRooms
public List<Room> getAvailableRooms()
- Specified by:
getAvailableRooms in interface ChatService
addRoom
public void addRoom(Room room)
- Specified by:
addRoom in interface ChatService
login
public void login(User user)
- Specified by:
login in interface ChatService
logout
public void logout(String name)
- Specified by:
logout in interface ChatService
exitRoom
public void exitRoom(String userName,
String roomName)
- Specified by:
exitRoom in interface ChatService
enterRoom
public void enterRoom(User user,
String roomName)
- Specified by:
enterRoom in interface ChatService
getMessagesInRoom
public List<ChatMessage> getMessagesInRoom(String roomName)
- Specified by:
getMessagesInRoom in interface ChatService
sendMessageToRoom
public void sendMessageToRoom(String roomName,
User user,
String message)
- Specified by:
sendMessageToRoom in interface ChatService
getUsersAvailableInRoom
public List<User> getUsersAvailableInRoom(String roomName)
- Specified by:
getUsersAvailableInRoom in interface ChatService
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.