1 package enhydraManager.presentation; 2 3 import enhydraManager.spec.*; 4 5 import java.util.Vector ; 7 import java.io.IOException ; 8 9 11 import org.w3c.dom.html.HTMLAnchorElement; 12 import org.w3c.dom.html.HTMLMetaElement; 13 import org.w3c.dom.Node ; 14 import com.lutris.appserver.server.httpPresentation.*; 15 public class Deploy implements HttpPresentation { 16 17 18 19 public void run(HttpPresentationComms comms) throws HttpPresentationException,ClientPageRedirectException, IOException { 20 21 22 String service = comms.request.getParameter("service"); 23 String host = comms.request.getParameter("host"); 24 String contextPath = comms.request.getParameter("contextPath"); 25 String contextFilePath = comms.request.getParameter("contextFilePath"); 26 String warPath = comms.request.getParameter("warPath"); 27 28 29 AppManager manager=AppManagerFactory.getManager("enhydraManager.business.AppManagerImpl"); 30 31 32 String message = manager.deploy(service,host,contextPath,contextFilePath,warPath); 33 34 35 36 37 throw new ClientPageRedirectException( 38 comms.request.getAppFileURIPath("ListPresentation.po?message="+message)); 39 40 41 42 } 43 44 45 46 47 } 48 49 | Popular Tags |