| java.lang.Object org.apache.catalina.startup.ExpandWar
ExpandWar | public class ExpandWar (Code) | | Expand out a WAR in a Host's appBase.
author: Craig R. McClanahan author: Remy Maucherat author: Glenn L. Nielsen version: $Revision: 1.5 $ |
Field Summary | |
final protected static StringManager | sm The string resources for this package. |
Method Summary | |
public static void | deleteDir(File dir) Delete the specified directory, including all of its contents and
subdirectories recursively. | public 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. | public 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 void | 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. |
deleteDir | public static void deleteDir(File dir)(Code) | | Delete the specified directory, including all of its contents and
subdirectories recursively.
Parameters: dir - File object representing the directory to be deleted |
expand | public static String expand(Host host, URL war) throws IOException(Code) | | Expand the WAR file found at the specified URL into an unpacked
directory structure, and return the absolute pathname to the expanded
directory.
Parameters: host - Host war is being installed for Parameters: war - URL of the web application archive to be expanded(must start with "jar:") exception: IllegalArgumentException - if this is not a "jar:" URL exception: IOException - if an input/output error was encounteredduring expansion |
expand | public static String expand(Host host, URL war, String pathname) throws IOException(Code) | | Expand the WAR file found at the specified URL into an unpacked
directory structure, and return the absolute pathname to the expanded
directory.
Parameters: host - Host war is being installed for Parameters: war - URL of the web application archive to be expanded(must start with "jar:") Parameters: pathname - Context path name for web application exception: IllegalArgumentException - if this is not a "jar:" URL exception: IOException - if an input/output error was encounteredduring expansion |
expand | protected static void expand(InputStream input, File docBase, String name) throws IOException(Code) | | Expand the specified input stream into the specified directory, creating
a file named from the specified relative path.
Parameters: input - InputStream to be copied Parameters: docBase - Document base directory into which we are expanding Parameters: name - Relative pathname of the file to be created exception: IOException - if an input/output error occurs |
|
|