Chat application to communicate between systems. This web based app can be run using Tomcat.

源代码在线查看: message.java

软件大小: 198 K
上传用户: jiangleip531
关键词: application communicate between systems
下载地址: 免注册下载 普通下载 VIP

相关代码

				package chainsys.chat.business;								/**				Represents a Message sent by a user.				*/				public class Message				{					/**					* String used to store the name of a chatter					*@author chainsys   					*/					private String chatterName = null;					/**					* String containing message					*/					private String message = null;									/**					* long containing the time when message was delivered					*/					private long timeStamp;					/**					* This constructor accepts a name of the chatterand the message.					* @param name Name of the chatter					* @param message message of the chatter					* @param timeStamp time of the message					*/					public Message(String name, String message, long timeStamp)					{						this.chatterName = name;						this.message= message;						this.timeStamp = timeStamp;					}										/**					* Returns name of the Chatter					* @return String					*/					public String getChatterName()					{						return chatterName;					}										/**					* Returns message of the chatter					* @return String					*/					public String getMessage()					{						return message;					}					/**					* Returns time of the message					* @return long					*/					public long getTimeStamp()					{						return timeStamp;					}				}			

相关资源