| | |
| | | @Override |
| | | protected String get(HttpExchange e) { |
| | | String path = e.getRequestURI().toString(); |
| | | String[] elems = path.split(App.getRs(Server.RB_SLASH)); |
| | | String[] elems = path.split(Server.SLASH); |
| | | String plname = elems[elems.length - 1]; |
| | | FileStorage fs = new FileStorage(App.getInitParameter(App.getRs(App.RB_AP_CONF))); |
| | | String json = fs.readJson(FileStorage.ST_ABSPIELLISTE, plname); |
| | |
| | | @Override |
| | | protected String put(HttpExchange e) throws IOException { |
| | | String path = e.getRequestURI().toString(); |
| | | String[] elems = path.split(App.getRs(Server.RB_SLASH)); |
| | | String[] elems = path.split(Server.SLASH); |
| | | String response = "ListHandler.put: ungueltiger URL"; |
| | | switch(elems.length) { |
| | | case 5: // ohne nr am Ende |