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
doPost
(WebRequest aReq, WebResponse aResp) Handle a POST request.protected void
doPut
(WebRequest aReq, WebResponse aResp) Handle a POST request.protected File
getJavaFile
(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, createFile, createFileForPath, deleteFile, deleteSite, doDelete, fileDidPropChange, firePropChange, flush, getContentsForFile, getExists, getFileForPath, getFileForPathImpl, getHostName, getName, getPassword, getPath, getProp, getResponse, getRootDir, getSandbox, getSandboxName, getURL, getURL, getURLString, getUserName, refresh, removeFileChangeListener, resetFiles, saveFile, setModTimeForFile, setPassword, setProp, setURL, setUserName, toString
-
Constructor Details
-
HTTPSite
public HTTPSite()
-
-
Method Details
-
doGetOrHead
Handle a get or head request.- Overrides:
doGetOrHead
in classWebSite
-
doPost
Handle a POST request. -
doPut
Handle a POST request. -
getJavaFile
Override to return standard file for cache file.- Overrides:
getJavaFile
in classWebSite
-
getLocalFile
Returns a local file for given file (with option to cache for future use).- Overrides:
getLocalFile
in classWebSite
-