Package snap.web

Class ZipFileSite

java.lang.Object
snap.web.WebSite
snap.web.ZipFileSite

public class ZipFileSite extends WebSite
A WebSite subclass for Zip and Jar files.
  • Constructor Details

    • ZipFileSite

      public ZipFileSite()
  • Method Details

    • getZipFile

      protected ZipFile getZipFile()
      Returns the ZipFile.
    • getEntries

      protected Map<String,ZipEntry> getEntries()
      Returns a map of ZipFile paths to ZipEntry(s).
    • addZipEntry

      protected void addZipEntry(ZipEntry anEntry)
      Adds a ZipEntry to WebSite.
    • getDirList

      protected List<String> getDirList(String aPath)
      Returns a dir list for a path.
    • addDirListPath

      protected void addDirListPath(String aPath)
      Returns a dir list for a path.
    • doGetOrHead

      protected void doGetOrHead(WebRequest aReq, WebResponse aResp, boolean isHead)
      Handles a get or head request.
      Overrides:
      doGetOrHead in class WebSite
    • getJavaFile

      protected File getJavaFile()
      Returns a Java file for the zip file URL (copied to Sandbox if remote).
    • setURL

      public void setURL(WebURL aURL)
      Override to turn on file trimming from system jars.
      Overrides:
      setURL in class WebSite
    • isInterestingPath

      protected boolean isInterestingPath(String aPath)
      Adds an entry (override to ignore).