org.browsecode.helpers.installer.applications
Class InstallWebapp

java.lang.Object
  extended by org.browsecode.helpers.installer.applications.ApplicationToInstallStub
      extended by org.browsecode.helpers.installer.applications.InstallWebapp
All Implemented Interfaces:
ApplicationToInstall
Direct Known Subclasses:
InstallSurveyManager

public abstract class InstallWebapp
extends ApplicationToInstallStub


Nested Class Summary
 class InstallWebapp.SurveyWebappInstaller
           
 
Nested classes/interfaces inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub
ApplicationToInstallStub.SimpleSearcherStub
 
Nested classes/interfaces inherited from interface org.browsecode.helpers.installer.applications.ApplicationToInstall
ApplicationToInstall.ExeInstaller, ApplicationToInstall.Installer, ApplicationToInstall.MacInstaller, ApplicationToInstall.MsiInstaller, ApplicationToInstall.Searcher, ApplicationToInstall.TarGzipInstaller, ApplicationToInstall.ZipInstaller
 
Field Summary
protected  java.lang.String webappUnzippedFolder
           
protected  java.lang.String webappWar
           
protected  java.lang.String webappZip
           
 
Fields inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub
description, installedInDirectory, installerFiles, installerWebsites, name
 
Fields inherited from interface org.browsecode.helpers.installer.applications.ApplicationToInstall
INSTALLED_BUT_DIRECTORY_UNKNOWN
 
Constructor Summary
InstallWebapp(java.lang.String webappName, java.lang.String webappZip, java.lang.String webappWar, java.lang.String webappUnzippedFolder)
           
 
Method Summary
 void addedToApplicationSet(ApplicationSet applicationSet)
          Called by ApplicationSet after the application has been added to the ApplicationSet.
 java.lang.String[] getInstalledFileName(int operatingSystem)
          A path and file that is installed when this program has been installed.
 ApplicationToInstall.Installer getInstaller(ControlComputerInterface machineToInstallOn, ApplicationSet applicationSet)
          An installer or a zip of the application.
 java.lang.String getInstallerDirections(ControlComputerInterface machineToInstallOn)
          Directions for installing the application by hand.
 void setInstallers(java.net.URL[] installerFile)
          Set these in order of preference -- i.e. executables first, zip files (assumed to be platform independent) last.
 void setInstallersPath(java.lang.String installersPath)
          This must be called before adding this to an ApplicationSet!
 
Methods inherited from class org.browsecode.helpers.installer.applications.ApplicationToInstallStub
getAskToFindPreviousInstalls, getDescription, getInstalledFileMatches, getInstalledInDirectory, getInstallers, getInstallerURL, getName, getSearcher, getTryToFindPreviousInstalls, setAskUserIfInstalledBefore, setDescription, setInstalledInDirectory, setInstallerURL, setName, setTryToFindPreviousInstalls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webappUnzippedFolder

protected java.lang.String webappUnzippedFolder

webappZip

protected java.lang.String webappZip

webappWar

protected java.lang.String webappWar
Constructor Detail

InstallWebapp

public InstallWebapp(java.lang.String webappName,
                     java.lang.String webappZip,
                     java.lang.String webappWar,
                     java.lang.String webappUnzippedFolder)
Method Detail

setInstallers

public void setInstallers(java.net.URL[] installerFile)
Description copied from class: ApplicationToInstallStub
Set these in order of preference -- i.e. executables first, zip files (assumed to be platform independent) last.

Overrides:
setInstallers in class ApplicationToInstallStub

setInstallersPath

public void setInstallersPath(java.lang.String installersPath)
This must be called before adding this to an ApplicationSet!

Parameters:
installersPath -

getInstalledFileName

public java.lang.String[] getInstalledFileName(int operatingSystem)
Description copied from class: ApplicationToInstallStub
A path and file that is installed when this program has been installed. Return any possibilites that indicate that this program is installed. You may use RegExp. Some examples: Apache Tomcat would return ".*jakarta.* /webapps/" (note that space is put in because java docs won't let you put in a * immediately followed by /) MySQL would return "mysqldump.exe" and "mysqldump" The path that these files are in will be searched for in the installation process and possibly used later (in tomcat's example, or in mysql's example) If the path isn't found, the user will be prompted with installation instructions. Paths that are directories should end in a '/' and files should not end in a slash.

Specified by:
getInstalledFileName in class ApplicationToInstallStub
Parameters:
operatingSystem - The OS that the target platform is running on. This will be gathered from org.browsecode.helpers.controlcomputer.ControlComputerInterface.
Returns:

getInstallerDirections

public java.lang.String getInstallerDirections(ControlComputerInterface machineToInstallOn)
Description copied from interface: ApplicationToInstall
Directions for installing the application by hand.

Returns:

addedToApplicationSet

public void addedToApplicationSet(ApplicationSet applicationSet)
Description copied from interface: ApplicationToInstall
Called by ApplicationSet after the application has been added to the ApplicationSet. This method should check the ApplicationSet to make sure that all needed applications are already in ApplicationSet, and if not, it should add them to the ApplicationSet (by calling ApplicationSet.addApplicationBefore(neededApplication,this))

Specified by:
addedToApplicationSet in interface ApplicationToInstall
Overrides:
addedToApplicationSet in class ApplicationToInstallStub

getInstaller

public ApplicationToInstall.Installer getInstaller(ControlComputerInterface machineToInstallOn,
                                                   ApplicationSet applicationSet)
Description copied from interface: ApplicationToInstall
An installer or a zip of the application. This file may be either an executable file or a zip. May also be null. This should be the only file required for installation. Pass in a ControlComputerInterface so it can check the OS information.

Specified by:
getInstaller in interface ApplicationToInstall
Overrides:
getInstaller in class ApplicationToInstallStub
Returns: