Package snap.web
Class ZipFileSite
java.lang.Object
snap.web.WebSite
snap.web.ZipFileSite
A WebSite subclass for Zip and Jar files.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDirListPath
(String aPath) Returns a dir list for a path.protected void
addZipEntry
(ZipEntry anEntry) Adds a ZipEntry to WebSite.protected void
doGetOrHead
(WebRequest aReq, WebResponse aResp, boolean isHead) Handles a get or head request.getDirList
(String aPath) Returns a dir list for a path.Returns a map of ZipFile paths to ZipEntry(s).protected File
Returns a Java file for the zip file URL (copied to Sandbox if remote).protected ZipFile
Returns the ZipFile.protected boolean
isInterestingPath
(String aPath) Adds an entry (override to ignore).void
Override to turn on file trimming from system jars.Methods inherited from class snap.web.WebSite
addFileChangeListener, createFileForPath, deleteFile, deleteSite, doDelete, doPost, doPut, fileDidPropChange, fileDidReset, firePropChange, flush, getExists, getFileForFileHeader, getFileForPath, getFileForPathImpl, getHostName, getJavaFileForUrl, getLocalFile, getName, getPassword, getPath, getProp, getResponse, getRootDir, getSandboxSite, getSandboxSiteName, getURL, getUrlAddress, getUrlForPath, getUserName, removeFileChangeListener, resetFiles, saveFile, saveLastModTimeForFile, setPassword, setProp, setUserName, toString
-
Constructor Details
-
ZipFileSite
public ZipFileSite()Constructor.
-
-
Method Details
-
getZipFile
Returns the ZipFile. -
getEntries
Returns a map of ZipFile paths to ZipEntry(s). -
addZipEntry
Adds a ZipEntry to WebSite. -
getDirList
Returns a dir list for a path. -
addDirListPath
Returns a dir list for a path. -
doGetOrHead
Handles a get or head request.- Specified by:
doGetOrHead
in classWebSite
-
getJavaFile
Returns a Java file for the zip file URL (copied to Sandbox if remote). -
setURL
Override to turn on file trimming from system jars. -
isInterestingPath
Adds an entry (override to ignore).
-