Skip to main content

[jsr339-experts] Re: [jax-rs-spec users] Need clarification on Section 6.7

  • From: Sergey Beryozkin <sberyozkin@...>
  • To: <jsr339-experts@...>
  • Subject: [jsr339-experts] Re: [jax-rs-spec users] Need clarification on Section 6.7
  • Date: Wed, 30 Jan 2013 22:15:37 +0000

On 30/01/13 21:45, Sergey Beryozkin wrote:
On 30/01/13 19:10, Santiago Pericas-Geertsen wrote:

On Jan 30, 2013, at 10:29 AM, Bill Burke<bburke@...> wrote:

The section on filters and exception handling is unclear.

if an exception is thrown from a resource method:

1. An exception mapper is found
2. bound and global filters are executed on the response

Yes - this is my understanding too

If an exception is thrown from a request filter:

1. An exception mapper is found and executed
2. response filters are executed. BOund response filters only
executed if this is not prematch

Why global response filters would not be executed but bounds one will in
this case ?

If an exception is thrown from a response filter:

1. An exception maper is found and executed
2. ??? I assume no response filters are then executed?

I guess given that global response filters are executed after bound
response filters, should they be given a chance to process a response
too, right ?

.. if the bound response filter throws an exception ?

Sergey



We had some discussions about this, but I don't remember exactly when
(I could try to dig them up). The idea was to try to simplify things
without having special cases for exceptions thrown here or there.
Thus, Section 6.7 states that the response filter chain is always
executed, regardless of where the exception was thrown, but exceptions
are mapped only once.



Sergey
-- Santiago





[jsr339-experts] Need clarification on Section 6.7

Bill Burke 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Need clarification on Section 6.7

Santiago Pericas-Geertsen 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Need clarification on Section 6.7

Bill Burke 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Re: Need clarification on Section 6.7

Santiago Pericas-Geertsen 01/31/2013

[jsr339-experts] Re: [jax-rs-spec users] Need clarification on Section 6.7

Sergey Beryozkin 01/30/2013

[jsr339-experts] Re: [jax-rs-spec users] Need clarification on Section 6.7

Sergey Beryozkin 01/30/2013

[jsr339-experts] Re: Need clarification on Section 6.7

Marek Potociar 01/31/2013

[jsr339-experts] Re: Need clarification on Section 6.7

Sergey Beryozkin 01/31/2013
 
 
Close
loading
Please Confirm
Close