com.jfw.update
Class WEBUpdate

java.lang.Object
  extended by com.jfw.update.JFWUpdate
      extended by com.jfw.update.WEBUpdate

public class WEBUpdate
extends JFWUpdate

Extract files from the web file. A valid name for the web file is one who start with web, example web-dateandtime.zip.


Field Summary
static java.lang.String WEB_FILE
          The name of the web update file.
 
Constructor Summary
WEBUpdate()
           
 
Method Summary
 boolean start()
          Elaborate the web files.
 
Methods inherited from class com.jfw.update.JFWUpdate
cleanWebWork, deleteFile, getFiles, getGenericFilePath, getUpdateSrcPath, getUpdateWebTargetPath, getWebappPath, getWebWorkPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_FILE

public static final java.lang.String WEB_FILE
The name of the web update file. Only files start with this name will be elaborated by this class.

See Also:
Constant Field Values
Constructor Detail

WEBUpdate

public WEBUpdate()
Method Detail

start

public boolean start()
              throws java.lang.Exception
Elaborate the web files. The zip file will be extract in the directory set in key update_web_target_path + update_web_app of jfw.properties.

Specified by:
start in class JFWUpdate
Returns:
true if has been found an update file, false in other case.
Throws:
java.lang.Exception