commit | author | age
|
63b711
|
1 |
package de.uhilger.avdirektor.handler; |
U |
2 |
|
|
3 |
import com.sun.net.httpserver.HttpExchange; |
|
4 |
import java.util.logging.Level; |
|
5 |
import java.util.logging.Logger; |
|
6 |
|
|
7 |
/** |
|
8 |
* |
|
9 |
* @author ulrich |
|
10 |
*/ |
|
11 |
public class SeekHandler extends PlayHandler { |
|
12 |
|
|
13 |
private static final Logger logger = Logger.getLogger(SeekHandler.class.getName()); |
|
14 |
|
|
15 |
public SeekHandler(String cmd) { |
|
16 |
super(cmd); |
|
17 |
} |
|
18 |
|
|
19 |
@Override |
|
20 |
protected String process(HttpExchange t, String params) { |
b6a8f0
|
21 |
String antwort = abspielen( |
63b711
|
22 |
getParam(map, "titel"), params, getParam(map, "r"), "1"); |
U |
23 |
logger.log(Level.FINE, antwort); |
|
24 |
return antwort; |
|
25 |
} |
|
26 |
|
|
27 |
protected StringBuilder buildParams(HttpExchange t) { |
|
28 |
StringBuilder params = super.buildParams(t); |
|
29 |
params.append(" --pos "); |
852f20
|
30 |
params.append(getParam(map, "pos")); |
63b711
|
31 |
return params; |
U |
32 |
} |
|
33 |
|
|
34 |
} |