in = req.getInputStream(); Map m = HttpUtils.parsePostData(len, in); parseParams(m);
if (len > 0) { InputStream in = req.getInputStream();  try { Object data; try{ ObjectInputStream obStream = new ObjectInputStream(in); data = obStream.readObject(); } catch (IOException e) { System.out.println("Expecting a POSTED Serialized \"Object\": " + e.getMessage()); data = null; } if (data != null) { startUIDs = getSearchUIDs(data); } } catch (RuntimeException e) { System.out.println("zero UIDs posted?: "+e.getMessage()); } }
  public static void parseParams(       HttpServletRequest req) throws IOException  {      String meth = req.getMethod();    if (meth.equals("GET")) {      // check for no query params      if (req.getQueryString() != null) {        Map m = HttpUtils.parseQueryString(req.getQueryString());        parseParams(m);      }    } else if (meth.equals("POST")) {      int len = req.getContentLength();      in = req.getInputStream();      Map m = HttpUtils.parsePostData(len, in);      parseParams(m);    }  }