Class DbxHost

java.lang.Object
com.dropbox.core.DbxHost

public final class DbxHost extends Object
This is for mocking things out during testing. Most of the time you won't have to deal with this class; just use the default value: DEFAULT.
  • Field Details

    • DEFAULT

      public static final DbxHost DEFAULT
      The standard Dropbox hosts: "api.dropbox.com", "api-content.dropbox.com", and "www.dropbox.com"
    • Reader

      public static final JsonReader<DbxHost> Reader
    • Writer

      public static final JsonWriter<DbxHost> Writer
  • Constructor Details

    • DbxHost

      public DbxHost(String api, String content, String web, String notify)
      Parameters:
      api - main Dropbox API server host name
      content - Dropbox API content server host name
      web - Dropbox web server host name
      notify - Dropbox notification server host name
  • Method Details

    • getApi

      public String getApi()
      Returns the host name of the main Dropbox API server. The default is "api.dropbox.com".
      Returns:
      host name of main Dropbox API server
    • getContent

      public String getContent()
      Returns the host name of the Dropbox API content server. The default is "api-content.dropbox.com".
      Returns:
      host name of Dropbox API content server
    • getWeb

      public String getWeb()
      Returns the host name of the Dropbox web server. Used during user authorization. The default is "www.dropbox.com".
      Returns:
      host name of Dropbox API web server used during user authorization
    • getNotify

      public String getNotify()
      Returns the host name of the Dropbox notification server. Used by longpoll endpoints. The default is "api-notify.dropbox.com".
      Returns:
      host name of Dropbox notification server used for longpolling
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object