// ××××获取请求参数××××start×××××××
InputStream is = message.getContent(InputStream.class);
BufferedReader in = new BufferedReader(new InputStreamReader(is));StringBuffer reqParamsBuf = new StringBuffer(); //只能获取json字符串,post请求
String line = "";
while ((line = in.readLine()) != null) {
//post参数,json格式
reqParamsBuf.append(line);
}
logger.error("url:" + url);
logger.error("请求参数字符串:" + reqParamsBuf.toString());
//×××××获取请求参数××××××end××××××
//set请求参数,比如解密参数后
String value=json字符串;
message.setContent(InputStream.class, new ByteArrayInputStream(value.getBytes()));