code: public static Map<String, Object> getParametersMap(ContainerRequestContext requestContext,HttpServletRequest request)
  			throws IOException {
  		
  		if(isMultipartContent(request)){
  			return buildQueryParamsMap(request);
  		}
  		
  		Map<String, Object> parameters = buildQueryParamsMap(request);
  		
  		if (RestConst.GET_METHOD.equals(request.getMethod())) {
  			return parameters;
  		}else if (RestConst.POST_METHOD.equals(request.getMethod())) {
  			
  			byte[] byteArray = IOUtils.toByteArray(requestContext.getEntityStream());
  			//reset InputStream
  			requestContext.setEntityStream(new ByteArrayInputStream(byteArray));
  			
  			if(byteArray == null || byteArray.length == 0)return parameters;
  			String content = new String(byteArray);
  			//JSON 
  //			try {
  //				return JsonUtils.toObject(content, Map.class);
  //			} catch (Exception e) {}
  			if(content.contains("{")){
  				content = StringUtils.left(content, 2048).trim();
  				if(!content.endsWith("}"))content = content + "...\n}";
  				parameters.put("data", content);
  				return parameters;
  			}
  			
  			String[] split = content.split("\\&");
  			for (String s : split) {
  				String[] split2 = s.split("=");
  				if (split2.length == 2 && StringUtils.isNotBlank(split2[1])) {
  					parameters.put(split2[0], split2[1]);
  				}
  			}
  			return parameters;
  		
  		}
  		return null;
  	}
docs: 获取请求参数
  @param request
  @param inputStream
  @return
  @throws IOException