public class KonyClient extends Object
| Modifier and Type | Field and Description | 
|---|---|
static StorageManager | 
defaultStorageManager  | 
String[] | 
globalRequestParamType  | 
protected static com.kony.cms.client.KonyCMSClient | 
konyCMSClient  | 
static Context | 
mContext
Context object used to get global information an application environment 
 | 
| Constructor and Description | 
|---|
KonyClient()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
acceptSelfSignedCertificates()
Deprecated.  
 | 
void | 
appendGlobalBodyParams(Map<String,String> bodyparameters)  | 
void | 
appendGlobalHeaders(Map<String,String> headers)  | 
String | 
appendGlobalParams(String url,
                  Map<String,String> headers,
                  Map<String,String> params)  | 
String | 
appendGlobalQueryParams(String url)  | 
String | 
getAppKey()
This method returns the appKey for application. 
 | 
static String | 
getApplicationKey()
Deprecated.  
 | 
static String | 
getApplicationSecret()
Deprecated.  
 | 
String | 
getAppSecret()
This method returns the appSecret for application. 
 | 
static Context | 
getContext()  | 
Map<String,String> | 
getGlobalRequestParams(String paramType)  | 
IdentityService | 
getIdentityService(String identityName)
Method will create the IdentityService instance with the provided
 identityName. 
 | 
IntegrationService | 
getIntegrationService(String operationName)
Method will create the IntegrationService instance with the provided
 operationName. 
 | 
MessagingService | 
getMessagingService()
Method will create the MessagingService instance. 
 | 
com.kony.cms.services.metrics.MetricsService | 
getMetricsService()
Method will create the MetricsService instance. 
 | 
static NetworkOptions | 
getNetworkOptions()
Deprecated.  
 | 
NetworkOptions | 
getNWOptions()  | 
ObjectService | 
getObjectService(String serviceName)
Method will create the ObjectService instance. 
 | 
IKonyApplicationSync | 
getOfflineObjects()
Method will create the Kony Sync Application instance. 
 | 
static String | 
getSdkType()
This method will be used by Client-SDK-Developer, to get the SDK type 
 | 
static String | 
getSdkVersion()
This method will be used by Client-SDK-Developer, to get the SDK version 
 | 
ServiceDoc | 
getServiceDoc()  | 
static JSONObject | 
getServiceDocument()
Deprecated.  
 | 
static String | 
getServiceURLString()
Deprecated.  
 | 
protected static StorageManager | 
getStorageManager()  | 
Sync | 
getSyncService(KonyFactoryOptions options)
Method will create the SyncService instance and initializes the sync. 
 | 
void | 
ignoreSSLCertErrors()
This method will be used by Client-SDK-Developer, to accept the self-signed certificate for
 the services.Make sure to include KonyAllowAllTrustManager jar (available in libs folder of the plugin) 
 | 
void | 
initAsync(Context context,
         String appKey,
         String appSecret,
         String serviceUrl,
         InitCallback initCallback)
Initialization method for the Kony Client SDK. 
 | 
static void | 
initInBackground(Context context,
                String appKey,
                String appSecret,
                String serviceUrl,
                InitCallback initCallback)
Deprecated.  
 | 
void | 
initWithServiceDoc(Context context,
                  String appKey,
                  String appSecret,
                  JSONObject serviceDoc)
Initialization method for the Kony Client SDK. 
 | 
static void | 
loadLibs()  | 
void | 
removeGlobalRequestParam(String paramName,
                        String paramType)  | 
void | 
resetGlobalRequestParams()  | 
void | 
setClientParams(Hashtable<String,Object> clientParams)  | 
static void | 
setContext(Context context)  | 
void | 
setGlobalRequestParam(String paramName,
                     String paramValue,
                     String paramType)  | 
static void | 
setIdentyServiceProviderEndpoint(String provider,
                                String identityServiceEndpoint)
Deprecated.  
 | 
static void | 
setIntegrationServiceEndpoint(String serviceName,
                             String integrationServiceEndpoint)
Deprecated.  
 | 
static void | 
setMessagingServiceEndpoint(String messagingServiceEndpoint)
Deprecated.  
 | 
static void | 
setNetworkOptions(NetworkOptions networkOptions)
Deprecated.  
 | 
void | 
setNWOptions(NetworkOptions networkOptions)  | 
static void | 
setStorageManager(StorageManager storageManager)
Deprecated.  
 | 
void | 
setStorageMgr(StorageManager storageManager)
This method will be used by Client-SDK-Developer, to override the
 KonyStorageManager instance with custom storage implementation where
 Client-SDK-Developer can write the storage code by taking care of his own
 encryption logic. 
 | 
