org.apache.catalina.startup
public class ExpandWar extends Object
Version: $Revision: 892815 $
Field Summary | |
---|---|
protected static StringManager | sm
The string resources for this package. |
Method Summary | |
---|---|
static boolean | copy(File src, File dest)
Copy the specified file or directory to the destination.
|
static boolean | delete(File dir)
Delete the specified directory, including all of its contents and
sub-directories recursively. |
static boolean | delete(File dir, boolean logFailure)
Delete the specified directory, including all of its contents and
sub-directories recursively.
|
static boolean | deleteDir(File dir)
Delete the specified directory, including all of its contents and
sub-directories recursively. |
static boolean | deleteDir(File dir, boolean logFailure)
Delete the specified directory, including all of its contents and
sub-directories recursively.
|
static String | expand(Host host, URL war)
Expand the WAR file found at the specified URL into an unpacked
directory structure, and return the absolute pathname to the expanded
directory.
|
static String | expand(Host host, URL war, String pathname)
Expand the WAR file found at the specified URL into an unpacked
directory structure, and return the absolute pathname to the expanded
directory.
|
protected static File | expand(InputStream input, File docBase, String name)
Expand the specified input stream into the specified directory, creating
a file named from the specified relative path.
|
static void | validate(Host host, URL war, String pathname)
Validate the WAR file found at the specified URL.
|
Parameters: src File object representing the source dest File object representing the destination
Parameters: dir File object representing the directory to be deleted
Parameters: dir File object representing the directory to be deleted logFailure true
if failure to delete the resource
should be logged
Parameters: dir File object representing the directory to be deleted
Parameters: dir File object representing the directory to be deleted logFailure true
if failure to delete the resource
should be logged
Parameters: host Host war is being installed for war URL of the web application archive to be expanded (must start with "jar:")
Throws: IllegalArgumentException if this is not a "jar:" URL IOException if an input/output error was encountered during expansion
Parameters: host Host war is being installed for war URL of the web application archive to be expanded (must start with "jar:") pathname Context path name for web application
Throws: IllegalArgumentException if this is not a "jar:" URL or if the WAR file is invalid IOException if an input/output error was encountered during expansion
Deprecated:
Expand the specified input stream into the specified directory, creating a file named from the specified relative path.Parameters: input InputStream to be copied docBase Document base directory into which we are expanding name Relative pathname of the file to be created
Returns: A handle to the expanded File
Throws: IOException if an input/output error occurs
Parameters: host Host war is being installed for war URL of the web application archive to be validated (must start with "jar:") pathname Context path name for web application
Throws: IllegalArgumentException if this is not a "jar:" URL or if the WAR file is invalid IOException if an input/output error was encountered during validation