public class OAuthConnection extends Object
| Constructor and Description | 
|---|
| OAuthConnection(String apiHost,
               String apiPort,
               String ssoHost,
               String ssoPort,
               String clientName,
               String clientSecret) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | finalize() | 
| String | getApiHost()Get the api host. | 
| Optional<String> | getAuthorizationToken()Get the authorization token. | 
| <T> T | getResource(Class<T> type) | 
| void | login(String username,
     String password) | 
| void | logout() | 
| static void | setApiVersion(Double version)Sets the API version to be used for all requests. | 
| static void | setApiVersionForNextRequest(Double version)Sets the API version used for the next request made on the same thread. | 
| void | setConnectionTimeout(int connectionTimeout) | 
| void | setDefaultMaxPerRoute(int maxPerRoute) | 
| void | setHeader(String name,
         String value)Sets a header to send with each request to the iland API. | 
| void | setMaxPerRoute(org.apache.http.conn.routing.HttpRoute route,
              int maxPerRoute) | 
| void | setMaxTotal(int max) | 
| void | setSoTimeout(int soTimeout) | 
public void setDefaultMaxPerRoute(int maxPerRoute)
public void setMaxPerRoute(org.apache.http.conn.routing.HttpRoute route,
                           int maxPerRoute)
public void setMaxTotal(int max)
public void setConnectionTimeout(int connectionTimeout)
public void setSoTimeout(int soTimeout)
public <T> T getResource(Class<T> type)
public void setHeader(String name, String value)
public static void setApiVersionForNextRequest(Double version)
version - Double the version to use.public static void setApiVersion(Double version)
version - Double version to use.public Optional<String> getAuthorizationToken()
String authorization tokenpublic void login(String username, String password) throws OAuthException
OAuthExceptionpublic void logout()
Copyright © 2020 iland Internet Solutions, Corp. All rights reserved.