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.
Lifecycle.SingleUse| Modifier and Type | Field and Description |
|---|---|
protected boolean |
usePropertiesFile
Use a properties file for the URLs.
|
protected boolean |
useRedirect
Use a redirect or proxy the response to the specified location.
|
asyncSupported, container, containerLog, next, smmserverAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
ProxyErrorReportValve() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getUsePropertiesFile() |
boolean |
getUseRedirect() |
protected void |
report(Request request,
Response response,
java.lang.Throwable throwable)
Prints out an error report.
|
void |
setUsePropertiesFile(boolean usePropertiesFile) |
void |
setUseRedirect(boolean useRedirect) |
findErrorPage, getPartialServletStackTrace, getProperty, invoke, isShowReport, isShowServerInfo, setProperty, setShowReport, setShowServerInfobackgroundProcess, getContainer, getDomainInternal, getNext, getObjectNameKeyProperties, initInternal, isAsyncSupported, setAsyncSupported, setContainer, setNext, startInternal, stopInternal, toStringdestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister, unregisteraddLifecycleListener, destroy, findLifecycleListeners, fireLifecycleEvent, getState, getStateName, getThrowOnFailure, init, removeLifecycleListener, setState, setState, setThrowOnFailure, start, stopprotected boolean useRedirect
protected boolean usePropertiesFile
public boolean getUseRedirect()
public void setUseRedirect(boolean useRedirect)
useRedirect - the useRedirect to setpublic boolean getUsePropertiesFile()
public void setUsePropertiesFile(boolean usePropertiesFile)
usePropertiesFile - the usePropertiesFile to setprotected void report(Request request, Response response, java.lang.Throwable throwable)
ErrorReportValvereport in class ErrorReportValverequest - The request being processedresponse - The response being generatedthrowable - The exception that occurred (which possibly wraps a root cause exceptionCopyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.