简单的qq聊天室!!!!!!!!!!!!!!!
源代码在线查看: request.java
软件大小: |
562 K |
上传用户: |
WJQ198926 |
|
|
关键词: |
|
下载地址: |
免注册下载 普通下载
|
|
package qq.entity; import java.io.Serializable; import java.util.Properties; /** * Request类封装一个请求 * @author Hehaizhou * */ public class Request implements Serializable{ private RequestType type;//请求类型 private Properties parameters;//请求所带的参数 private static final long serialVersionUID = 120791203985L; public Request(RequestType type){ parameters=new Properties(); this.type=type; } public void setData(String key,String value){ this.parameters.setProperty(key,value); } public String getData(String key){ return this.parameters.getProperty(key); } public Properties getAllParameters(){ return this.parameters; } public RequestType getType(){ return type; } }