1 17 package org.apache.geronimo.console.apache.jk; 18 19 import org.apache.geronimo.console.MultiPageModel; 20 21 import javax.portlet.ActionRequest; 22 import javax.portlet.ActionResponse; 23 import javax.portlet.PortletException; 24 import javax.portlet.RenderRequest; 25 import javax.portlet.RenderResponse; 26 import java.io.IOException ; 27 28 33 public class ConfigHandler extends BaseApacheHandler { 34 public ConfigHandler() { 35 super(BASIC_CONFIG_MODE, "/WEB-INF/view/apache/jk/config.jsp"); 36 } 37 38 public String actionBeforeView(ActionRequest request, ActionResponse response, MultiPageModel mpm) throws PortletException, IOException { 39 request.getPortletSession(true).removeAttribute(ApacheModel.WEB_APP_SESSION_KEY); 40 return getMode(); 41 } 42 43 public void renderView(RenderRequest request, RenderResponse response, MultiPageModel model) throws PortletException, IOException { 44 } 45 46 public String actionAfterView(ActionRequest request, ActionResponse response, MultiPageModel model) throws PortletException, IOException { 47 return WEB_APP_MODE+BEFORE_ACTION; 48 } 49 } 50 | Popular Tags |