Package com.dropbox.core
Class DbxHost
- java.lang.Object
-
- com.dropbox.core.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
.
-
-
Field Summary
Fields Modifier and Type Field Description static DbxHost
DEFAULT
The standard Dropbox hosts: "api.dropbox.com", "api-content.dropbox.com", and "www.dropbox.com"static JsonReader<DbxHost>
Reader
static JsonWriter<DbxHost>
Writer
-
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()
-
-
-
Field Detail
-
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 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 namecontent
- Dropbox API content server host nameweb
- Dropbox web server host namenotify
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-