/** * Async forward this request and response to another resource for processing. * Any runtime exception, IOException, or ServletException thrown by the * called servlet will be propogated to the caller. * * @param request The servlet request to be forwarded * @param response The servlet response to be forwarded * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet exception occurs */ public void async(ServletRequest request, ServletResponse response, boolean attributes) throws ServletException, IOException { if (Globals.IS_SECURITY_ENABLED) { try { AccessController.doPrivileged(new PrivilegedAsync(request, response, attributes)); } catch (PrivilegedActionException pe) { Exception e = pe.getException(); if (e instanceof ServletException) throw (ServletException) e; throw (IOException) e; } } else { doAsync(request,response, attributes); } }
/** * Async forward this request and response to another resource for processing. * Any runtime exception, IOException, or ServletException thrown by the * called servlet will be propogated to the caller. * * @param request The servlet request to be forwarded * @param response The servlet response to be forwarded * * @exception IOException if an input/output error occurs * @exception ServletException if a servlet exception occurs */ public void async(ServletRequest request, ServletResponse response, boolean attributes) throws ServletException, IOException { if (Globals.IS_SECURITY_ENABLED) { try { AccessController.doPrivileged(new PrivilegedAsync(request, response, attributes)); } catch (PrivilegedActionException pe) { Exception e = pe.getException(); if (e instanceof ServletException) throw (ServletException) e; throw (IOException) e; } } else { doAsync(request,response, attributes); } }