commit | author | age
|
8d7d35
|
1 |
/* |
U |
2 |
Mediazentrale - Personal Media Center |
|
3 |
Copyright (C) 2021 Ulrich Hilger |
|
4 |
|
|
5 |
This program is free software: you can redistribute it and/or modify |
|
6 |
it under the terms of the GNU Affero General Public License as |
|
7 |
published by the Free Software Foundation, either version 3 of the |
|
8 |
License, or (at your option) any later version. |
|
9 |
|
|
10 |
This program is distributed in the hope that it will be useful, |
|
11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
GNU Affero General Public License for more details. |
|
14 |
|
|
15 |
You should have received a copy of the GNU Affero General Public License |
|
16 |
along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
17 |
*/ |
|
18 |
package de.uhilger.mediaz.api; |
|
19 |
|
|
20 |
import com.sun.net.httpserver.HttpExchange; |
|
21 |
import java.io.IOException; |
|
22 |
|
|
23 |
/** |
|
24 |
* Der ListHandler bearbeitet HTTP-Anfragen zu Abspiellisten |
|
25 |
* |
|
26 |
* GET /mz/api/alist/[pl-name] die Titel-Objekte der Liste [pl-name] liefern |
|
27 |
* PUT /mz/api/alist/[pl-name] den Titel im Body anfuegen an die Liste [pl-name] |
|
28 |
* PUT /mz/api/alist/[pl-name]/[nr] an der Position nr der Liste [pl-name] den Titel im Body einfuegen |
|
29 |
* DELETE /mz/api/alist/[pl-name]/[nr] den Titel an der Position [nr] aus der Liste [pl-name] entfernen |
|
30 |
* |
|
31 |
* @author Ulrich Hilger |
|
32 |
* @version 1, 8.4.2021 |
|
33 |
*/ |
|
34 |
public class ListHandler extends AbstractHandler { |
|
35 |
|
|
36 |
@Override |
|
37 |
protected String get(HttpExchange e) { |
|
38 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
39 |
} |
|
40 |
|
|
41 |
@Override |
|
42 |
protected String put(HttpExchange e) throws IOException { |
|
43 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
44 |
} |
|
45 |
|
|
46 |
@Override |
|
47 |
protected String post(HttpExchange e) { |
|
48 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
49 |
} |
|
50 |
|
|
51 |
@Override |
|
52 |
protected boolean delete(HttpExchange e) { |
|
53 |
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. |
|
54 |
} |
|
55 |
|
|
56 |
} |