1 package de.webman.wminstaller.install; 2 3 import java.util.*; 4 import de.webman.wminstaller.app.*; 5 6 7 public class TomcatModInst 8 implements ModuleInstaller 9 { 10 public String getName() { 11 return "ServletEngine (Tomcat)"; 12 } 13 14 public int pre(HashMap dict) 15 throws InstallationException 16 { 17 return INCLUDE; 18 } 19 20 public void install(HashMap dict) 21 throws InstallationException 22 { 23 String destdir = (String )dict.get(DictConstants.SELECTED_PATH); 24 25 System.out.println("Unpack tomcat to '" + destdir + "'"); 26 27 } 29 30 31 public void configure(HashMap dict) 32 throws InstallationException 33 { 34 Integer port = (Integer )dict.get(DictConstants.WEB_PORT); 35 String webapp = (String )dict.get(DictConstants.WEB_INSTANCE); 36 37 System.out.println("Configure tomcat to use port '" + port + "'"); 38 System.out.println("Setup configuration for webapp '" + webapp + "'"); 39 40 } 42 43 public void post(HashMap dict) 44 throws InstallationException 45 { 46 } 48 } 49 | Popular Tags |