{"id":19001,"date":"2013-11-20T13:00:11","date_gmt":"2013-11-20T11:00:11","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/?p=19001"},"modified":"2013-11-19T12:54:12","modified_gmt":"2013-11-19T10:54:12","slug":"camel-cxf-service-with-multiple-query-parameters","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html","title":{"rendered":"Camel CXF Service With Multiple Query Parameters"},"content":{"rendered":"<p>While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will become obsolete with the next versions of Camel. (Currently, I use 2.7.5)<\/p>\n<h2>Problem<\/h2>\n<p>Query parameters more than 1 is passed as a <code>null<\/code> value into a Camel-CXF service. Say, if the URL has four query parameters as in<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<\/p>\n<pre class=\" brush:java\">name=arun&amp;email=arun@arunma.com&amp;age=10&phone=123456<\/pre>\n<p>only the first one gets populated when you do a:<\/p>\n<h4>MultiQueryParams<\/h4>\n<pre class=\" brush:java\">@GET\r\n@Path(\"search\")\r\n@Produces(MediaType.APPLICATION_JSON)\r\npublic String sourceResultsFromTwoSources(@QueryParam(\"name\") String name, @QueryParam(\"age\") String age,\r\n                                          @QueryParam(\"phone\") String phone,@QueryParam(\"email\") String email\r\n);<\/pre>\n<p>All other parameters are <code>null<\/code>.<\/p>\n<h2>Final Output<\/h2>\n<p>For url: <code>http:\/\/localhost:8181\/cxf\/karafcxfcamel\/search?name=arun&amp;email=arun@arunma.com&amp;age=31&amp;phone=232323<\/code> the result expected is :<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/11\/FinalOutput.png\"><img decoding=\"async\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/11\/FinalOutput.png\" alt=\"FinalOutput\" width=\"600\" height=\"178\" class=\"aligncenter size-full wp-image-19060\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/11\/FinalOutput.png 873w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2013\/11\/FinalOutput-300x89.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h2>Workaround<\/h2>\n<p>Interestingly, we could get the entire query string in the header.<\/p>\n<h4> QueryStringHeader<br \/>\n<\/h4>\n<pre class=\" brush:java\">String queryString = exchange.getIn().getHeader(Exchange.HTTP_QUERY, String.class);<\/pre>\n<p>We could then do a<\/p>\n<h4> ExtractingParams<\/h4>\n<pre class=\" brush:java\">MultivaluedMap&lt;String, String&gt; queryMap = JAXRSUtils.getStructuredParams(queryString, \"&amp;\", false, false);<\/pre>\n<p>to get the query parameters as a multi valued Map.<\/p>\n<p>The query parameters could then be set as a property to the <code>Exchange<\/code> and used across the exchange.<\/p>\n<h2>Code<\/h2>\n<ul>\n<li>The entire code could be downloaded from <a href=\"https:\/\/github.com\/arunma\/osgicxfcamelmultiparams\">github<\/a><\/li>\n<\/ul>\n<p>Please note that I am running Camel as part of OSGi inside the Karaf container. While the workaround does not differ because of the environment in which you are using Camel-CXF, please be wary of this fact when you download the code from github. Watch out for the blueprint xmls for Camel configuration.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>The most important piece here is the Router<\/p>\n<h2>Router<\/h2>\n<h4> RestToBeanRouter<\/h4>\n<pre class=\" brush:java\">package me.rerun.karafcxfcamel.camel.beans;\r\n\r\nimport org.apache.camel.Exchange;\r\nimport org.apache.camel.Processor;\r\nimport org.apache.camel.builder.RouteBuilder;\r\nimport org.apache.camel.model.dataformat.JsonLibrary;\r\nimport org.apache.cxf.jaxrs.utils.JAXRSUtils;\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\r\n\r\nimport javax.ws.rs.core.MultivaluedMap;\r\nimport java.util.List;\r\nimport java.util.Map;\r\n\r\npublic class RestToBeanRouter extends RouteBuilder {\r\n\r\n    private static Logger logger= LoggerFactory.getLogger(RouteBuilder.class);\r\n\r\n    @Override\r\n    public void configure() throws Exception {\r\n\r\n        from (\"cxfrs:\/\/bean:\/\/rsServer\")\r\n                .process(new ParamProcessor())\r\n                .multicast()\r\n                .parallelProcessing()\r\n                .aggregationStrategy(new ResultAggregator())\r\n                .beanRef(\"restServiceImpl\", \"getNameEmailResult\")\r\n                .beanRef(\"restServiceImpl\", \"getAgePhoneResult\")\r\n                .end()\r\n                .marshal().json(JsonLibrary.Jackson)\r\n                .to(\"log:\/\/camelLogger?level=DEBUG\");\r\n    }\r\n\r\n    private class ParamProcessor implements Processor {\r\n\r\n        @Override\r\n        public void process(Exchange exchange) throws Exception {\r\n            String queryString = exchange.getIn().getHeader(Exchange.HTTP_QUERY, String.class);\r\n\r\n            MultivaluedMap&lt;String, String&gt; queryMap = JAXRSUtils.getStructuredParams(queryString, \"&amp;\", false, false);\r\n\r\n            for (Map.Entry&lt;String, List&lt;String&gt;&gt; eachQueryParam : queryMap.entrySet()) {\r\n                exchange.setProperty(eachQueryParam.getKey(), eachQueryParam.getValue());\r\n            }\r\n\r\n        }\r\n\r\n    }\r\n}<\/pre>\n<h2>Interface<\/h2>\n<h4> RestService<\/h4>\n<pre class=\" brush:java\">package me.rerun.karafcxfcamel.rest;\r\n\r\nimport javax.ws.rs.GET;\r\nimport javax.ws.rs.Path;\r\nimport javax.ws.rs.Produces;\r\nimport javax.ws.rs.core.MediaType;\r\n\r\npublic interface RestService {\r\n\r\n    @GET\r\n    @Path(\"search\")\r\n    @Produces(MediaType.APPLICATION_JSON)\r\n    public String sourceResultsFromTwoSources();\r\n\r\n}<\/pre>\n<h2>Implementation<\/h2>\n<h4> RestServiceImpl<br \/>\n<\/h4>\n<pre class=\" brush:java\">package me.rerun.karafcxfcamel.rest;\r\n\r\nimport me.rerun.karafcxfcamel.model.AgePhoneResult;\r\nimport me.rerun.karafcxfcamel.model.NameEmailResult;\r\nimport me.rerun.karafcxfcamel.service.base.AgePhoneService;\r\nimport me.rerun.karafcxfcamel.service.base.NameEmailService;\r\nimport me.rerun.karafcxfcamel.service.impl.AgePhoneServiceImpl;\r\nimport org.apache.camel.Exchange;\r\nimport org.slf4j.Logger;\r\nimport org.slf4j.LoggerFactory;\r\n\r\nimport java.util.List;\r\n\r\npublic class RestServiceImpl implements RestService {\r\n\r\n    private static Logger logger= LoggerFactory.getLogger(AgePhoneServiceImpl.class);\r\n\r\n    private NameEmailService nameEmailService;\r\n    private AgePhoneService agePhoneService;\r\n\r\n    public RestServiceImpl(){\r\n    }\r\n\r\n    \/\/Do nothing. Camel intercepts and routes the requests\r\n    public String sourceResultsFromTwoSources() {\r\n        return null;\r\n    }\r\n\r\n    public NameEmailResult getNameEmailResult(Exchange exchange){\r\n        logger.info(\"Invoking getNameEmailResult from RestServiceImpl\");\r\n\r\n        String name=getFirstEntrySafelyFromList(exchange.getProperty(\"name\", List.class));\r\n        String email=getFirstEntrySafelyFromList(exchange.getProperty(\"email\", List.class));\r\n\r\n        return nameEmailService.getNameAndEmail(name, email);\r\n    }\r\n\r\n    public AgePhoneResult getAgePhoneResult(Exchange exchange){\r\n        logger.info(\"Invoking getAgePhoneResult from RestServiceImpl\");\r\n\r\n        String age=getFirstEntrySafelyFromList(exchange.getProperty(\"age\", List.class));\r\n        String phone=getFirstEntrySafelyFromList(exchange.getProperty(\"phone\", List.class));\r\n\r\n        return agePhoneService.getAgePhoneResult(age, phone);\r\n    }\r\n\r\n    public NameEmailService getNameEmailService() {\r\n        return nameEmailService;\r\n    }\r\n\r\n    public AgePhoneService getAgePhoneService() {\r\n        return agePhoneService;\r\n    }\r\n\r\n    public void setNameEmailService(NameEmailService nameEmailService) {\r\n        this.nameEmailService = nameEmailService;\r\n    }\r\n\r\n    public void setAgePhoneService(AgePhoneService agePhoneService) {\r\n        this.agePhoneService = agePhoneService;\r\n    }\r\n\r\n    private String getFirstEntrySafelyFromList(List&lt;String&gt; list){\r\n\r\n        if (list!=null &amp;&amp; !list.isEmpty()){\r\n            return list.get(0);\r\n        }\r\n        return null;\r\n    }\r\n}<\/pre>\n<h2>Resource<\/h2>\n<ul>\n<li><a href=\"http:\/\/camel.465427.n5.nabble.com\/JAX-RS-and-Camel-Except-1st-QueryParameter-all-others-are-null-tt5742470.html\">Camel Mailing List Question<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<div style=\"border: 1px solid #D8D8D8; background: #FAFAFA; width: 100%; padding-left: 5px;\"><b><i>Reference: <\/i><\/b><a href=\"http:\/\/rerun.me\/blog\/2013\/11\/15\/camel-cxf-service-with-multiple-query-parameters\/\">Camel CXF Service With Multiple Query Parameters<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/jcg\">JCG partner<\/a> Arun Manivannan at the <a href=\"http:\/\/rerun.me\/\">Rerun.me<\/a> blog.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will become obsolete with the next versions of Camel. (Currently, I use 2.7.5) Problem Query parameters more than 1 is passed as a null value into a Camel-CXF service. Say, if &hellip;<\/p>\n","protected":false},"author":287,"featured_media":52,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[357],"class_list":["post-19001","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-apache-camel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Camel CXF Service With Multiple Query Parameters<\/title>\n<meta name=\"description\" content=\"While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Camel CXF Service With Multiple Query Parameters\" \/>\n<meta property=\"og:description\" content=\"While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2013-11-20T11:00:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-camel-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Arun Manivannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Arun Manivannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html\"},\"author\":{\"name\":\"Arun Manivannan\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/c7775dd45c5b0728bb6171194497e152\"},\"headline\":\"Camel CXF Service With Multiple Query Parameters\",\"datePublished\":\"2013-11-20T11:00:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html\"},\"wordCount\":241,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-camel-logo.jpg\",\"keywords\":[\"Apache Camel\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html\",\"name\":\"Camel CXF Service With Multiple Query Parameters\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-camel-logo.jpg\",\"datePublished\":\"2013-11-20T11:00:11+00:00\",\"description\":\"While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-camel-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-camel-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2013\\\/11\\\/camel-cxf-service-with-multiple-query-parameters.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Camel CXF Service With Multiple Query Parameters\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/c7775dd45c5b0728bb6171194497e152\",\"name\":\"Arun Manivannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fecbd2c62933013fa13416ad9a930bacd9edcc34dc9b3227de9f2495f9758472?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fecbd2c62933013fa13416ad9a930bacd9edcc34dc9b3227de9f2495f9758472?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fecbd2c62933013fa13416ad9a930bacd9edcc34dc9b3227de9f2495f9758472?s=96&d=mm&r=g\",\"caption\":\"Arun Manivannan\"},\"sameAs\":[\"http:\\\/\\\/www.rerun.me\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Arun-Manivannan\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Camel CXF Service With Multiple Query Parameters","description":"While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html","og_locale":"en_US","og_type":"article","og_title":"Camel CXF Service With Multiple Query Parameters","og_description":"While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will","og_url":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2013-11-20T11:00:11+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-camel-logo.jpg","type":"image\/jpeg"}],"author":"Arun Manivannan","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Arun Manivannan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html"},"author":{"name":"Arun Manivannan","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/c7775dd45c5b0728bb6171194497e152"},"headline":"Camel CXF Service With Multiple Query Parameters","datePublished":"2013-11-20T11:00:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html"},"wordCount":241,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-camel-logo.jpg","keywords":["Apache Camel"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html","url":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html","name":"Camel CXF Service With Multiple Query Parameters","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-camel-logo.jpg","datePublished":"2013-11-20T11:00:11+00:00","description":"While the awesome Apache Camel team is busy fixing the handling of the multiple parameters in the query, here\u2019s a workaround. Hopefully, this post will","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-camel-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-camel-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2013\/11\/camel-cxf-service-with-multiple-query-parameters.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Camel CXF Service With Multiple Query Parameters"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/c7775dd45c5b0728bb6171194497e152","name":"Arun Manivannan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fecbd2c62933013fa13416ad9a930bacd9edcc34dc9b3227de9f2495f9758472?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fecbd2c62933013fa13416ad9a930bacd9edcc34dc9b3227de9f2495f9758472?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fecbd2c62933013fa13416ad9a930bacd9edcc34dc9b3227de9f2495f9758472?s=96&d=mm&r=g","caption":"Arun Manivannan"},"sameAs":["http:\/\/www.rerun.me\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Arun-Manivannan"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/19001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/287"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=19001"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/19001\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/52"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=19001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=19001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=19001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}