commit | author | age
|
0c8d27
|
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 |
*/ |
b5cc80
|
11 |
public class CmdHandler extends AbstractHandler { |
0c8d27
|
12 |
|
U |
13 |
private static final Logger logger = Logger.getLogger(CmdHandler.class.getName()); |
|
14 |
|
cc2a32
|
15 |
public CmdHandler(String cmd) { |
U |
16 |
this.cmd = cmd; |
63b711
|
17 |
} |
U |
18 |
|
|
19 |
protected String process(HttpExchange t, String params) { |
|
20 |
String antwort = this.kommando(cmd); |
|
21 |
logger.log(Level.FINE, antwort); |
|
22 |
return antwort; |
|
23 |
} |
|
24 |
|
0c8d27
|
25 |
} |