cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Custom Reuqest Param Name for Bean Request Object
Date Tue, 17 May 2011 08:51:06 GMT
Hi

On Tue, May 17, 2011 at 7:09 AM, Biju Nair <biju74techie@gmail.com> wrote:
> Added the Map feature for service level and bean level.
>
> I was not able to check-in the files, so attaching the same.
>

I don't see an attachment, but what you need to do is to create a CXF
JIRA, attach a patch and I will apply it.


> Following are the changes,
> Added Map Support to Rest Based Services
> -- Added InjectionUtils.injectIntoMap
> -- Added InjectionUtils.convertMultimapToMap
> -- Changed Signature of InjectionUtils.createParameterObject
> -- Modified handleBean
> -- Modified createParameterObject
> -- Added InjectionUtils.injectIntoMap
> -- Added InjectionUtils.isSupportedMap
> -- Added InjectionUtils.mergeMap
> -- Added JAXRSUtils.processMapValue
> -- Changed JAXRSUtils.processFormParam
>
> 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}
>

thanks, Sergey



> Please verify and let me know is this is good.
>
> Biju B



-- 
Sergey Beryozkin

Application Integration Division of Talend
http://sberyozkin.blogspot.com

Mime
View raw message