diff --git a/src/main/java/org/t246osslab/easybuggy4sb/controller/ServerInfoController.java b/src/main/java/org/t246osslab/easybuggy4sb/controller/ServerInfoController.java new file mode 100644 index 0000000..ca12184 --- /dev/null +++ b/src/main/java/org/t246osslab/easybuggy4sb/controller/ServerInfoController.java @@ -0,0 +1,22 @@ +package org.t246osslab.easybuggy4sb.controller; + +import java.io.IOException; +import java.util.Properties; + +import javax.servlet.http.HttpServletResponse; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +public class ServerInfoController { + + @RequestMapping(value = "/serverinfo") + public void serverinfo(HttpServletResponse res) throws IOException { + Properties properties = System.getProperties(); + for (Object key : properties.keySet()) { + Object value = properties.get(key); + res.getWriter().write("" + key + "" + value + ""); + } + } +} \ No newline at end of file diff --git a/src/main/webapp/uid/clientinfo.html b/src/main/webapp/uid/clientinfo.html index 671d0fc..4359280 100644 --- a/src/main/webapp/uid/clientinfo.html +++ b/src/main/webapp/uid/clientinfo.html @@ -22,6 +22,22 @@


-

TODO: Under Constructing

+

Your browser information

+ \ No newline at end of file diff --git a/src/main/webapp/uid/serverinfo.html b/src/main/webapp/uid/serverinfo.html index 189d271..3ba6a91 100644 --- a/src/main/webapp/uid/serverinfo.html +++ b/src/main/webapp/uid/serverinfo.html @@ -22,7 +22,23 @@


-

TODO: Under Constructing

-

This is administrator page that cannot access general users.

+ + + + + + +
keyvalue
\ No newline at end of file