
net.anotheria.moskito.webui.tracers.action.DisableTracerAction Maven / Gradle / Ivy
package net.anotheria.moskito.webui.tracers.action;
import net.anotheria.maf.action.ActionCommand;
import net.anotheria.maf.action.ActionMapping;
import net.anotheria.maf.bean.FormBean;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* Disables a tracer.
*
* @author lrosenberg
* @since 05.05.15 17:09
*/
public class DisableTracerAction extends BaseTracersAction{
@Override
public ActionCommand execute(ActionMapping actionMapping, FormBean formBean, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
String producerId = httpServletRequest.getParameter(PARAM_PRODUCER_ID);
getTracerAPI().disableTracer(producerId);
return actionMapping.redirect();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy