Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3529

Support for Map Interface in CXF Parameter Beans

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.1
    • 2.4.1
    • JAX-RS
    • All platforms

    • Advanced

    Description

      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> map)
      >
      > 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}

      >

      Attachments

        1. config
          7 kB
          Sergey Beryozkin
        2. cxf-3529.diff
          166 kB
          Biju Nair
        3. InjectionUtils_052511.patch
          3 kB
          Biju Nair
        4. InjectionUtils_060511.patch
          5 kB
          Biju Nair
        5. InjectionUtils.java
          48 kB
          Biju Nair
        6. InjectionUtils.java
          47 kB
          Biju Nair
        7. InjectionUtils.java
          37 kB
          Biju Nair
        8. JAXRSUtils.java
          42 kB
          Biju Nair

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            biju74 Biju Nair
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 96h
                96h
                Remaining:
                Remaining Estimate - 96h
                96h
                Logged:
                Time Spent - Not Specified
                Not Specified