Package snap.web
Class WebSiteX
java.lang.Object
snap.web.WebSite
snap.web.WebSiteX
This WebSite subclass implements some conveniences.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doGetOrHead
(WebRequest aReq, WebResponse aResp, boolean isHead) Handles a get or head request.protected byte[]
getFileBytesForGet
(WebRequest aReq, WebResponse aResp) Returns bytes for Get call and given request/response.protected FileHeader
getFileHeaderForPath
(String filePath) Returns the file header for given path.protected FileHeader[]
getFileHeadersForPath
(String filePath) Returns FileHeaders for dir file path.Methods inherited from class snap.web.WebSite
addFileChangeListener, createFileForPath, deleteFile, deleteSite, doDelete, doPost, doPut, fileDidPropChange, fileDidReset, firePropChange, flush, getExists, getFileForFileHeader, getFileForPath, getFileForPathImpl, getHostName, getJavaFileForUrl, getLocalFile, getName, getPassword, getPath, getProp, getResponse, getRootDir, getSandboxSite, getSandboxSiteName, getURL, getUrlAddress, getUrlForPath, getUserName, removeFileChangeListener, resetFiles, saveFile, saveLastModTimeForFile, setPassword, setProp, setURL, setUserName, toString
-
Constructor Details
-
WebSiteX
public WebSiteX()Constructor.
-
-
Method Details
-
doGetOrHead
Handles a get or head request.- Specified by:
doGetOrHead
in classWebSite
-
getFileHeaderForPath
Returns the file header for given path. -
getFileHeadersForPath
Returns FileHeaders for dir file path. -
getFileBytesForGet
Returns bytes for Get call and given request/response.
-