cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: JAX-RS 2.0
Date Mon, 23 Sep 2013 11:37:50 GMT
On 23/09/13 12:24, Romain Manni-Bucau wrote:
> Yep,
>
> just wanted to point out CXF shouldn't redo what is already done (
> https://svn.apache.org/repos/asf/bval/branches/bval-11/bval-jsr/src/main/java/org/apache/bval/cdi/BValInterceptor.java
>   )
The less we'll have to do the better :-). Thanks for the link. Sure, the 
actual validation code will need to be reused...
Cheers, Sergey

>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/9/23 Sergey Beryozkin <sberyozkin@gmail.com>
>
>> Hi Romain
>>
>> On 22/09/13 17:35, Romain Manni-Bucau wrote:
>>
>>> Hi Sergey,
>>>
>>> if using CDI it should be automatically done since BVal 1.1 supports it by
>>> default on CDI/EJB beans. I didn't check the JAXRS spec but it can be free
>>> in a EE context.
>>>
>>>   I guess we may still have to do some work at the runtime level,
>>
>> According to the spec, a default javax.validation.**ValidationException
>> exception mapper must be provided, this is easy enough, but the spec
>> specifies that "If the exception was thrown while validating a method
>> return type, then it is mapped to a response with status code 500..."
>> - I'm not sure CDI can help with validating the response.
>>
>> So if the runtime has to learn how to validate a response then it will
>> probably have to learn how to work with Validation API :-).
>>
>> I'm also thinking it can be useful when the client proxies are used...
>>
>> Cheers, Sergey
>>
>>   *Romain Manni-Bucau*
>>> *Twitter: @rmannibucau <https://twitter.com/**rmannibucau<https://twitter.com/rmannibucau>
>>>> *
>>> *Blog: **http://rmannibucau.**wordpress.com/*<http://rmannibucau.wordpress.com/*>
>>> <http://**rmannibucau.wordpress.com/ <http://rmannibucau.wordpress.com/>>
>>> *LinkedIn: **http://fr.linkedin.com/in/**rmannibucau*<http://fr.linkedin.com/in/rmannibucau*>
>>> *Github: https://github.com/**rmannibucau*<https://github.com/rmannibucau*>
>>>
>>>
>>>
>>> 2013/9/22 Sergey Beryozkin <sberyozkin@gmail.com>
>>>
>>>   Hi
>>>>
>>>> On 22/09/13 07:47, Romain Manni-Bucau wrote:
>>>>
>>>>   Hi
>>>>>
>>>>> http://cxf.apache.org/docs/****jax-rs.html<http://cxf.apache.org/docs/**jax-rs.html>
>>>>> <http://cxf.apache.**org/docs/jax-rs.html<http://cxf.apache.org/docs/jax-rs.html>
>>>>>>
>>>>>
>>>>>
>>>>> The intro gives some points
>>>>>
>>>>>
>>>> The documentation on the 2.0 support is poor at the moment, I'm finishing
>>>> with having the client API tested against the early TCK and will proceed
>>>> to
>>>> working on the docs shortly afterwards.
>>>>
>>>> Core 2.0 is now completely supported on the trunk. The only bit which is
>>>> still missing is  Bean Validation which is an optional feature, we'll be
>>>> wiring it in too
>>>>
>>>> Sergey
>>>>
>>>>
>>>>    Le 22 sept. 2013 01:29, "David Blevins" <david.blevins@gmail.com>
a
>>>>
>>>>> écrit :
>>>>>
>>>>>    Putting together some information on Apache and Java EE 7 for JavaOne
>>>>>
>>>>>> next
>>>>>> week.
>>>>>>
>>>>>> There any information on JAX-RS 2.0 status?
>>>>>>
>>>>>>
>>>>>> -David
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>> --
>>>> Sergey Beryozkin
>>>>
>>>> Talend Community Coders
>>>> http://coders.talend.com/
>>>>
>>>> Blog: http://sberyozkin.blogspot.com
>>>>
>>>>
>>>
>>
>


Mime
View raw message