Package com.dropbox.core
Class DbxHost
- java.lang.Object
- 
- com.dropbox.core.DbxHost
 
- 
 public final class DbxHost extends java.lang.ObjectThis 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 SummaryFields Modifier and Type Field Description static DbxHostDEFAULTThe standard Dropbox hosts: "api.dropbox.com", "api-content.dropbox.com", and "www.dropbox.com"static JsonReader<DbxHost>Readerstatic JsonWriter<DbxHost>Writer
 - 
Constructor SummaryConstructors Constructor Description DbxHost(java.lang.String api, java.lang.String content, java.lang.String web, java.lang.String notify)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetApi()Returns the host name of the main Dropbox API server.java.lang.StringgetContent()Returns the host name of the Dropbox API content server.java.lang.StringgetNotify()Returns the host name of the Dropbox notification server.java.lang.StringgetWeb()Returns the host name of the Dropbox web server.inthashCode()
 
- 
- 
- 
Field Detail- 
DEFAULTpublic static final DbxHost DEFAULT The standard Dropbox hosts: "api.dropbox.com", "api-content.dropbox.com", and "www.dropbox.com"
 - 
Readerpublic static final JsonReader<DbxHost> Reader 
 - 
Writerpublic static final JsonWriter<DbxHost> Writer 
 
- 
 - 
Constructor Detail- 
DbxHostpublic 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- 
getApipublic 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
 
 - 
getContentpublic 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
 
 - 
getWebpublic 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
 
 - 
getNotifypublic 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
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-