jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: remove abortWith()?

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 18 Feb 2013 10:49:03 -0500

On 2/18/2013 10:42 AM, Sergey Beryozkin wrote:
> On 18/02/13 15:26, Bill Burke wrote:
>> Since exceptions can be thrown from ContainerRequestFilter, do we need
>> ContainerRequestContext.abortWith()? Instead the user can just throw an
>> exception from the JAX-RS exception hierarchy to abort the request. Its
>> pretty much the same thing, right, so I don't see an issue with removing
>> abortWith().
>>
> Keeping abortWith() allows for a 'cleaner' blocking of the request IMHO;
> besides throwing the exception implies it needs to be mapped, so why
> request users register mappers to get blocking of the requests supported
> if a simpler option is available ?
>

That's a great point too about exception mapping.

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com