0_0_12816486_29459\Main.java:1: 需要为 class、interface 或 enum
private static String request(String method, String url) {
^
0_0_12816486_29459\Main.java:4: 需要为 class、interface 或 enum
StringBuilder result = new StringBuilder();
^
0_0_12816486_29459\Main.java:6: 需要为 class、interface 或 enum
try {
^
0_0_12816486_29459\Main.java:11: 需要为 class、interface 或 enum
HttpClient httpClient = new DefaultHttpClient();
^
0_0_12816486_29459\Main.java:12: 需要为 class、interface 或 enum
httpResponse = httpClient.execute(httpGet);
^
0_0_12816486_29459\Main.java:14: 需要为 class、interface 或 enum
HttpEntity httpEntity = httpResponse.getEntity();
^
0_0_12816486_29459\Main.java:16: 需要为 class、interface 或 enum
result.append(EntityUtils.toString(httpEntity, "utf-8"));
^
0_0_12816486_29459\Main.java:18: 需要为 class、interface 或 enum
StatusLine statusLine = httpResponse.getStatusLine();
^
0_0_12816486_29459\Main.java:20: 需要为 class、interface 或 enum
result.append("Protocol: " + statusLine.getProtocolVersion());
^
0_0_12816486_29459\Main.java:22: 需要为 class、interface 或 enum
int statusCode = statusLine.getStatusCode();
^
0_0_12816486_29459\Main.java:24: 需要为 class、interface 或 enum
result.append("StatusCode: " + statusCode);
^
0_0_12816486_29459\Main.java:26: 需要为 class、interface 或 enum
} else if (method.equals("POST")) {
^
0_0_12816486_29459\Main.java:30: 需要为 class、interface 或 enum
HttpClient httpClient = new DefaultHttpClient();
^
0_0_12816486_29459\Main.java:31: 需要为 class、interface 或 enum
httpResponse = httpClient.execute(httpPost);
^
0_0_12816486_29459\Main.java:33: 需要为 class、interface 或 enum
HttpEntity httpEntity = httpResponse.getEntity();
^
0_0_12816486_29459\Main.java:35: 需要为 class、interface 或 enum
result.append(EntityUtils.toString(httpEntity, "utf-8"));
^
0_0_12816486_29459\Main.java:37: 需要为 class、interface 或 enum
StatusLine statusLine = httpResponse.getStatusLine();
^
0_0_12816486_29459\Main.java:39: 需要为 class、interface 或 enum
statusLine.getProtocolVersion();
^
0_0_12816486_29459\Main.java:41: 需要为 class、interface 或 enum
int statusCode = statusLine.getStatusCode();
^
0_0_12816486_29459\Main.java:43: 需要为 class、interface 或 enum
result.append("StatusCode:" + statusCode);
^
0_0_12816486_29459\Main.java:45: 需要为 class、interface 或 enum
}
^
0_0_12816486_29459\Main.java:52: 需要为 class、interface 或 enum
}
|