diff options
author | jbion <joffrey.bion@amadeus.com> | 2016-12-20 20:11:55 +0100 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2016-12-21 01:29:28 +0100 |
commit | b7d3c5771af4fdedc2ca73f50d2d6f6c41ca0d41 (patch) | |
tree | 073a64a95dd8af51a9cd025eb2b422db6cc6d846 /src | |
parent | Add missing tests to DestinationAccessValidatorTest (diff) | |
download | seven-wonders-b7d3c5771af4fdedc2ca73f50d2d6f6c41ca0d41.tar.gz seven-wonders-b7d3c5771af4fdedc2ca73f50d2d6f6c41ca0d41.tar.bz2 seven-wonders-b7d3c5771af4fdedc2ca73f50d2d6f6c41ca0d41.zip |
Remove experimental TestController
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/controllers/TestController.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/controllers/TestController.java b/src/main/java/org/luxons/sevenwonders/controllers/TestController.java deleted file mode 100644 index 0fd9e0c1..00000000 --- a/src/main/java/org/luxons/sevenwonders/controllers/TestController.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.luxons.sevenwonders.controllers; - -import org.springframework.messaging.handler.annotation.MessageMapping; -import org.springframework.messaging.handler.annotation.SendTo; -import org.springframework.messaging.simp.SimpMessageHeaderAccessor; -import org.springframework.messaging.simp.annotation.SendToUser; -import org.springframework.stereotype.Controller; - -@Controller -public class TestController { - - // sent to subscribers of /topic/test1 - @MessageMapping("/test1") - public String test1(SimpMessageHeaderAccessor headerAccessor) throws Exception { - System.out.println("No annotation - " + headerAccessor.getSessionId()); - - return "success test1"; - } - - // sent to subscribers of /broadcast/test2 - @MessageMapping("/test2") - @SendTo("/broadcast/test2") - public String test2(SimpMessageHeaderAccessor headerAccessor) throws Exception { - System.out.println("@SendTo /broadcast/test2 - " + headerAccessor.getSessionId()); - - return "success test2"; - } - - @MessageMapping("/test3") - @SendToUser("/broadcast/test3") - public String test3(SimpMessageHeaderAccessor headerAccessor) throws Exception { - System.out.println("@SendToUser /broadcast/test3 - " + headerAccessor.getSessionId()); - - return "success test3"; - } - - @MessageMapping("/test4") - @SendToUser("/test4") - public String test4(SimpMessageHeaderAccessor headerAccessor) throws Exception { - System.out.println("@SendToUser /test4 - " + headerAccessor.getSessionId()); - - return "success test4"; - } - - // sent to the caller user if he subscribed to /user/queue/test5 - // other subscribers of /user/queue/test5 are NOT notified - @MessageMapping("/test5") - @SendToUser - public String test5(SimpMessageHeaderAccessor headerAccessor) throws Exception { - System.out.println("@SendToUser (no path) - " + headerAccessor.getSessionId()); - - return "success test5"; - } - - // sent to the caller user if he subscribed to /user/queue/test6 - // other subscribers of /user/queue/test6 are NOT notified - @MessageMapping("/test6") - // TODO - public String test6(SimpMessageHeaderAccessor headerAccessor) throws Exception { - // TODO - System.out.println("@SendToUser (no path) - " + headerAccessor.getSessionId()); - - return "success test6"; - } -} |