Skip to content

Commit

Permalink
Improve response filter documentation
Browse files Browse the repository at this point in the history
Close: quarkusio#36955
(cherry picked from commit 0528f8c)
  • Loading branch information
geoand authored and gsmet committed Nov 13, 2023
1 parent e5716e1 commit cd1e2c5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/src/main/asciidoc/resteasy-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2220,6 +2220,8 @@ class Filters {
}
----

Such a response filter will also be called for <<exception-mapping, handled>> exceptions.

Your filters may declare any of the following parameter types:

.Filter parameters
Expand All @@ -2236,7 +2238,7 @@ Your filters may declare any of the following parameter types:
|A context object to access the current response

|link:{jdkapi}/java/lang/Throwable.html[`Throwable`]
|Any thrown exception, or `null` (only for response filters)
|Any thrown and <<exception-mapping, handled>> exception, or `null` (only for response filters).

|===

Expand Down Expand Up @@ -2317,6 +2319,11 @@ Now, whenever a REST method is invoked, the request will be logged into the cons
2019-06-05 12:51:04,485 INFO [org.acm.res.jso.LoggingFilter] (executor-thread-1) Request GET /fruits from IP 127.0.0.1
----

[NOTE]
====
A `ContainerResponseFilter` will also be called for <<exception-mapping, handled>> exceptions.
====

=== Readers and Writers: mapping entities and HTTP bodies

[[readers-writers]]
Expand Down

0 comments on commit cd1e2c5

Please sign in to comment.