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.
| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| protected boolean | usePropertiesFile
Use a properties file for the URLs. |
| protected boolean | useRedirect
Use a redirect or proxy the response to the specified location. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public boolean | |
| public boolean | |
| protected void | report(Request
The request being processed request, Response The response being generated response, Throwable The exception that occurred (which possibly wraps a root cause exception throwable)Overrides org. Prints out an error report. |
| public void | |
| public void |
| log | back to summary |
|---|---|
| private static final Log log | |
| usePropertiesFile | back to summary |
|---|---|
| protected boolean usePropertiesFile Use a properties file for the URLs. | |
| useRedirect | back to summary |
|---|---|
| protected boolean useRedirect Use a redirect or proxy the response to the specified location. Default to redirect. | |
| ProxyErrorReportValve | back to summary |
|---|---|
| public ProxyErrorReportValve() | |
| getRedirectUrl | back to summary |
|---|---|
| private String getRedirectUrl(Response response) | |
| getUsePropertiesFile | back to summary |
|---|---|
public boolean getUsePropertiesFile()
| |
| getUseRedirect | back to summary |
|---|---|
public boolean getUseRedirect()
| |
| report | back to summary |
|---|---|
| protected void report(Request request, Response response, Throwable throwable) Overrides org. Doc from org. Prints out an error report. | |
| setUsePropertiesFile | back to summary |
|---|---|
public void setUsePropertiesFile(boolean usePropertiesFile)
| |
| setUseRedirect | back to summary |
|---|---|
public void setUseRedirect(boolean useRedirect)
| |