Package org.fto.jthink.j2ee.web

Examples of org.fto.jthink.j2ee.web.WEBApplicationContext


   *
   * @param req 标准HTTP请求
   */
  public ResourceManager(HttpServletRequest req){
    this();
    WEBApplicationContext webContext = new WEBApplicationContext(req.getSession().getServletContext());

    /* 设置资源容器, WEBApplicationContext上下文 */
    setResourceContainer(WEBApplicationContext.class.getName(), webContext);

    /* 设置资源容器, HttpSession用户会话 */
 
View Full Code Here


   */
  public void doFilter(ServletRequest req, ServletResponse res,
      FilterChain chain) throws IOException, ServletException {
    logger.debug("初始化请求.");
    try{
      WEBApplicationContext webContext = new WEBApplicationContext(((HttpServletRequest)req).getSession().getServletContext());

      /* 初始化请求 */
      req.setCharacterEncoding(encoding);
      HttpRequest request = new HttpRequest((HttpServletRequest)req);
     
View Full Code Here

TOP

Related Classes of org.fto.jthink.j2ee.web.WEBApplicationContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.