Class ProxyErrorReportValve

  • All Implemented Interfaces:
    javax.management.MBeanRegistration, Contained, JmxEnabled, Lifecycle, Valve

    public class ProxyErrorReportValve
    extends ErrorReportValve

    Implementation of a Valve that proxies or redirects error reporting to other urls.

    This Valve should be attached at the Host level, although it will work if attached to a Context.

    • Field Detail

      • useRedirect

        protected boolean useRedirect
        Use a redirect or proxy the response to the specified location. Default to redirect.
      • usePropertiesFile

        protected boolean usePropertiesFile
        Use a properties file for the URLs.
    • Constructor Detail

      • ProxyErrorReportValve

        public ProxyErrorReportValve()
    • Method Detail

      • getUseRedirect

        public boolean getUseRedirect()
        Returns:
        the useRedirect
      • setUseRedirect

        public void setUseRedirect​(boolean useRedirect)
        Parameters:
        useRedirect - the useRedirect to set
      • getUsePropertiesFile

        public boolean getUsePropertiesFile()
        Returns:
        the usePropertiesFile
      • setUsePropertiesFile

        public void setUsePropertiesFile​(boolean usePropertiesFile)
        Parameters:
        usePropertiesFile - the usePropertiesFile to set
      • report

        protected void report​(Request request,
                              Response response,
                              java.lang.Throwable throwable)
        Description copied from class: ErrorReportValve
        Prints out an error report.
        Overrides:
        report in class ErrorReportValve
        Parameters:
        request - The request being processed
        response - The response being generated
        throwable - The exception that occurred (which possibly wraps a root cause exception