Package org.apache.jetspeed.request

Examples of org.apache.jetspeed.request.RequestDiagnostics


            responseCommitted = true;
        }
        catch (Throwable t)
        {
            failure = true;
            RequestDiagnostics rd = RequestDiagnosticsFactory.newRequestDiagnostics();
            RequestDiagnosticsFactory.fillInPortletWindow(rd, request.getActionWindow(), t);
            PipelineException pe = new PipelineException(t);
            pe.setRequestDiagnostics(rd);
            throw pe;
        }
View Full Code Here


        }
        final String msg = "Request error encountered while processing portal request: "+t.getMessage();
        log.error(msg, t);
       
        // try to unwind and see if an Exception was thrown containing a RequestDiagnostics
        RequestDiagnostics rd = null;
        Throwable e = t;
        do
        {
            if (e instanceof RequestDiagnosticsHolder && ((RequestDiagnosticsHolder)e).getRequestDiagnostics() != null)
            {
                rd = ((RequestDiagnosticsHolder)e).getRequestDiagnostics();
                break;
            }
            e = e.getCause();
        }
        while (e != null);
       
        if (rd == null)
        {
            rd = RequestDiagnosticsFactory.newRequestDiagnostics();
        }
        RequestDiagnosticsFactory.fillInRequestContext(rd, req, context, t);
        rd.logAsError();
        req.getSession(true).setAttribute(PortalReservedParameters.REQUEST_DIAGNOSTICS_ATTRIBUTE, rd);
        res.sendRedirect(req.getContextPath() + errorHandlerPath);
    }
View Full Code Here

                    container.doServeResource(resourceWindow, servletRequest, servletResponse);
                }
            }
            catch (Exception e)
            {
                RequestDiagnostics rd = RequestDiagnosticsFactory.newRequestDiagnostics();
                RequestDiagnosticsFactory.fillInPortletWindow(rd, resourceWindow, e);
                PipelineException pe = new PipelineException(e);
                pe.setRequestDiagnostics(rd);
                throw pe;
            }
View Full Code Here

        }
        final String msg = "Request error encountered while processing portal request: "+t.getMessage();
        log.error(msg, t);
       
        // try to unwind and see if an Exception was thrown containing a RequestDiagnostics
        RequestDiagnostics rd = null;
        Throwable e = t;
        do
        {
            if (e instanceof RequestDiagnosticsHolder && ((RequestDiagnosticsHolder)e).getRequestDiagnostics() != null)
            {
                rd = ((RequestDiagnosticsHolder)e).getRequestDiagnostics();
                break;
            }
            e = e.getCause();
        }
        while (e != null);
       
        if (rd == null)
        {
            rd = RequestDiagnosticsFactory.newRequestDiagnostics();
        }
        RequestDiagnosticsFactory.fillInRequestContext(rd, req, context, t);
        rd.logAsError();
        req.getSession(true).setAttribute(PortalReservedParameters.REQUEST_DIAGNOSTICS_ATTRIBUTE, rd);
        res.sendRedirect(req.getContextPath() + errorHandlerPath);
    }
View Full Code Here

            responseCommitted = true;
        }
        catch (Throwable t)
        {
            failure = true;
            RequestDiagnostics rd = RequestDiagnosticsFactory.newRequestDiagnostics();
            RequestDiagnosticsFactory.fillInPortletWindow(rd, request.getActionWindow(), t);
            PipelineException pe = new PipelineException(t);
            pe.setRequestDiagnostics(rd);
            throw pe;
        }
View Full Code Here

                    container.doServeResource(resourceWindow, servletRequest, servletResponse);
                }
            }
            catch (Exception e)
            {
                RequestDiagnostics rd = RequestDiagnosticsFactory.newRequestDiagnostics();
                RequestDiagnosticsFactory.fillInPortletWindow(rd, resourceWindow, e);
                PipelineException pe = new PipelineException(e);
                pe.setRequestDiagnostics(rd);
                throw pe;
            }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.request.RequestDiagnostics

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.