cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: CXF Bean Validation JAX-RS
Date Thu, 10 Oct 2013 09:22:49 GMT
Hi
On 10/10/13 10:13, David Karlsen wrote:
> You could use spring for this:
> http://docs.spring.io/spring/docs/3.2.4.RELEASE/javadoc-api/org/springframework/validation/beanvalidation/BeanValidationPostProcessor.html
>
Indeed; if the validation rules are simple then may be you can do the 
CXF way too, use a custom CXF invoker or interceptor at the PRE-INVOKE 
stage (see one of the last comments at CXF-5309)

Sergey
>
> 2013/10/10 Christina Kaskoura <christina.kaskoura@eurodyn.com>
>
>> Hi Sergey,
>>
>> Thanks for your reply. So until this feature is implemented is there some
>> other suggested way to do bean validation in JAX-RS without doing it
>> manually? What I would like to be able to do (which is why I was wondering
>> about JSR303 integration) is something like the following:
>>
>> @POST
>> @Path("foo")
>> @Produces("application/json")
>> public String registerUser(@NotNull @FormParam("username") String userame)
>> {
>> ...
>> }
>>
>> Thank you,
>> Christina
>>
>>
>> On 10/10/2013 11:59, Sergey Beryozkin wrote:
>>
>>> Hi
>>> On 10/10/13 08:25, Christina Kaskoura wrote:
>>>
>>>> Hello.
>>>>
>>>> Can you please let me know if JSR303 integration made it into the latest
>>>> CXF for JAX-RS 2.0? That wasn't the case back in January
>>>> (http://mail-archives.apache.**org/mod_mbox/cxf-users/201301.**
>>>> mbox/%3C50FD5D18.3010607@**gmail.com%3E<http://mail-archives.apache.org/mod_mbox/cxf-users/201301.mbox/%3C50FD5D18.3010607@gmail.com%3E>)
>>>>
>>>> but has anything changed in the last year or so?
>>>>
>>>>   We have started looking into supporting JSR-349 (Bean Validation 1.1),
>>> see
>>>
>>> https://issues.apache.org/**jira/browse/CXF-5309<https://issues.apache.org/jira/browse/CXF-5309>
>>>
>>> Cheers, Sergey
>>>
>>>> Thank you,
>>>> Christina
>>>>
>>>
>>>
>>>
>>
>
>


Mime
View raw message