package com.demo.dwr3.service;
import java.util.Collection;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import org.directwebremoting.Container;
import org.directwebremoting.ScriptSession;
import org.directwebremoting.event.ScriptSessionListener;
import org.directwebremoting.extend.PageNormalizer;
import org.directwebremoting.extend.RealScriptSession;
import org.directwebremoting.impl.DefaultScriptSession;
import org.directwebremoting.impl.DefaultScriptSessionManager;
public class UserScriptSessionManager extends DefaultScriptSessionManager {
@Override
public void addScriptSessionListener(ScriptSessionListener li) {
System.out.println("addScriptSessionListener");
super.addScriptSessionListener(li);
}
@Override
public void afterContainerSetup(Container container) {
System.out.println("afterContainerSetup");
super.afterContainerSetup(container);
}
@Override
protected void associateScriptSessionAndHttpSession(DefaultScriptSession scriptSession, String httpSessionId) {
System.out.println("associateScriptSessionAndHttpSession");
super.associateScriptSessionAndHttpSession(scriptSession, httpSessionId);
}
@Override
protected void associateScriptSessionAndPage(DefaultScriptSession scriptSession, String page) {
System.out.println("associateScriptSessionAndPage");
super.associateScriptSessionAndPage(scriptSession, page);
}
@Override
protected void checkTimeouts() {
System.out.println("checkTimeouts");
super.checkTimeouts();
}
@Override
public void contextDestroyed() {
System.out.println("contextDestroyed");
super.contextDestroyed();
}
@Override
protected void disassociateScriptSessionAndHttpSession(DefaultScriptSession scriptSession) {
System.out.println("disassociateScriptSessionAndHttpSession");
super.disassociateScriptSessionAndHttpSession(scriptSession);
}
@Override
protected void disassociateScriptSessionAndPage(DefaultScriptSession scriptSession) {
System.out.println("disassociateScriptSessionAndPage");
super.disassociateScriptSessionAndPage(scriptSession);
}
@Override
protected void fireScriptSessionCreatedEvent(ScriptSession scriptSession) {
System.out.println("fireScriptSessionCreatedEvent");// TODO Auto-generated method stub
super.fireScriptSessionCreatedEvent(scriptSession);
}
@Override
protected void fireScriptSessionDestroyedEvent(ScriptSession scriptSession) {
// TODO Auto-generated method stub
System.out.println("fireScriptSessionDestroyedEvent");
super.fireScriptSessionDestroyedEvent(scriptSession);
}
@Override
public Collection<ScriptSession> getAllScriptSessions() {
System.out.println("getAllScriptSessions");// TODO Auto-generated method stub
return super.getAllScriptSessions();
}
@Override
public String getInitCode() {
System.out.println("getInitCode");// TODO Auto-generated method stub
return super.getInitCode();
}
@Override
public RealScriptSession getScriptSession(String sentScriptId, String page, String httpSessionId) {
System.out.println("getScriptSession");// TODO Auto-generated method stub
return super.getScriptSession(sentScriptId, page, httpSessionId);
}
@Override
public Collection<RealScriptSession> getScriptSessionsByHttpSessionId(String httpSessionId) {
System.out.println("getScriptSessionsByHttpSessionId");// TODO Auto-generated method stub
return super.getScriptSessionsByHttpSessionId(httpSessionId);
}
@Override
public long getScriptSessionTimeout() {
System.out.println("getScriptSessionTimeout");// TODO Auto-generated method stub
return super.getScriptSessionTimeout();
}
@Override
protected void invalidate(DefaultScriptSession scriptSession) {
System.out.println("invalidate");// TODO Auto-generated method stub
super.invalidate(scriptSession);
}
@Override
protected void maybeCheckTimeouts() {
System.out.println("maybeCheckTimeouts");// TODO Auto-generated method stub
super.maybeCheckTimeouts();
}
@Override
public void removeScriptSessionListener(ScriptSessionListener li) {
System.out.println("removeScriptSessionListener");// TODO Auto-generated method stub
super.removeScriptSessionListener(li);
}
@Override
public void servletDestroyed() {
System.out.println("servletDestroyed");// TODO Auto-generated method stub
super.servletDestroyed();
}
@Override
public void setPageNormalizer(PageNormalizer pageNormalizer) {
System.out.println("setPageNormalizer");// TODO Auto-generated method stub
super.setPageNormalizer(pageNormalizer);
}
@Override
public void setScheduledThreadPoolExecutor(ScheduledThreadPoolExecutor executor) {
// TODO Auto-generated method stub
System.out.println("setScheduledThreadPoolExecutor");
super.setScheduledThreadPoolExecutor(executor);
}
@Override
public void setScriptSessionCheckTime(long scriptSessionCheckTime) {
System.out.println("setScriptSessionCheckTime");// TODO Auto-generated method stub
super.setScriptSessionCheckTime(scriptSessionCheckTime);
}
@Override
public void setScriptSessionTimeout(long scriptSessionTimeout) {
// TODO Auto-generated method stub
System.out.println("setScriptSessionTimeout");
super.setScriptSessionTimeout(scriptSessionTimeout);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
dwr3 全推 半推实现
共29个文件
class:9个
java:5个
jar:5个
5星 · 超过95%的资源 需积分: 9 115 下载量 31 浏览量
2011-03-09
20:10:31
上传
评论 2
收藏 2.01MB RAR 举报
温馨提示
运用Browser 里的相关方法 Browser.withAllSessions Browser.withCurrentPageFiltered
资源推荐
资源详情
资源评论
收起资源包目录
Web_Demo_Dwr3.0.rar (29个子文件)
Web_Demo_Dwr3.0
.project 1KB
.settings
org.eclipse.jdt.core.prefs 330B
.mymetadata 318B
WebRoot
WEB-INF
dwr.xml 874B
web.xml 2KB
lib
commons-io-2.0.1.jar 156KB
commons-fileupload-1.2.2.jar 58KB
dwr.jar 1.08MB
commons-logging-1.1.1.jar 59KB
yuicompressor-2.4.2.jar 831KB
classes
com
demo
dwr3
service
UserService.class 5KB
UserServiceAnn.class 986B
ChatService$2.class 1KB
ChatService$1.class 916B
ChatService$4.class 1KB
ChatService$3.class 2KB
UserScriptSessionManager.class 5KB
ChatService.class 3KB
pojo
User.class 1KB
index.jsp 869B
dwr1.jsp 4KB
dwr2.jsp 3KB
dwr3.jsp 1KB
.myeclipse
src
com
demo
dwr3
service
ChatService.java 3KB
UserService.java 3KB
UserServiceAnn.java 328B
UserScriptSessionManager.java 5KB
pojo
User.java 678B
.classpath 760B
共 29 条
- 1
一品天下先
- 粉丝: 0
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页