Package org.eclipse.jetty.deploy.util
Class FileID
java.lang.Object
org.eclipse.jetty.deploy.util.FileID
Simple, yet surprisingly common utility methods for identifying various file types commonly seen and worked with in a
deployment scenario.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isWebArchive
(File path) Is the path a Web Archive?static boolean
isWebArchiveFile
(File path) Is the path a Web Archive File (not directory)static boolean
-
Constructor Details
-
FileID
public FileID()
-
-
Method Details
-
isWebArchive
Is the path a Web Archive?- Parameters:
path
- the path to test.- Returns:
- True if a .war or .jar or exploded web directory
- See Also:
-
isWebArchiveFile
Is the path a Web Archive File (not directory)- Parameters:
path
- the path to test.- Returns:
- True if a .war or .jar file.
- See Also:
-
isXmlFile
-