|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.startup.ExpandWar
public class ExpandWar
Expand out a WAR in a Host's appBase.
Field Summary | |
---|---|
protected static StringManager |
sm
The string resources for this package. |
Constructor Summary | |
---|---|
ExpandWar()
|
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,
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. |
static void |
validate(Host host,
URL war,
String pathname)
Validate the WAR file found at the specified URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final StringManager sm
Constructor Detail |
---|
public ExpandWar()
Method Detail |
---|
public static String expand(Host host, URL war, String pathname) throws IOException
host
- Host war is being installed forwar
- URL of the web application archive to be expanded
(must start with "jar:")pathname
- Context path name for web application
IllegalArgumentException
- if this is not a "jar:" URL or if the
WAR file is invalid
IOException
- if an input/output error was encountered
during expansionpublic static void validate(Host host, URL war, String pathname) throws IOException
host
- Host war is being installed forwar
- URL of the web application archive to be validated
(must start with "jar:")pathname
- Context path name for web application
IllegalArgumentException
- if this is not a "jar:" URL or if the
WAR file is invalid
IOException
- if an input/output error was encountered
during validationpublic static boolean copy(File src, File dest)
src
- File object representing the sourcedest
- File object representing the destinationpublic static boolean delete(File dir)
dir
- File object representing the directory to be deletedpublic static boolean delete(File dir, boolean logFailure)
dir
- File object representing the directory to be deletedlogFailure
- true
if failure to delete the resource
should be loggedpublic static boolean deleteDir(File dir)
dir
- File object representing the directory to be deletedpublic static boolean deleteDir(File dir, boolean logFailure)
dir
- File object representing the directory to be deletedlogFailure
- true
if failure to delete the resource
should be logged
|
Apache Tomcat 7.0.28 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |