KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > enhydraManager > business > AppManagerImpl


1 package enhydraManager.business;
2
3
4 import com.lutris.appserver.server.*;
5
6 import com.lutris.appserver.server.httpPresentation.servlet.*;
7 import javax.servlet.*;
8 import javax.servlet.http.*;
9 import java.net.URL JavaDoc;
10 import java.util.Hashtable JavaDoc;
11 import org.apache.catalina.core.*;
12 import org.apache.catalina.*;
13 import org.apache.catalina.core.StandardContext;
14 import enhydraManager.spec.*;
15
16 public class AppManagerImpl implements AppManager {
17
18 public String JavaDoc manage(String JavaDoc service,String JavaDoc host,String JavaDoc app,String JavaDoc action){
19    
20    try{
21
22     return GlobalImpl.manage(service,host,app,action);
23
24     //return "OK";
25

26    
27    }catch(Exception JavaDoc e){
28      return "Could not "+action+" the application "+app;
29    }
30    
31 }
32
33     public String JavaDoc deploy(String JavaDoc service, String JavaDoc host, String JavaDoc contextPath, String JavaDoc contextFilePath, String JavaDoc warFile)
34         {
35          try{
36         return GlobalImpl.deploy(service,host,contextPath,contextFilePath,warFile);
37         }catch(Exception JavaDoc e){
38      return "Could not deploy the application "+contextPath;
39      }
40    }
41
42
43
44
45
46
47
48 }
Popular Tags