Class OAuthConnection
java.lang.Object
com.iland.core.web.sdk.connection.OAuthConnection
OAuthConnection.
- Author:
- Cory Snyder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Get the api host.Get the authorization token.org.jboss.resteasy.client.jaxrs.ResteasyClient<T> TgetResource(Class<T> type) voidvoidlogout()static voidsetApiVersion(Double version) Sets the API version to be used for all requests.static voidsetApiVersionForNextRequest(Double version) Sets the API version used for the next request made on the same thread.voidsetConnectionTimeout(int connectionTimeout) voidsetDefaultMaxPerRoute(int maxPerRoute) voidSets a header to send with each request to the iland API.voidsetMaxPerRoute(org.apache.http.conn.routing.HttpRoute route, int maxPerRoute) voidsetMaxTotal(int max) voidsetSoTimeout(int soTimeout)
-
Constructor Details
-
OAuthConnection
-
-
Method Details
-
getCoreClient
public org.jboss.resteasy.client.jaxrs.ResteasyClient getCoreClient() -
setDefaultMaxPerRoute
public void setDefaultMaxPerRoute(int maxPerRoute) -
setMaxPerRoute
public void setMaxPerRoute(org.apache.http.conn.routing.HttpRoute route, int maxPerRoute) -
setMaxTotal
public void setMaxTotal(int max) -
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) -
setSoTimeout
public void setSoTimeout(int soTimeout) -
getResource
-
setHeader
Sets a header to send with each request to the iland API. -
setApiVersionForNextRequest
Sets the API version used for the next request made on the same thread.- Parameters:
version-Doublethe version to use.
-
setApiVersion
Sets the API version to be used for all requests.- Parameters:
version-Doubleversion to use.
-
getAuthorizationToken
Get the authorization token.- Returns:
Stringauthorization token
-
getApiHost
Get the api host.- Returns:
Stringapi host
-
login
- Throws:
OAuthException
-
logout
public void logout() -
finalize
protected void finalize()
-