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 072F9D98F for ; Fri, 24 May 2013 14:22:21 +0000 (UTC) Received: (qmail 80741 invoked by uid 500); 24 May 2013 14:22:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 80713 invoked by uid 500); 24 May 2013 14:22:20 -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 80689 invoked by uid 99); 24 May 2013 14:22:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 May 2013 14:22:20 +0000 Date: Fri, 24 May 2013 14:22:20 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5038) More flexible QueryParams 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-5038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13666348#comment-13666348 ] Sergey Beryozkin commented on CXF-5038: --------------------------------------- Let me clarify on the use of repetitive parameters, will get back to you. I'm on holidays next week, but I'll keep you up to date > More flexible QueryParams > ------------------------- > > Key: CXF-5038 > URL: https://issues.apache.org/jira/browse/CXF-5038 > Project: CXF > Issue Type: New Feature > Components: JAX-RS > Reporter: Vincent Tremblay > Assignee: Sergey Beryozkin > > It would be useful to be able to handle how a beans are traduced into QueryParams. > I can see something like a ParametersWriter and a ParametersReader to achieve this goal. > Ex. > Let's say that you have the following method: > @GET > @Path("/resource") > public void doSomething(@QueryParam ComplexObject); > You could declare a ParametersWriter that can handle the creation of the parameters: > public class ParametersWriter { > > writeParameters(ComplexObject object, Map> params) { > params.put("filter", Arrays.asList(...,...)); > params.put("query", Arrays.asList(...)); > } > } > Then, on the server side, you could have a ParametersReader that can rebuild the object from the request's parameters. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira