?? userconnectinterceptor.java
字號(hào):
package com.easyjf.web;
/**
* 用戶入侵檢測(cè)載器
*
* @author 大峽
*
*/
public class UserConnectInterceptor implements IRequestInterceptor {
public Object doIntercept() throws Exception {
if (!UserConnectManage.checkLoginValidate(ActionContext.getContext()
.getRequest().getRemoteAddr(), "guest")) {
throw new Exception("您對(duì)頁(yè)面的刷新太快,請(qǐng)等待"
+ UserConnectManage.getWaitInterval() / 1000 + "秒后再刷新頁(yè)面!");
}
return IRequestInterceptor.SUCCESS;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -