Package chrriis.common.WebServer

Examples of chrriis.common.WebServer.HTTPData


          }
          sb.append("</table>");
          HTTPData[] httpPostDataArray = httpRequest.getHTTPPostDataArray();
          if(httpPostDataArray != null) {
            sb.append("<h1>HTTP POST Data</h1><table border=\"1\">");
            HTTPData httpPostData = httpPostDataArray[0];
            Map<String, String> postHeaderMap = httpPostData.getHeaderMap();
            String[] postKeys = postHeaderMap.keySet().toArray(new String[0]);
            Arrays.sort(postKeys, String.CASE_INSENSITIVE_ORDER);
            for(String key: postKeys) {
              sb.append("<tr><td>");
              sb.append(Utils.escapeXML(key));
View Full Code Here


          return getInputStream(content);
        }
      };
    }
    if("postCommand".equals(type)) {
      HTTPData postData = httpRequest.getHTTPPostDataArray()[0];
      Map<String, String> headerMap = postData.getHeaderMap();
      int size = headerMap.size();
      final String command = headerMap.get("j_command");
      final String[] arguments = new String[size - 1];
      for(int i=0; i<arguments.length; i++) {
        arguments[i] = headerMap.get("j_arg" + i);
View Full Code Here

TOP

Related Classes of chrriis.common.WebServer.HTTPData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.