From 194a9a763c6b11d207e682b2f93de94475c473b4 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Sat, 12 Nov 2016 01:34:07 +0700 Subject: extracted application configuration from Mvc configuration with application specific beans; extracted bean initialization from constructor; force using properties; --- .../main/java/com/juick/ws/StatusController.java | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 juick-ws/src/main/java/com/juick/ws/StatusController.java (limited to 'juick-ws/src/main/java/com/juick/ws/StatusController.java') diff --git a/juick-ws/src/main/java/com/juick/ws/StatusController.java b/juick-ws/src/main/java/com/juick/ws/StatusController.java deleted file mode 100644 index f7e80106..00000000 --- a/juick-ws/src/main/java/com/juick/ws/StatusController.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.juick.ws; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestMethod; -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.servlet.ModelAndView; - -import javax.inject.Inject; - -/** - * Created by vitalyster on 19.07.2016. - */ -@Controller -@ResponseBody -public class StatusController { - @Inject - WebsocketComponent wsHandler; - @Inject - XMPPConnection ws; - - @RequestMapping(method = RequestMethod.GET, headers = "Connection!=upgrade", value = "/") - public ModelAndView status() { - ModelAndView modelAndView = new ModelAndView(); - modelAndView.addObject("clients", wsHandler.clients.size()); - modelAndView.setViewName("index"); - return modelAndView; - } - -} -- cgit v1.2.3