cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Biju Nair (JIRA)" <>
Subject [jira] [Created] (CXF-3529) Support for Map Interface in CXF Service and Beans
Date Tue, 17 May 2011 20:21:47 GMT
Support for Map Interface in CXF Service and Beans

                 Key: CXF-3529
             Project: CXF
          Issue Type: New Feature
          Components: Core
    Affects Versions: 2.4.1
         Environment: All platforms
            Reporter: Biju Nair
             Fix For: 2.4.1

Apache CXF Rest Services doesn't support java.util.Map interface as their service arguments.
They even do not support java.util.Map interface inside a bean.

This fix is to support Map interface as arguments and fields inside a bean.

> The code is tested with sample services like,
> public String debug(@FormParam("")TestEmployeeTO testObject1,@FormParam("map") Map<String,Integer>
> public class TestEmployeeTO  {
>  private HashMap<String,String> currencies;
>  //getters/setters
> }
> Input Data
> map.x=11&map.y=9&currencies.IND=INR&currencies.USA=DOLLAR
> Output
> TestEmployeeTO[currencies={IND=INR, USA=DOLLAR}]
> map={y=9, x=11}

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message