public void startRequest(HttpServletRequest request, HttpServletResponse response) { RSACUtils.startServletRequest(request, response, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY); }
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { try { RSACUtils.startServletRequest((HttpServletRequest)request, (HttpServletResponse) response, rsacbg, RSACUtils.HTTP_SERVLET_FACTORY); chain.doFilter(request, response); } catch (Exception e) { // Catch and log this here because Tomcat's stack rendering is non-standard and crummy. Logger.log.error("Error servicing RSAC request: ", e); } finally { rsacbg.endRequest(); } }
RSACUtils.startServletRequest(req, res, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY);
protected void service(HttpServletRequest request, HttpServletResponse response) { RSACUtils.startServletRequest(request, response, rsacbeanlocator, RSACUtils.HTTP_SERVLET_FACTORY); try { rsacbeanlocator.getBeanLocator().locateBean("rootHandlerBean"); } catch (Throwable t) { // Catch and log this here because Tomcat's stack rendering is // non-standard and crummy. Logger.log.error("Error servicing RSAC request: ", t); if (t instanceof Error) { throw ((Error) t); } } finally { rsacbeanlocator.endRequest(); } } }
RSACUtils.startServletRequest(req, res, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY);
public void handleAccess(HttpServletRequest req, HttpServletResponse res, EntityReference reference, WBLAcceptor acceptor) { try { rsacbl.startRequest(); // A request bean locator just good for this request. WriteableBeanLocator rbl = rsacbl.getBeanLocator(); // inchuck entityReference rbl.set("sakai-EntityReference", reference.toString()); if (acceptor != null) { acceptor.acceptWBL(rbl); } RSACUtils.startServletRequest(wrapRequest(req), res, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY); // pass the request to RSF. rbl.locateBean("rootHandlerBean"); } catch (Exception t) { // Access servlet performs no useful logging, do it here. Logger.log.error("Error handling access request", t); Throwable unwrapped = UniversalRuntimeException.unwrapException(t); if (unwrapped instanceof RuntimeException) { throw ((RuntimeException) unwrapped); } else throw UniversalRuntimeException.accumulate(unwrapped, "Error handling access request"); } finally { rsacbl.endRequest(); } }
public void handleAccess(HttpServletRequest req, HttpServletResponse res, EntityReference reference, WBLAcceptor acceptor) { try { rsacbl.startRequest(); // A request bean locator just good for this request. WriteableBeanLocator rbl = rsacbl.getBeanLocator(); // inchuck entityReference rbl.set("sakai-EntityReference", reference.toString()); if (acceptor != null) { acceptor.acceptWBL(rbl); } RSACUtils.startServletRequest(wrapRequest(req), res, rsacbl, RSACUtils.HTTP_SERVLET_FACTORY); // pass the request to RSF. rbl.locateBean("rootHandlerBean"); } catch (Exception t) { // Access servlet performs no useful logging, do it here. Logger.log.error("Error handling access request", t); Throwable unwrapped = UniversalRuntimeException.unwrapException(t); if (unwrapped instanceof RuntimeException) { throw ((RuntimeException) unwrapped); } else throw UniversalRuntimeException.accumulate(unwrapped, "Error handling access request"); } finally { rsacbl.endRequest(); } }