|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Session
Keeps track of a logged in user. Contains configuration options for the
DropboxAPI
.
Nested Class Summary | |
---|---|
static class |
Session.AccessType
|
static class |
Session.ProxyInfo
Describes a proxy. |
Method Summary | |
---|---|
AccessTokenPair |
getAccessTokenPair()
Returns the currently logged in user's access token and secret. |
Session.AccessType |
getAccessType()
Returns what Dropbox access type to use (currently app folder or entire Dropbox). |
java.lang.String |
getAPIServer()
Returns the Dropbox API server. |
AppKeyPair |
getAppKeyPair()
Returns the app key and secret. |
java.lang.String |
getContentServer()
Returns the Dropbox content server. |
org.apache.http.client.HttpClient |
getHttpClient()
Will be called every time a request is made to Dropbox, in case you want to use a new client every time. |
java.util.Locale |
getLocale()
Returns the locale to use. |
Session.ProxyInfo |
getProxyInfo()
Will be called every time a request is made to Dropbox, in case the proxy changes between requests. |
java.lang.String |
getWebServer()
Returns the Dropbox web server. |
boolean |
isLinked()
Returns whether or not this session has a user's access token and secret. |
void |
setRequestTimeout(org.apache.http.client.methods.HttpUriRequest request)
Will be called every time right before a request is sent to Dropbox. |
void |
sign(org.apache.http.HttpRequest request)
OAuth signs the request with the currently-set tokens and secrets. |
void |
unlink()
Unlinks the session by removing any stored access token and secret. |
Method Detail |
---|
AppKeyPair getAppKeyPair()
AccessTokenPair getAccessTokenPair()
Session.AccessType getAccessType()
java.util.Locale getLocale()
boolean isLinked()
void unlink()
void sign(org.apache.http.HttpRequest request)
request
- an HttpRequest
.Session.ProxyInfo getProxyInfo()
Session.ProxyInfo
object with a host and optionally a
port set.
org.apache.http.client.HttpClient getHttpClient()
void setRequestTimeout(org.apache.http.client.methods.HttpUriRequest request)
java.lang.String getAPIServer()
java.lang.String getContentServer()
java.lang.String getWebServer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |