Nicht erforderliche globale Variablen entfernt
| | |
| | | public static final String RB_AP_CONF = "appParamConf"; |
| | | public static final String RB_AP_WWW_DATA = "appParamWWWData"; |
| | | public static final String RB_AP_CTX = "appParamCtx"; |
| | | public static final String RB_AP_UI = "appParamUi"; |
| | | public static final String RB_EP_LISTE = "epliste"; |
| | | public static final String RB_EP_LISTE_ALLES = "eplisteAlles"; |
| | | public static final String RB_AUDIOEXTS = "audioexts"; |
| | | public static final String RB_VIDEOEXTS = "videoexts"; |
| | | public static final String RB_PLAYERPARAMS = "playerparams"; |
| | | public static final String RB_HOST = "host"; |
| | | |
| | | |
| | | /** |
| | | * <p>Start-Methode dieser Anwendung</p> |
| | | * |
| | |
| | | */ |
| | | public class ListFileHandler extends FileHandler { |
| | | |
| | | public static final String RB_AUDIOEXTS = "audioexts"; |
| | | public static final String RB_VIDEOEXTS = "videoexts"; |
| | | |
| | | /* Der Logger fuer diesen ListFileHandler */ |
| | | private static final Logger logger = Logger.getLogger(ListFileHandler.class.getName()); |
| | | |
| | |
| | | z.B. "mp4,m4v" |
| | | */ |
| | | FileStorage fs = new FileStorage(conf); |
| | | initMap(fs, getResString(App.RB_AUDIOEXTS), StorageFile.TYP_AUDIO); |
| | | initMap(fs, getResString(App.RB_VIDEOEXTS), StorageFile.TYP_VIDEO); |
| | | initMap(fs, getResString(RB_AUDIOEXTS), StorageFile.TYP_AUDIO); |
| | | initMap(fs, getResString(RB_VIDEOEXTS), StorageFile.TYP_VIDEO); |
| | | } |
| | | |
| | | private void initMap(Storage s, String key, String typ) { |
| | |
| | | public static final String PL_CMD_CALYPSO_PLAYON = "playon"; |
| | | public static final String DEFAULT_HOST = "http://localhost:9090"; |
| | | |
| | | public static final String RB_HOST = "host"; |
| | | public static final String RB_PLAYERPARAMS = "playerparams"; |
| | | |
| | | private final Map spielt = new HashMap(); |
| | | |
| | | private String conf; |
| | |
| | | Entity entity = fs.read(FileStorage.ST_ABSPIELER, elems[4]); |
| | | if (entity instanceof Abspieler) { |
| | | Abspieler abspieler = (Abspieler) entity; |
| | | String server = getEinstellung(fs, getResString(App.RB_HOST), DEFAULT_HOST); |
| | | String server = getEinstellung(fs, getResString(RB_HOST), DEFAULT_HOST); |
| | | String signal = abspielKommando(fs, abspieler, server, titelUrl, abspielerKmd).toString(); |
| | | abspielerKommandoSenden(signal); |
| | | return signal + "gesendet."; |
| | |
| | | vorgang.setTitelNr(titelNr); |
| | | spielt.put(abspieler.getName(), vorgang); |
| | | |
| | | String server = getEinstellung(s, getResString(App.RB_HOST), DEFAULT_HOST); |
| | | String server = getEinstellung(s, getResString(RB_HOST), DEFAULT_HOST); |
| | | |
| | | /* |
| | | |
| | |
| | | //kmd.append(PL_CMD_PLAY); |
| | | kmd.append(abspielKmd); |
| | | // Parameter fuer den Abspieler holen |
| | | kmd.append(getEinstellung(s, getResString(App.RB_PLAYERPARAMS), PL_DEFAULT_PARAMS)); |
| | | kmd.append(getEinstellung(s, getResString(RB_PLAYERPARAMS), PL_DEFAULT_PARAMS)); |
| | | kmd.append(server); |
| | | kmd.append(titelUrl); |
| | | |
| | |
| | | import com.sun.net.httpserver.HttpContext; |
| | | import com.sun.net.httpserver.HttpExchange; |
| | | import de.uhilger.tango.App; |
| | | import static de.uhilger.tango.App.RB_EP_LISTE; |
| | | import static de.uhilger.tango.App.RB_EP_LISTE_ALLES; |
| | | import de.uhilger.tango.Server; |
| | | import de.uhilger.tango.entity.Ablageort; |
| | | import de.uhilger.tango.store.FileStorage; |
| | |
| | | |
| | | private static final Logger logger = Logger.getLogger(StorageHandler.class.getName()); |
| | | |
| | | public static final String RB_EP_LISTE = "epliste"; |
| | | public static final String RB_EP_LISTE_ALLES = "eplisteAlles"; |
| | | |
| | | private String conf; |
| | | |
| | | public StorageHandler(String conf) { |