KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > enhydraManager > presentation > Deploy


1 package enhydraManager.presentation;
2
3 import enhydraManager.spec.*;
4
5 // Standard imports
6
import java.util.Vector JavaDoc;
7 import java.io.IOException JavaDoc;
8
9 // Enhydra SuperServlet imports
10

11 import org.w3c.dom.html.HTMLAnchorElement;
12 import org.w3c.dom.html.HTMLMetaElement;
13 import org.w3c.dom.Node JavaDoc;
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 JavaDoc {
20
21   
22   String JavaDoc service = comms.request.getParameter("service");
23   String JavaDoc host = comms.request.getParameter("host");
24   String JavaDoc contextPath = comms.request.getParameter("contextPath");
25   String JavaDoc contextFilePath = comms.request.getParameter("contextFilePath");
26   String JavaDoc warPath = comms.request.getParameter("warPath");
27  
28   
29   AppManager manager=AppManagerFactory.getManager("enhydraManager.business.AppManagerImpl");
30   
31  
32  String JavaDoc 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