All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.anotheria.moskito.webui.tracers.action.ShowTracersAction Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
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 net.anotheria.moskito.webui.tracers.api.TracerAO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Shows currently active tracers.
 *
 * @author lrosenberg
 * @since 05.05.15 00:41
 */
public class ShowTracersAction extends BaseTracersAction{
	@Override
	public ActionCommand execute(ActionMapping actionMapping, FormBean formBean, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {

		List tracers = getTracerAPI().getTracers();
		httpServletRequest.setAttribute("tracersCount", tracers.size());
		httpServletRequest.setAttribute("tracers", tracers);

		return actionMapping.success();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy