Package snap.web

Class DropBoxSite

java.lang.Object
snap.web.WebSite
snap.web.DropBoxSite

public class DropBoxSite extends WebSite
A Class to work with DropBox.
  • Method Details

    • getEmail

      public String getEmail()
      Returns the DropBox email.
    • doGetOrHead

      protected void doGetOrHead(WebRequest aReq, WebResponse aResp, boolean isHead)
      Handles getting file info, contents or directory files.
      Specified by:
      doGetOrHead in class WebSite
    • doHead

      protected void doHead(WebRequest aReq, WebResponse aResp)
      Get Head for request.
    • doGetDir

      protected void doGetDir(WebRequest aReq, WebResponse aResp)
      Get Directory listing for request.
    • doGetFileContents

      protected void doGetFileContents(WebRequest aReq, WebResponse aResp)
      Get file request.
    • doPut

      protected void doPut(WebRequest aReq, WebResponse aResp)
      Handle a PUT request.
      Overrides:
      doPut in class WebSite
    • doPutFile

      protected void doPutFile(WebRequest aReq, WebResponse aResp)
      Handle a PUT request.
    • doPutDir

      protected void doPutDir(WebRequest aReq, WebResponse aResp)
      Handle a PUT request.
    • doDelete

      protected void doDelete(WebRequest aReq, WebResponse aResp)
      Handle a DELETE request.
      Overrides:
      doDelete in class WebSite
    • getSiteForEmail

      public static DropBoxSite getSiteForEmail(String anEmail)
      Returns shared instance.
    • getDefaultEmail

      public static String getDefaultEmail()
      Returns the default email.
    • setDefaultEmail

      public static void setDefaultEmail(String aString)
      Sets the default email.