List of usage examples for org.apache.shiro.web.session HttpServletSession HttpServletSession
public HttpServletSession(HttpSession httpSession, String host)
From source file:com.flowlogix.filters.EjbPingFilter.java
License:Apache License
/** * Ping all Stateful EJBs, and remove those who are stale * /*from w ww.ja v a 2 s. com*/ * @param request * @param response * @param _session * @param chain * @throws ServletException * @throws IOException */ @Override public void doFilter(HttpServletRequest request, HttpServletResponse response, HttpSession _session, FilterChain chain) throws ServletException, IOException { if (_session != null) { Session session; if (_session instanceof ShiroHttpSession) { session = ((ShiroHttpSession) _session).getSession(); } else { session = new HttpServletSession(_session, null); } if (StatefulUtil.pingStateful(session) == false) { log.info("Failed EJB ping(s) for request: {}", Servlets.getRequestURLWithQueryString(request)); } } chain.doFilter(request, response); }
From source file:com.ineunet.knife.security.session.DefaultWebSessionManager.java
License:Apache License
protected Session createSession(HttpSession httpSession, String host) { Session session = new HttpServletSession(httpSession, host); this.sessionDAO.create(session); return session; }