Stops the server. @throws IOException I/O exception
()
| 179 | * @throws IOException I/O exception |
| 180 | */ |
| 181 | public void stop() throws IOException { |
| 182 | final StaticOptions sopts = context.soptions; |
| 183 | final int port = sopts.get(StaticOptions.SERVERPORT); |
| 184 | final String host = sopts.get(StaticOptions.SERVERHOST); |
| 185 | stop(host.isEmpty() ? S_LOCALHOST : host, port); |
| 186 | } |
| 187 | |
| 188 | /** |
| 189 | * Shuts down the server. |
no test coverage detected