Top Description Constructors Methods
org.apache.catalina.valves

public Class JsonErrorReportValve

extends ErrorReportValve
Class Inheritance
Imports
java.io.IOException, .Writer, java.util.concurrent.atomic.AtomicBoolean, org.apache.catalina.connector.Request, .Response, org.apache.coyote.ActionCode, org.apache.tomcat.util.ExceptionUtils, org.apache.tomcat.util.json.JSONFilter, org.apache.tomcat.util.res.StringManager

Implementation of a Valve that outputs error jsons.

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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.apache.catalina.valves.ErrorReportValve.report.

Prints out an error report.

Inherited from org.apache.catalina.valves.ErrorReportValve:
findErrorPagegetPartialServletStackTracegetPropertyinvokeisShowReportisShowServerInfosetPropertysetShowReportsetShowServerInfo

Constructor Detail

JsonErrorReportValveback to summary
public JsonErrorReportValve()

Method Detail

reportback to summary
protected void report(Request request, Response response, Throwable throwable)

Overrides org.apache.catalina.valves.ErrorReportValve.report.

Doc from org.apache.catalina.valves.ErrorReportValve.report.

Prints out an error report.

Parameters
request:Request

The request being processed

response:Response

The response being generated

throwable:Throwable

The exception that occurred (which possibly wraps a root cause exception

Annotations
@Override