
net.anotheria.moskito.webui.journey.action.DeleteJourneyAction Maven / Gradle / Ivy
package net.anotheria.moskito.webui.journey.action;
import net.anotheria.anoplass.api.APIException;
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;
/**
* Deletes a journey.
*
* @author lrosenberg
* @since 22.05.14 09:14
*/
public class DeleteJourneyAction extends BaseJourneyAction {
@Override
public ActionCommand execute(ActionMapping mapping, FormBean formBean, HttpServletRequest req, HttpServletResponse res) throws APIException {
String journeyName = req.getParameter("pJourneyName");
getJourneyAPI().deleteJourney(journeyName);
return mapping.redirect();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy