在java中接收multipart / form-data

时间:2016-03-10 12:39:46

标签: java json multipartform-data

我是REST的新手,需要一些帮助来提取请求的所有参数,如下所示格式,如带参数的参数和:

Content-Type:  multipart/form-data; boundary=event-boundary

--event-boundary
Content-Type: application/json
{
     "name": "AAAAA",
     "DOB": "BBBBB",
     "age": "CCCCC",
}
--event-boundary
Content-Type: application/json
{
    "event": "DDDDD",
    "eventtype": "EEEEEE",
    "appid": "FFFFF",
    "tags": [
      "GGGGG"
    ],
    "TTTTTT": [
      "HHHHH"
    ],
    "ZZZZZ": [],
    "YYYYY": {
      "XXXXX": "IIIII",
      "RRRRR": "JJJJJ",
},
    "timeOfEvent": "2016-02-27 16:37:50.516"
  }
}
--event-boundary--

0 个答案:

没有答案