??????????????HttpServer?????????????
???????????? ???????[ 2014/2/28 10:21:22 ] ?????????????? ???? ????
????public void run() {
????Random rd = new Random();
????int index = rd.nextInt(60);
????if (index < 10){
????index = index + 10;
????}
????String indexStr = Integer.toString(index);
????String path = indexStr+”-”+indexStr+”-”+indexStr+”/”;
????LogGetter logGetter = new LogGetter();
????logGetter.setPath(path);
????String runningLog = logGetter.getRunningLog(0L);
????if(runningLog.contains( “T3_000000000″ + indexStr)){
????System.out.println(“==============>”+”exit”);
????}else
????{
????String[] lines = runningLog.split(“ ”);
????System.out.println(“????:” + indexStr + “ ” + “?????????” + lines[0] + “ ”);
????}
????}
????}
????}
??????λ?????????????????????????????????????д???parserQuery?????????????url????????url???в??????????
????Map params = HttpUtils.parseQuery(httpExchange.getRequestURI().getQuery());
????public static Map parserQuery(String query) throws UnsupportedEncodingException {
????Map parameters = new HashMap();
????if (query != null) {
????String pairs[] = query.split(“[&]“);
????for (String pair : pairs) {
????String param[] = pair.split(“[=]“);
????String key = null;
????String value = null;
????if (param.length > 0) {
????key = URLDecoder.decode(param[0]?? System.getProperty(“file.encoding”));
????}
????if (param.length > 1) {
????value = URLDecoder.decode(param[1]?? System.getProperty(“file.encoding”));
????}
????parameters.put(key?? value);
????}
????}
????return parameters;
????}
??????????μ?params??????????1000????????10000??50000????????????????????????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11