Package com.iizix.jetty
Class WSJarResourceFile
java.lang.Object
com.iizix.jetty.WSJarResourceFile
The Resource for Jetty that refers to a JarEntry of file type inside an XJar or MemoryJar.
- Constructor SummaryConstructorsConstructorDescription- WSJarResourceFile- (IJarFile jarFile, JarEntry jarEntry, long lastModified, URL url) Constructs the resource for the Jar file in question and the file entry.
- Method Summary
- Constructor Details- WSJarResourceFileConstructs the resource for the Jar file in question and the file entry.- Parameters:
- jarFile- The Jar file.
- jarEntry- The Jar Entry.
- lastModified- Last modified time in milliseconds since Epoch.
- url- The URL.
- Throws:
- IllegalArgumentException- If- jarEntryis not of File type, i.e. is a directory.
- NullPointerException- If either- jarFileor- jarEntryis- null.
 
 
- Method Details- getDatapublic byte[] getData()Gets the data of the resource.- Returns:
- The data (cloned).
 
- getURIGets the URI of the resource.- Returns:
- The URI.
 
- toStringConstructs a string representation of this object.
- newResourceCreates a new resource from this in-memory file resource.- Returns:
- The new resource.