()
| 21 | private DispatcherServlet dispatcherServlet; |
| 22 | |
| 23 | public HTTPServer() { |
| 24 | try { |
| 25 | server = new ServerSocket(PORT); |
| 26 | listener = new Listener(); |
| 27 | listener.start(); |
| 28 | dispatcherServlet = new DispatcherServlet(); |
| 29 | log.info("服务器启动"); |
| 30 | } catch (IOException e) { |
| 31 | e.printStackTrace(); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | public void close() { |
| 36 | listener.shutdown(); |
nothing calls this directly
no outgoing calls
no test coverage detected