Package com.dropbox.core
Class DbxHost
java.lang.Object
com.dropbox.core.DbxHost
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final DbxHostThe standard Dropbox hosts: "api.dropbox.com", "api-content.dropbox.com", and "www.dropbox.com"static final JsonReader<DbxHost> static final JsonWriter<DbxHost> -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT
The standard Dropbox hosts: "api.dropbox.com", "api-content.dropbox.com", and "www.dropbox.com" -
Reader
-
Writer
-
-
Constructor Details
-
DbxHost
- Parameters:
api- main Dropbox API server host namecontent- Dropbox API content server host nameweb- Dropbox web server host namenotify- Dropbox notification server host name
-
-
Method Details
-
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
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
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
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() -
equals
-