Package com.cumulocity.sdk.client
Class PlatformImpl
java.lang.Object
com.cumulocity.sdk.client.PlatformParameters
com.cumulocity.sdk.client.PlatformImpl
- All Implemented Interfaces:
Platform
,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class com.cumulocity.sdk.client.PlatformParameters
DEFAULT_PAGE_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformImpl
(String host, int port, CumulocityCredentials credentials) PlatformImpl
(String host, int port, CumulocityCredentials credentials, int pageSize) PlatformImpl
(String host, CumulocityCredentials credentials) PlatformImpl
(String host, CumulocityCredentials credentials, int pageSize) PlatformImpl
(String host, CumulocityCredentials credentials, ClientConfiguration clientConfiguration) PlatformImpl
(String host, CumulocityCredentials credentials, ClientConfiguration clientConfiguration, int pageSize) Deprecated.PlatformImpl
(String host, String tenantId, String user, String password, String applicationKey, int pageSize) Deprecated. -
Method Summary
Methods inherited from class com.cumulocity.sdk.client.PlatformParameters
close, createRestConnector, getApplicationKey, getChunkedEncodingSize, getHost, getHttpClientConfig, getPageSize, getProxyHost, getProxyPassword, getProxyPort, getProxyUserId, getRequestOrigin, getResponseMapper, getTenantId, getTfaToken, getUser, isAlwaysCloseConnection, isForceInitialHost, registerInterceptor, requireResponseBody, setAlwaysCloseConnection, setChunkedEncodingSize, setForceInitialHost, setHost, setHttpClientConfig, setProxyHost, setProxyPassword, setProxyPort, setProxyUserId, setRequireResponseBody, setResponseMapper, setTfaToken, setTfaToken, unregisterInterceptor
-
Field Details
-
CLIENT_PARAMETERS
- See Also:
-
CUMULOCITY_PAGE_SIZE
- See Also:
-
CUMULOCITY_PASSWORD
- See Also:
-
CUMULOCITY_USER
- See Also:
-
CUMULOCITY_TENANT
- See Also:
-
CUMULOCITY_PORT
- See Also:
-
CUMOLOCITY_HOST
- See Also:
-
CUMOLOCITY_APPLICATION_KEY
- See Also:
-
CUMOLOCITY_PROXY_HOST
- See Also:
-
CUMULOCITY_PROXY_PORT
- See Also:
-
CUMULOCITY_PROXY_USER
- See Also:
-
CUMULOCITY_PROXY_PASSWORD
- See Also:
-
-
Constructor Details
-
PlatformImpl
-
PlatformImpl
public PlatformImpl(String host, CumulocityCredentials credentials, ClientConfiguration clientConfiguration) -
PlatformImpl
-
PlatformImpl
-
PlatformImpl
public PlatformImpl(String host, CumulocityCredentials credentials, ClientConfiguration clientConfiguration, int pageSize) -
PlatformImpl
-
PlatformImpl
@Deprecated public PlatformImpl(String host, String tenantId, String user, String password, String applicationKey) Deprecated. -
PlatformImpl
@Deprecated public PlatformImpl(String host, String tenantId, String user, String password, String applicationKey, int pageSize) Deprecated. -
PlatformImpl
public PlatformImpl()
-
-
Method Details
-
createPlatform
This static method creates the Platform from the system parameters.System Properties cumolocityHost : ip address or name of the Cumulocity server cumulocityPort : port number of the Cumulocity server; cumulocityTenant : Tenant ID ; cumulocityUser : User ID ; cumulocityPassword : Password ; cumulocityPageSize : Page size for the paging parameters.
proxyHost : Proxy Host Name; proxyPort : Proxy Port Name proxyUser : Proxy User Name proxyPassword : Proxy Password
- Returns:
- Platform for the handle to get other methods.
- Throws:
SDKException
- when platform creation fails
-
getInventoryApi
- Specified by:
getInventoryApi
in interfacePlatform
- Throws:
SDKException
-
getIdentityApi
- Specified by:
getIdentityApi
in interfacePlatform
- Throws:
SDKException
-
getMeasurementApi
- Specified by:
getMeasurementApi
in interfacePlatform
- Throws:
SDKException
-
getDeviceControlApi
- Specified by:
getDeviceControlApi
in interfacePlatform
- Throws:
SDKException
-
getEventApi
- Specified by:
getEventApi
in interfacePlatform
- Throws:
SDKException
-
getEventBinaryApi
- Specified by:
getEventBinaryApi
in interfacePlatform
- Throws:
SDKException
-
getAlarmApi
- Specified by:
getAlarmApi
in interfacePlatform
- Throws:
SDKException
-
getAuditRecordApi
- Specified by:
getAuditRecordApi
in interfacePlatform
- Throws:
SDKException
-
getDeviceCredentialsApi
- Specified by:
getDeviceCredentialsApi
in interfacePlatform
- Throws:
SDKException
-
getBinariesApi
- Specified by:
getBinariesApi
in interfacePlatform
- Throws:
SDKException
-
getUserApi
- Specified by:
getUserApi
in interfacePlatform
- Throws:
SDKException
-
getTenantOptionApi
- Specified by:
getTenantOptionApi
in interfacePlatform
- Throws:
SDKException
-
getSystemOptionApi
- Specified by:
getSystemOptionApi
in interfacePlatform
- Throws:
SDKException
-
getTokenApi
- Specified by:
getTokenApi
in interfacePlatform
- Throws:
SDKException
-
getNotificationSubscriptionApi
- Specified by:
getNotificationSubscriptionApi
in interfacePlatform
- Throws:
SDKException
-
finalize
-
rest
-