摘要: Listener概述 Listener的使用 使用Listener需要实现相应的Listener接口。 public class SessionListenerTest implements HttpSessionListener { public void sessionCreated(HttpS 阅读全文
posted @ 2016-05-22 22:17 且听风吟-wuchao 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Filter概述 Filter不用于客户端请求,只用于对request,response进行修改或对context,session,request事件进行监听。 1.概述 如上图,多个filter组成一个FilterChain。 2.Filter接口 3.Filter配置 防盗链Filter 代码详 阅读全文
posted @ 2016-05-22 22:10 且听风吟-wuchao 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Cookie机制 1.Cookie不可跨域名性 2.Unicode编码:中文 3.Cookie属性设置 4.Cookie的修改,删除 5.Cookie的域名 6.Cookie的路径 7.Cookie的安全属性 8.javascript操作Cookie 9.案例:永久登陆 Session 1.Sess 阅读全文
posted @ 2016-05-22 21:42 且听风吟-wuchao 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 构造ServerSocket ServerSocket的构造方法如下: 1 ServerSocket() 2 //Creates an unbound server socket. 3 4 ServerSocket(int port) 5 //Creates a server socket, bou 阅读全文
posted @ 2016-05-22 20:27 且听风吟-wuchao 阅读(609) 评论(0) 推荐(0) 编辑