Package com.jalios.jcms.tools.patch
Class WarInfo
- java.lang.Object
-
- com.jalios.jcms.tools.patch.WarInfo
-
public class WarInfo extends java.lang.ObjectHelper class to read informations about a JCMS war file or JCMS webapp.
-
-
Constructor Summary
Constructors Constructor Description WarInfo(java.io.File warFile)Create a new WarInfo from the specified warFile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Cleanup any temporary file from the file systemprotected voidfinalize()java.lang.StringgetOriginalSignature(java.lang.String relativeFilePath)Retrieve the original signature of the specified file as available in the signature.xml file of this webapp.java.lang.StringtoString()
-
-
-
Constructor Detail
-
WarInfo
public WarInfo(java.io.File warFile) throws java.lang.ExceptionCreate a new WarInfo from the specified warFile.If the specified warFile is a file (vs a directory) it will immediately be unzipped in a temporary directory. You can later cleanup all temporary data using
cleanup()- Parameters:
warFile- a jcms war File or a path to a JCMS webapp directory- Throws:
java.lang.Exception- if the specified file could not be unzipped or if it is not a JCMS webapp.
-
-
Method Detail
-
getOriginalSignature
public java.lang.String getOriginalSignature(java.lang.String relativeFilePath)
Retrieve the original signature of the specified file as available in the signature.xml file of this webapp.- Parameters:
relativeFilePath- a relative path egtypes/Article/doArticleFullDisplay.jsp- Returns:
- a signature, or null if could not be found
-
cleanup
public void cleanup()
Cleanup any temporary file from the file system
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-