Package snap.web
Class HTTPSite
java.lang.Object
snap.web.WebSite
snap.web.HTTPSite
A WebSite for HTTP sources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGetOrHead
(WebRequest aReq, WebResponse aResp, boolean isHead) Handle a get or head request.protected void
doPut
(WebRequest aReq, WebResponse aResp) Handle a POST request.protected File
getJavaFileForUrl
(WebURL aURL) Override to return standard file for cache file.getLocalFile
(WebFile aFile, boolean doCache) Returns a local file for given file (with option to cache for future use).Methods inherited from class snap.web.WebSite
addFileChangeListener, createFileForPath, deleteFile, deleteSite, doDelete, doPost, fileDidPropChange, fileDidReset, firePropChange, flush, getExists, getFileForFileHeader, getFileForPath, getFileForPathImpl, getHostName, getName, getPassword, getPath, getProp, getResponse, getRootDir, getSandboxSite, getSandboxSiteName, getURL, getUrlAddress, getUrlForPath, getUserName, removeFileChangeListener, resetFiles, saveFile, saveLastModTimeForFile, setPassword, setProp, setURL, setUserName, toString
-
Constructor Details
-
HTTPSite
public HTTPSite()Constructor.
-
-
Method Details
-
doGetOrHead
Handle a get or head request.- Specified by:
doGetOrHead
in classWebSite
-
doPut
Handle a POST request. -
getJavaFileForUrl
Override to return standard file for cache file.- Overrides:
getJavaFileForUrl
in classWebSite
-
getLocalFile
Returns a local file for given file (with option to cache for future use).- Overrides:
getLocalFile
in classWebSite
-