commit | author | age | ||
098eef | 1 | package de.uhilger.calypso.handler; |
U | 2 | |
3 | import com.sun.net.httpserver.HttpExchange; | |
4 | import de.uhilger.calypso.App; | |
5 | ||
6 | /** | |
7 | * | |
8 | * @author Ulrich Hilger | |
9 | */ | |
10 | public class MPVKillHandler extends AbstractHandler { | |
11 | ||
12 | @Override | |
13 | protected String process(HttpExchange t, String params) { | |
14 | Process p = App.getPlayerProcess(); | |
15 | p.destroy(); | |
16 | App.setPlayerProcess(null); | |
17 | String antwort = "Player-Prozess beendet."; | |
18 | return antwort; | |
19 | } | |
20 | ||
21 | } |