package de.uhilger.avdirektor.handler;
|
|
import com.sun.net.httpserver.HttpExchange;
|
import java.util.logging.Level;
|
import java.util.logging.Logger;
|
|
/**
|
*
|
* @author ulrich
|
*/
|
public class CmdHandler extends AbstractHandler {
|
|
private static final Logger logger = Logger.getLogger(CmdHandler.class.getName());
|
|
public CmdHandler(String cmd) {
|
this.cmd = cmd;
|
}
|
|
protected String process(HttpExchange t, String params) {
|
String antwort = this.kommando(cmd);
|
logger.log(Level.FINE, antwort);
|
return antwort;
|
}
|
|
}
|