Package snap.web
Class LocalSite
java.lang.Object
snap.web.WebSite
snap.web.FileSite
snap.web.LocalSite
A FileSite subclass that stores files in a named directory relative to SnapCode home directory.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
getHomeDir
(boolean doCreate) Returns the SnapCode directory in user's home directory.protected File
getJavaFile
(String aPath) Returns the Java file for path.protected String
Returns the path of this data source in file system.Returns the string identifying the prefix for URLs in this data source.Methods inherited from class snap.web.FileSite
doDelete, doGetOrHead, doPost, doPut, getFileHeader, getFileHeaders, getJavaFile, setModTimeForFile
Methods inherited from class snap.web.WebSite
addFileChangeListener, createFile, createFileForPath, deleteFile, deleteSite, fileDidPropChange, firePropChange, flush, getContentsForFile, getExists, getFileForPath, getFileForPathImpl, getHostName, getLocalFile, getName, getPassword, getPath, getProp, getResponse, getRootDir, getSandbox, getSandboxName, getURL, getURL, getURLString, getUserName, refresh, removeFileChangeListener, resetFiles, saveFile, setPassword, setProp, setURL, setUserName, toString
-
Constructor Details
-
LocalSite
public LocalSite()Constructor.
-
-
Method Details
-
getURLScheme
Returns the string identifying the prefix for URLs in this data source. -
getJavaFile
Returns the Java file for path.- Overrides:
getJavaFile
in classFileSite
-
getPathInFileSystem
Returns the path of this data source in file system. -
getHomeDir
Returns the SnapCode directory in user's home directory.
-