m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/pl/edu/mimuw/cloudatlas
diff options
context:
space:
mode:
authorMagdalena GrodziƄska <m.grodzinska@gmx.com>2019-11-19 19:17:41 +0100
committerGitHub <noreply@github.com>2019-11-19 19:17:41 +0100
commiteef8436d8e58623b431810471f92f12b20c87434 (patch)
treebb2c23d06471e006b8875cc1c17727a41edba1a7 /src/main/java/pl/edu/mimuw/cloudatlas
parent11df9be19067a6567b499d37cba07e41d21b3c52 (diff)
parent15bfb6898f50343e3b79115a6988e0340d91d094 (diff)
Merge pull request #20 from m-chrzan/spring_setup
Add controller and exception handler skeleton
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas')
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java25
-rw-r--r--src/main/java/pl/edu/mimuw/cloudatlas/client/ExceptionHandler.java4
2 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java
new file mode 100644
index 0000000..3b0ec63
--- /dev/null
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/Controller.java
@@ -0,0 +1,25 @@
+package pl.edu.mimuw.cloudatlas.client;
+
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/*
+should enable reading attribute values stored by the agent
+installing and
+uninstalling queries, and
+setting fallback contacts.
+
+Apart from providing forms for queries and fallback contacts,
+and presenting the information fetched from the agent in a textual form (with automatic refreshment),
+plotting the attributes with numeric values as real-time graphs.
+*/
+
+@RestController
+public class Controller {
+
+ @GetMapping("/")
+ public String homePage(Model model) {
+ return "home";
+ }
+}
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/client/ExceptionHandler.java b/src/main/java/pl/edu/mimuw/cloudatlas/client/ExceptionHandler.java
new file mode 100644
index 0000000..16542d1
--- /dev/null
+++ b/src/main/java/pl/edu/mimuw/cloudatlas/client/ExceptionHandler.java
@@ -0,0 +1,4 @@
+package pl.edu.mimuw.cloudatlas.client;
+
+public class ExceptionHandler {
+}