Package snap.web

Class LocalSite


public class LocalSite extends FileSite
A FileSite subclass that stores files in a named directory relative to SnapCode home directory.
  • Constructor Details

    • LocalSite

      public LocalSite()
      Constructor.
  • Method Details

    • getURLScheme

      public String getURLScheme()
      Returns the string identifying the prefix for URLs in this data source.
    • getJavaFile

      protected File getJavaFile(String aPath)
      Returns the Java file for path.
      Overrides:
      getJavaFile in class FileSite
    • getPathInFileSystem

      protected String getPathInFileSystem()
      Returns the path of this data source in file system.
    • getHomeDir

      public static File getHomeDir(boolean doCreate)
      Returns the SnapCode directory in user's home directory.