}
@Override
public void messageReceived(IoSession session, Object message) throws Exception {
System.out.println("Server:接受消息:"+message);
HttpMessage request=(HttpMessage)message;
if(request.uri.endsWith("Hello.chat")){
ChatPro.chatSessionReceived(request, session);
}else{
HttpMessage response=HttpMessage.getDefaultResponse();
response.body=FileUtil.getFileIoBuffer(request.uri);
session.write(response);
session.close(true);
}
}