0

I am new to REST and need some help in extracting all parameters for a request the following format like parameter with tag and :

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--
pah
  • 4,700
  • 6
  • 28
  • 37
Afifi
  • 11
  • 2
  • What kind of software stack are you using on the receiving end? Servlet-API based? – Thilo Mar 10 '16 at 12:44
  • Hi Thilo, yes as per below imports import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.ws.rs.GET; import javax.ws.rs.POST; – Afifi Mar 10 '16 at 12:46
  • And your question is? – Raedwald Mar 10 '16 at 12:47
  • how could I receive such post, I tried request.get parameter but a null pointer exception occured – Afifi Mar 10 '16 at 12:48

0 Answers0