You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kf...@apache.org on 2020/10/18 13:00:18 UTC
[tomcat] branch master updated: Add docs for JsonErrorReportValve.
This is an automated email from the ASF dual-hosted git repository.
kfujino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new d564f63 Add docs for JsonErrorReportValve.
d564f63 is described below
commit d564f63c58a4059ce9c53052d87e4656b666009b
Author: KeiichiFujino <kf...@apache.org>
AuthorDate: Sun Oct 18 21:59:32 2020 +0900
Add docs for JsonErrorReportValve.
---
webapps/docs/changelog.xml | 5 +++--
webapps/docs/config/valve.xml | 31 +++++++++++++++++++++++++++++++
2 files changed, 34 insertions(+), 2 deletions(-)
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index fbf0879..2dc322a 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -64,8 +64,9 @@
connection scenario. (remm)
</fix>
<add>
- Add extended <code>ErrorReportValve</code> that returns response as
- JSON instead of HTML. (kfujino)
+ Add <code>JsonErrorReportValve</code> that extends the
+ <code>ErrorReportValve</code> that returns response as JSON instead of
+ HTML. (kfujino)
</add>
</changelog>
</subsection>
diff --git a/webapps/docs/config/valve.xml b/webapps/docs/config/valve.xml
index 3111fce..f84a952 100644
--- a/webapps/docs/config/valve.xml
+++ b/webapps/docs/config/valve.xml
@@ -2044,6 +2044,37 @@
</section>
+<section name="Json Error Report Valve">
+
+ <subsection name="Introduction">
+
+ <p>The <strong>Json Error Report Valve</strong> is a simple error handler
+ for HTTP status codes that will return Json error messages.</p>
+
+ <p>By specifying this class in <code>errorReportValveClass</code> attribute
+ in <code>HOST</code>, it will be used instead of
+ <code>ErrorReportValve</code> and will return JSON response instead of HTML.
+ </p>
+
+ </subsection>
+
+ <subsection name="Attributes">
+
+ <p>The <strong>Json Error Report Valve</strong> supports the following
+ configuration attributes:</p>
+
+ <attributes>
+
+ <attribute name="className" required="true">
+ <p>Java class name of the implementation to use. This MUST be set to
+ <strong>org.apache.catalina.valves.JsonErrorReportValve</strong>.</p>
+ </attribute>
+
+ </attributes>
+
+ </subsection>
+
+</section>
<section name="Crawler Session Manager Valve">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org