| | |
| | | server.createContext(ctx + rb.getString(RB_WEBROOT), new FileHandler(wwwDir.getAbsolutePath())); |
| | | ablageorteEinklinken(server, rb, conf); |
| | | server.createContext(ctx + rb.getString(RB_STORE), new StorageHandler(conf)); |
| | | server.createContext(ctx + rb.getString(RB_STRG), new MediaSteuerung(conf)); |
| | | MediaSteuerung ms = new MediaSteuerung(conf); |
| | | server.createContext(ctx + rb.getString(RB_STRG), ms); |
| | | server.createContext(ctx + rb.getString(RB_GSTRG), new GeraetSteuerung(conf)); |
| | | server.createContext(ctx + rb.getString(RB_ALIST), new ListHandler(conf)); |
| | | ListHandler lh = new ListHandler(conf); |
| | | lh.addPlaylistListener(ms); |
| | | server.createContext(ctx + rb.getString(RB_ALIST), lh); |
| | | server.createContext(ctx + rb.getString(RB_STRM), new StreamHandler(conf)); |
| | | server.createContext(ctx + rb.getString(RB_STOP_SERVER), new StopServerHandler()); |
| | | //server.setExecutor(Executors.newFixedThreadPool(20)); |