📄 sendalluserlistaction.java
字号:
/**
*
*/
package cn.humanmonth.chat.server.protocol.requestaction;
import cn.humanmonth.chat.server.domain.RequestData;
import cn.humanmonth.chat.server.protocol.Protocol;
import cn.humanmonth.chat.server.protocol.RequestAction;
import cn.humanmonth.chat.server.protocol.response.SendALlUserList;
/**
* @author linzl
*
*/
public class SendAllUserListAction implements RequestAction {
private static String action = "getAllUserList";
private SendALlUserList sendAllUserList = new SendALlUserList();
/*
* (non-Javadoc)
*
* @see cn.humanmonth.home.chat.server.protocol.Action#canDeal(cn.humanmonth.home.chat.server.domain.RequestData)
*/
public boolean canDeal(RequestData requestData) {
return action.equals(requestData.getCAction());
}
/*
* (non-Javadoc)
*
* @see cn.humanmonth.home.chat.server.protocol.Action#dealReqeust(cn.humanmonth.home.chat.server.domain.RequestData,
* cn.humanmonth.home.chat.server.protocol.Protocol)
*/
public void dealReqeust(RequestData requestData, Protocol protocol) {
sendAllUserList.deal(protocol);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -