public static void parseParams( HttpServletRequest req) throws IOException { String meth = req.getMethod(); if (meth.equals("GET")) {  if (req.getQueryString() != null) { Map m = HttpUtils.parseQueryString(req.getQueryString()); parseParams(m);
public void parseParams( HttpServletRequest req) throws IOException, ClassNotFoundException {  String reqQueryString = req.getQueryString(); if (reqQueryString != null) { Map m = HttpUtils.parseQueryString(reqQueryString); ServletUtil.ParamVisitor vis = new ServletUtil.ParamVisitor() { public void setParam(String name, String value) { if ("find".equalsIgnoreCase(name)) { if ("down".equalsIgnoreCase(value)) { isDown = true; } else if ("up".equalsIgnoreCase(value)) { isDown = false; } } else if ("format".equalsIgnoreCase(name)) { if ("data".equalsIgnoreCase(value)) { returnAsData = true; } else if ("html".equalsIgnoreCase(value)) { returnAsData = false; } } else if ("limit".equalsIgnoreCase(name)) { try { limit = Integer.parseInt(value); if (limit < 0) { limit = Integer.MAX_VALUE; } } catch (NumberFormatException nfe) { } } else if ("uid".equalsIgnoreCase(name)) { uid = value; } } }; ServletUtil.parseParams(vis, m);
  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);    }  }