Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7739410B7B for ; Thu, 10 Oct 2013 09:23:20 +0000 (UTC) Received: (qmail 52665 invoked by uid 500); 10 Oct 2013 09:23:20 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 51948 invoked by uid 500); 10 Oct 2013 09:23:19 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 51931 invoked by uid 99); 10 Oct 2013 09:23:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 09:23:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.215.182 as permitted sender) Received: from [209.85.215.182] (HELO mail-ea0-f182.google.com) (209.85.215.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 09:23:12 +0000 Received: by mail-ea0-f182.google.com with SMTP id o10so1000613eaj.13 for ; Thu, 10 Oct 2013 02:22:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=jB0UUZkW+mI155atQB4LpffhWJS8ktchvPF6Q+2pjy0=; b=JHOkhToWu8tpmqXFUWqhgZ8+o0MC0sm2T6a920AOgVDZhNhWrtxKckU+GjrR1MmiS6 /0XTJjYpkB9U2rUGkwhFBmTdhEWyYsnGeNneMHwg99bFnaIkuym50MYff/ghMgCwuJZO AiVSs4WgZkn3OAyQA2cswnqejo6KNbfk0xMJhvaGKQCWyfHauSQoNYfO9mr5bKi2aZlQ cm6eHJX293DjMcBL//MrqrmkMwEmCwNFyi4cxy3UpMXlCJITAQWbmdnscg9x5WzL311d NAC295AJ+CuHE8licpR3CMUk//vbZ6RmzavA1aFGVjfKSmfLGERUbP3vUth7st4Ikymd fNNA== X-Received: by 10.15.64.1 with SMTP id n1mr19280495eex.15.1381396972019; Thu, 10 Oct 2013 02:22:52 -0700 (PDT) Received: from [192.168.2.5] ([89.100.141.107]) by mx.google.com with ESMTPSA id h52sm99144919eez.3.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Oct 2013 02:22:51 -0700 (PDT) Message-ID: <525671E9.2070204@gmail.com> Date: Thu, 10 Oct 2013 10:22:49 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: users@cxf.apache.org Subject: Re: CXF Bean Validation JAX-RS References: <52565674.4050309@eurodyn.com> <52566C70.9040109@gmail.com> <52566E68.7030603@eurodyn.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 > >> 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) >>>> >>>> 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 >>> >>> Cheers, Sergey >>> >>>> Thank you, >>>> Christina >>>> >>> >>> >>> >> > >