Class DbxHost


  • public final class DbxHost
    extends java.lang.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.
    • Constructor Summary

      Constructors 
      Constructor Description
      DbxHost​(java.lang.String api, java.lang.String content, java.lang.String web, java.lang.String notify)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getApi()
      Returns the host name of the main Dropbox API server.
      java.lang.String getContent()
      Returns the host name of the Dropbox API content server.
      java.lang.String getNotify()
      Returns the host name of the Dropbox notification server.
      java.lang.String getWeb()
      Returns the host name of the Dropbox web server.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT

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

      • DbxHost

        public DbxHost​(java.lang.String api,
                       java.lang.String content,
                       java.lang.String web,
                       java.lang.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 Detail

      • getApi

        public java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object