Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1A0761056D for ; Thu, 13 Feb 2014 13:54:29 +0000 (UTC) Received: (qmail 31036 invoked by uid 500); 13 Feb 2014 13:54:22 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 30989 invoked by uid 500); 13 Feb 2014 13:54:21 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 30961 invoked by uid 99); 13 Feb 2014 13:54:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Feb 2014 13:54:19 +0000 Date: Thu, 13 Feb 2014 13:54:19 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5562) value of @QueryParam/@PathParam Annotation inside @BeanParam Classes will be ignored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900345#comment-13900345 ] Sergey Beryozkin commented on CXF-5562: --------------------------------------- Then simply use WebClient or new Cleint API and set the query options as needed; Cheers, Sergey > value of @QueryParam/@PathParam Annotation inside @BeanParam Classes will be ignored > ------------------------------------------------------------------------------------ > > Key: CXF-5562 > URL: https://issues.apache.org/jira/browse/CXF-5562 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.7.10 > Environment: Oracle JDK 1.7.51 > Reporter: Edgar Wentzlaff > > Value of @QueryParam/@PathParam Annotation inside @BeanParam Classes will be ignored by the JAXRS-Client. > TestCase: > {code:title=cxf-2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerBookTest.java} > //... > @Test > public void testProxyBeanParam() throws Exception { > BookStore store = JAXRSClientFactory.create("http://localhost:" + PORT, BookStore.class); > BookStore.BookBean bean = new BookStore.BookBean(); > bean.setId(100L); > bean.setId2(23L); > > Book book = store.getBeanParamBook(bean); > assertEquals(123L, book.getId()); > > } > //... > {code} > Modified BookStore.BookBean inside Test Example > {code:title=cxf-2.7.x-fixes/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java} > //... > public static class BookBean { > private long id; > private long id2; > private long id3; > public long getId() { > return id; > } > //@PathParam("id") > @PathParam("ID") > public void setId(long id) { > this.id = id; > } > > public long getId2() { > return id2; > } > //@QueryParam("id2") > @QueryParam("id_2") > public void setId2(long id2) { > this.id2 = id2; > } > > @Context > public void setUriInfo(UriInfo ui) { > String id3Value = ui.getQueryParameters().getFirst("id3"); > if (id3Value != null) { > this.id3 = Long.valueOf(id3Value); > } > } > public long getId3() { > return id3; > } > > } > //... > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)