Commit 26ebaaa8 authored by Kevin's avatar Kevin
Browse files

add serverStatus stgh jadi

parent 4337c33b
......@@ -191,9 +191,9 @@ public class EndpointMethod {
}
public static void main(String argv[]) throws IOException, ParseException {
// public static void main(String argv[]) throws IOException, ParseException {
// EndpointMethod tes = new EndpointMethod();
// System.out.println(tes.inventory("Kevi"));
// System.out.println(tes.mixItem("Kevin", "r11", "r23"));
}
// }
}
......@@ -10,6 +10,7 @@
*/
import java.io.*;
import java.net.*;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
class TCPServer {
......@@ -28,9 +29,27 @@ class TCPServer {
newServer.close();
}
// public static String serverStatus(Object inObj) {
// JSONObject resultJson=new JSONObject();
// if (inObj != null) {
// JSONObject inJson = (JSONObject) inObj;
// if (inJson.containsKey("method")) {
// if (inJson.get("method").toString().equalsIgnoreCase("serverStatus")) {
// JSONArray server_list_active=new JSONArray();
// server_list_active= (JSONArray) inJson.get("server");
// System.out.println(server_list_active);
// resultJson.put("status", "ok");
// }
// }
// }
// resultJson.put("status", "error");
// return resultJson.toString();
// }
public static void main(String argv[]) throws Exception {
// ConnectionHandler CH = new ConnectionHandler();
// CH.start();
join();
}
}
......@@ -120,9 +120,9 @@ public class crudDB {
return resultJson.toString();
}
public static void main(String argv[]) throws Exception {
// public static void main(String argv[]) throws Exception {
// crudDB tes=new crudDB();
// System.out.println(tes.signUp("Kevin", "123"));
// System.out.println(tes.login("Kevin", "123"));
}
// }
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment