Skip to content

Commit

Permalink
Improve response filter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand authored and computerlove committed Nov 27, 2023
1 parent ae24700 commit d1c8655
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 @@ -2219,6 +2219,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 @@ -2235,7 +2237,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 @@ -2316,6 +2318,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 d1c8655

Please sign in to comment.