commit | author | age
|
098eef
|
1 |
package de.uhilger.calypso.handler; |
U |
2 |
|
|
3 |
import com.sun.net.httpserver.HttpExchange; |
|
4 |
import de.uhilger.calypso.App; |
|
5 |
import java.util.logging.Level; |
|
6 |
import java.util.logging.Logger; |
|
7 |
|
|
8 |
/** |
|
9 |
* |
|
10 |
* @author Ulrich Hilger |
|
11 |
*/ |
|
12 |
public class MPVPlayHandler extends AbstractHandler { |
|
13 |
|
|
14 |
private static final Logger logger = Logger.getLogger(MPVPlayHandler.class.getName()); |
|
15 |
|
|
16 |
@Override |
|
17 |
protected String process(HttpExchange t, String params) { |
|
18 |
Player player = App.getPlayer(); |
|
19 |
String antwort = player.abspielen( |
|
20 |
player.getParam(map, "titel"), params, player.getParam(map, "r"), "1"); |
|
21 |
logger.log(Level.FINE, antwort); |
|
22 |
return antwort; |
|
23 |
} |
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
} |