static void | 
setSyncServiceEndpoint(String syncServiceEndpoint)
Deprecated.  
 | 
public static Context mContext
public static StorageManager defaultStorageManager
protected static com.kony.cms.client.KonyCMSClient konyCMSClient
public String[] globalRequestParamType
public void initAsync(Context context, String appKey, String appSecret, String serviceUrl, InitCallback initCallback) throws KonyException
context - - Context object used to get global information an application
                     environmentappKey - - AppKey of the applicationappSecret - - AppSecret of the applicationserviceUrl - - URL of the Server.initCallback - - initCallback interface is having the following
                     success/failure callback methods. - onSuccess(JSONObject
                     response) - onFailure(KonyException konyException)KonyExceptionpublic void initWithServiceDoc(Context context, String appKey, String appSecret, JSONObject serviceDoc) throws KonyException
context - - Context object used to get global information an application
                   environmentappKey - - AppKey of the applicationappSecret - - AppSecret of the applicationserviceDoc - - ServiceDocuent JSON.KonyException@Deprecated public static String getApplicationKey()
@Deprecated public static String getApplicationSecret()
@Deprecated public static String getServiceURLString()
@Deprecated public static void setStorageManager(StorageManager storageManager)
storageManager - storageManager instance used to store, get and remove the
                       items.protected static StorageManager getStorageManager()
public static Context getContext()
public static void setContext(Context context)
public static void loadLibs()
@Deprecated public static NetworkOptions getNetworkOptions()
@Deprecated public static void setNetworkOptions(NetworkOptions networkOptions)
networkOptions - the networkOptions to set@Deprecated public static void setMessagingServiceEndpoint(String messagingServiceEndpoint) throws KonyException
messagingServiceEndpoint - url for the messaging service.KonyException@Deprecated public static void setSyncServiceEndpoint(String syncServiceEndpoint) throws KonyException
syncServiceEndpoint - url for the Sync service.KonyException@Deprecated public static void setIdentyServiceProviderEndpoint(String provider, String identityServiceEndpoint) throws KonyException
provider - Identity service provider name for which the url has to be setidentityServiceEndpoint - endpoint url for that particular serviceKonyException@Deprecated public static void setIntegrationServiceEndpoint(String serviceName, String integrationServiceEndpoint) throws KonyException
serviceName - service name for which the url has to be setintegrationServiceEndpoint - endpoint url for that particular serviceKonyException@Deprecated public static JSONObject getServiceDocument()
@Deprecated public static void acceptSelfSignedCertificates()
public ServiceDoc getServiceDoc()
public String getAppKey()
public String getAppSecret()
public IdentityService getIdentityService(String identityName) throws KonyException
identityName - - - Name of the Identity.KonyException - - if the invalid identity name provided or identity list is
                       empty.public IntegrationService getIntegrationService(String operationName) throws KonyException
operationName - - Name of the Operation NameKonyException - - if the invalid operationName name provided or
                       IntegrationService list is empty.public ObjectService getObjectService(String serviceName) throws KonyException
KonyException - if the ObjectService list is empty.public MessagingService getMessagingService() throws KonyException
KonyException - if the MessagingService list is empty.public IKonyApplicationSync getOfflineObjects() throws KonyException
KonyExceptionpublic com.kony.cms.services.metrics.MetricsService getMetricsService()
                                                               throws KonyException
KonyException - if the MetricsService list is empty.public Sync getSyncService(KonyFactoryOptions options) throws KonyException
options - contains configuration options to initialize the SyncKonyException - if the Sync Configuration list is empty.public void setStorageMgr(StorageManager storageManager)
storageManager - storageManager instance used to store, get and remove the
                       items.public NetworkOptions getNWOptions()
public void setNWOptions(NetworkOptions networkOptions)
networkOptions - the networkOptions to setpublic void ignoreSSLCertErrors()
                         throws KonyException
KonyException@Deprecated public static void initInBackground(Context context, String appKey, String appSecret, String serviceUrl, InitCallback initCallback) throws KonyException
context - - Context object used to get global information an application
                     environmentappKey - - AppKey of the applicationappSecret - - AppSecret of the applicationserviceUrl - - URL of the Server.initCallback - - initCallback interface is having the following
                     success/failure callback methods. - onSuccess(JSONObject
                     response) - onFailure(KonyException konyException)KonyExceptionpublic static String getSdkVersion()
public static String getSdkType()
public void resetGlobalRequestParams()
public String appendGlobalParams(String url, Map<String,String> headers, Map<String,String> params)