| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.startup.ExpandWar
public class ExpandWar
Expand out a WAR in a Host's appBase.
| Field Summary | |
|---|---|
| protected static StringManager | smThe string resources for this package. | 
| Constructor Summary | |
|---|---|
| ExpandWar() | |
| Method Summary | |
|---|---|
| static boolean | copy(java.io.File src,
     java.io.File dest)Copy the specified file or directory to the destination. | 
| static boolean | delete(java.io.File dir)Delete the specified directory, including all of its contents and sub-directories recursively. | 
| static boolean | delete(java.io.File dir,
       boolean logFailure)Delete the specified directory, including all of its contents and sub-directories recursively. | 
| static boolean | deleteDir(java.io.File dir)Delete the specified directory, including all of its contents and sub-directories recursively. | 
| static boolean | deleteDir(java.io.File dir,
          boolean logFailure)Delete the specified directory, including all of its contents and sub-directories recursively. | 
| static java.lang.String | expand(Host host,
       java.net.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 java.lang.String | expand(Host host,
       java.net.URL war,
       java.lang.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 java.io.File | expand(java.io.InputStream input,
       java.io.File docBase,
       java.lang.String name)Deprecated. | 
| static void | validate(Host host,
         java.net.URL war,
         java.lang.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 java.lang.String expand(Host host,
                                      java.net.URL war)
                               throws java.io.IOException
host - Host war is being installed forwar - URL of the web application archive to be expanded
  (must start with "jar:")
java.lang.IllegalArgumentException - if this is not a "jar:" URL
java.io.IOException - if an input/output error was encountered
  during expansion
public static java.lang.String expand(Host host,
                                      java.net.URL war,
                                      java.lang.String pathname)
                               throws java.io.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
java.lang.IllegalArgumentException - if this is not a "jar:" URL or if the
            WAR file is invalid
java.io.IOException - if an input/output error was encountered
  during expansion
public static void validate(Host host,
                            java.net.URL war,
                            java.lang.String pathname)
                     throws java.io.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
java.lang.IllegalArgumentException - if this is not a "jar:" URL or if the
            WAR file is invalid
java.io.IOException - if an input/output error was encountered
            during validation
public static boolean copy(java.io.File src,
                           java.io.File dest)
src - File object representing the sourcedest - File object representing the destinationpublic static boolean delete(java.io.File dir)
dir - File object representing the directory to be deleted
public static boolean delete(java.io.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(java.io.File dir)
dir - File object representing the directory to be deleted
public static boolean deleteDir(java.io.File dir,
                                boolean logFailure)
dir - File object representing the directory to be deletedlogFailure - true if failure to delete the resource
                   should be logged
protected static java.io.File expand(java.io.InputStream input,
                                     java.io.File docBase,
                                     java.lang.String name)
                              throws java.io.IOException
input - InputStream to be copieddocBase - Document base directory into which we are expandingname - Relative pathname of the file to be created
java.io.IOException - if an input/output error occurs| 
 | Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||