不能得到休息服务HTTP POST指标的影响 [英] can't get the http post parametes in rest service

查看:190
本文介绍了不能得到休息服务HTTP POST指标的影响的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个REST服务,这应该检索请求所有可用的HTTP POST参数,注意参数是动态的,因此我不能使用FormParam。

I want to create a rest service, which should retrieve all the available HTTP POST parameters in the request, note that the parameters are dynamic hence I can't use FormParam.

我做了其他服务消费形式的URL连接codeD,并获得访问HttpServletRequest的使用org.apache.cxf.jaxrs.ext.MessageContext.getHttpServletRequest(),但我找不到在任何参数对象请求。

I made the rest service to consume form url encoded and got access to HttpServletRequest object using org.apache.cxf.jaxrs.ext.MessageContext.getHttpServletRequest(), but I can't find any parameters in the request.

不知道如何检索所有在其余服务器HttpServletRequest对象提供的HTTP POST参数?

Any idea how to retrieve all the http post parameters available in the httpservletrequest object in rest server ?

感谢

推荐答案

好吧,我只是不得不MultivaluedMap作为我休息服务的说法,这张地图将在其所有的HTTP POST参数。

okay I just had to have MultivaluedMap as the argument for my rest service, this map will have all the http post parameters in it.

这篇关于不能得到休息服务HTTP POST指标的影响的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