| | |
| | | |
| | | public void run(HttpExchange exchange) { |
| | | try { |
| | | super.run(exchange); |
| | | init(exchange); |
| | | String query = exchange.getRequestURI().getQuery(); |
| | | if (query != null) { |
| | | String[] params = query.split(FileServer.STR_EQUAL); |
| | |
| | | |
| | | private void copyOrMove(HttpExchange exchange, String quelle, String ziel, int op) throws IOException { |
| | | String[] dateiNamen = dateiliste(exchange); |
| | | new Mover().copyOrMoveFiles(quelle, ziel, dateiNamen, op, base); |
| | | if(op == Mover.OP_COPY) { |
| | | new Mover().copy(quelle, ziel, dateiNamen, base); |
| | | } else { |
| | | new Mover().move(quelle, ziel, dateiNamen, base); |
| | | } |
| | | //new Mover().copyOrMoveFiles(quelle, ziel, dateiNamen, op, base); |
| | | antwort(exchange, HttpResponder.SC_OK, "Dateien verarbeitet."); |
| | | } |
| | | |