Package snap.web
Class DropBoxSite
java.lang.Object
snap.web.WebSite
snap.web.DropBoxSite
A Class to work with DropBox.
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doDelete
(WebRequest aReq, WebResponse aResp) Handle a DELETE request.protected void
doGetDir
(WebRequest aReq, WebResponse aResp) Get Directory listing for request.protected void
doGetFileContents
(WebRequest aReq, WebResponse aResp) Get file request.protected void
doGetOrHead
(WebRequest aReq, WebResponse aResp, boolean isHead) Handles getting file info, contents or directory files.protected void
doHead
(WebRequest aReq, WebResponse aResp) Get Head for request.protected void
doPut
(WebRequest aReq, WebResponse aResp) Handle a PUT request.protected void
doPutDir
(WebRequest aReq, WebResponse aResp) Handle a PUT request.protected void
doPutFile
(WebRequest aReq, WebResponse aResp) Handle a PUT request.static String
Returns the default email.getEmail()
Returns the DropBox email.static DropBoxSite
getSiteForEmail
(String anEmail) Returns shared instance.static void
setDefaultEmail
(String aString) Sets the default email.Methods inherited from class snap.web.WebSite
addFileChangeListener, createFileForPath, deleteFile, deleteSite, doPost, 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
-
Method Details
-
getEmail
Returns the DropBox email. -
doGetOrHead
Handles getting file info, contents or directory files.- Specified by:
doGetOrHead
in classWebSite
-
doHead
Get Head for request. -
doGetDir
Get Directory listing for request. -
doGetFileContents
Get file request. -
doPut
Handle a PUT request. -
doPutFile
Handle a PUT request. -
doPutDir
Handle a PUT request. -
doDelete
Handle a DELETE request. -
getSiteForEmail
Returns shared instance. -
getDefaultEmail
Returns the default email. -
setDefaultEmail
Sets the default email.
-