|  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor; | 
 |  |  |  | 
 |  |  | import java.io.File; | 
 |  |  | import java.io.IOException; | 
 |  |  | import java.util.HashMap; | 
 |  |  | import java.util.logging.Level; | 
 |  |  | 
 |  |  |  * Maschine ein NFS-Mount ueber /etc/fstab eingerichtet ist. | 
 |  |  |  *  | 
 |  |  |  * @author ulrich | 
 |  |  |  * @version 0.1, 20.03.2021 | 
 |  |  |  */ | 
 |  |  | public class App { | 
 |  |  |    | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor; | 
 |  |  |  | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor; | 
 |  |  |  | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpServer; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |  * To change this license header, choose License Headers in Project Properties. | 
 |  |  |  * To change this template file, choose Tools | Templates | 
 |  |  |  * and open the template in the editor. | 
 |  |  |  */ | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import de.uhilger.avdirektor.App; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |  * To change this license header, choose License Headers in Project Properties. | 
 |  |  |  * To change this template file, choose Tools | Templates | 
 |  |  |  * and open the template in the editor. | 
 |  |  |  */ | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; | 
 
 |  |  | 
 |  |  | /* | 
 |  |  |     AV-Direktor - Control OMXPlayer on Raspberry Pi via HTTP | 
 |  |  |     Copyright (C) 2021  Ulrich Hilger | 
 |  |  |  | 
 |  |  |     This program is free software: you can redistribute it and/or modify | 
 |  |  |     it under the terms of the GNU Affero General Public License as | 
 |  |  |     published by the Free Software Foundation, either version 3 of the | 
 |  |  |     License, or (at your option) any later version. | 
 |  |  |  | 
 |  |  |     This program is distributed in the hope that it will be useful, | 
 |  |  |     but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 |  |  |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 |  |  |     GNU Affero General Public License for more details. | 
 |  |  |  | 
 |  |  |     You should have received a copy of the GNU Affero General Public License | 
 |  |  |     along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
 |  |  | */ | 
 |  |  |  | 
 |  |  | package de.uhilger.avdirektor.handler; | 
 |  |  |  | 
 |  |  | import com.sun.net.httpserver.HttpExchange; |