All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yuyenews.easy.server.request.HttpSession Maven / Gradle / Ivy

The newest version!
package com.yuyenews.easy.server.request;

import java.io.Serializable;
import java.util.Date;
import java.util.Hashtable;
import java.util.Map;

/**
 * session
 * 
 * @author yuye
 *
 */
public class HttpSession implements Serializable {

	private static final long serialVersionUID = 1284233317791873433L;

	private Map map;

	/**
	 * 创建时间
	 */
	private Date date;

	public HttpSession() {
		map = new Hashtable<>();
		date = new Date();
	}

	public void setAttr(String key, Object value) {
		this.map.put(key, value);
	}

	public Object getAttr(String key) {
		return map.get(key);
	}

	public Date getDate() {
		return date;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy