加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

DWR框架中WebContext与WebContextFactory类

发布时间:2020-12-16 00:19:55 所属栏目:百科 来源:网络整理
导读:org.directwebremoting Interface WebContext 这个接口对应的方法简单介绍如下: java.lang.String forwardToString (java.lang.Stringurl) 请求转发到 一个给定的URL; java.lang.String getCurrentPage () 获取当前页面 的URL javax.servlet.http.HttpServl

org.directwebremotingInterface WebContext


这个接口对应的方法简单介绍如下:

java.lang.String forwardToString (java.lang.Stringurl) 请求转发到一个给定的URL;

java.lang.String getCurrentPage () 获取当前页面 的URL

javax.servlet.http.HttpServletResponse getHttpServletRequest () 获取 HttpServletResponse 对象

javax.servlet.http.HttpServletResponse getHttpServletResponse()获取HttpServletResponse对象

ScriptSession getScriptSession() 获得ScriptSession对象

javax.servlet.http.HttpSession getSession()获得HttpSession对象

javax.servlet.http.HttpSession getSession(booleancreate)返回与此请求或相关的当前的HttpSession如果没有当前会话和创造是真实的返回一个新的

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

org.directwebremotingClass WebContextFactory

staticvoid attach(Containercontainer) 内部的方法,使我们得到webcontextbuilder从而得到WebContext对象

staticWebContext get()当前访问

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读