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 ; 10 import java.util.Hashtable ; 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 manage(String service,String host,String app,String action){ 19 20 try{ 21 22 return GlobalImpl.manage(service,host,app,action); 23 24 26 27 }catch(Exception e){ 28 return "Could not "+action+" the application "+app; 29 } 30 31 } 32 33 public String deploy(String service, String host, String contextPath, String contextFilePath, String warFile) 34 { 35 try{ 36 return GlobalImpl.deploy(service,host,contextPath,contextFilePath,warFile); 37 }catch(Exception e){ 38 return "Could not deploy the application "+contextPath; 39 } 40 } 41 42 43 44 45 46 47 48 } | Popular Tags |