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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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, getNotifications2, getPageSize, getProxyHost, getProxyPassword, getProxyPort, getProxyUserId, getRequestOrigin, getResponseMapper, getSvensonConfig, getTenantId, getTfaToken, getUser, isAlwaysCloseConnection, isForceInitialHost, registerInterceptor, requireResponseBody, setAlwaysCloseConnection, setChunkedEncodingSize, setForceInitialHost, setHost, setHttpClientConfig, setNotifications2, setProxyHost, setProxyPassword, setProxyPort, setProxyUserId, setRequireResponseBody, setResponseMapper, setSvensonConfig, 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:
getInventoryApiin interfacePlatform- Throws:
SDKException
-
getIdentityApi
- Specified by:
getIdentityApiin interfacePlatform- Throws:
SDKException
-
getMeasurementApi
- Specified by:
getMeasurementApiin interfacePlatform- Throws:
SDKException
-
getDeviceControlApi
- Specified by:
getDeviceControlApiin interfacePlatform- Throws:
SDKException
-
getEventApi
- Specified by:
getEventApiin interfacePlatform- Throws:
SDKException
-
getEventBinaryApi
- Specified by:
getEventBinaryApiin interfacePlatform- Throws:
SDKException
-
getAlarmApi
- Specified by:
getAlarmApiin interfacePlatform- Throws:
SDKException
-
getAuditRecordApi
- Specified by:
getAuditRecordApiin interfacePlatform- Throws:
SDKException
-
getDeviceCredentialsApi
- Specified by:
getDeviceCredentialsApiin interfacePlatform- Throws:
SDKException
-
getBinariesApi
- Specified by:
getBinariesApiin interfacePlatform- Throws:
SDKException
-
getUserApi
- Specified by:
getUserApiin interfacePlatform- Throws:
SDKException
-
getTenantOptionApi
- Specified by:
getTenantOptionApiin interfacePlatform- Throws:
SDKException
-
getSystemOptionApi
- Specified by:
getSystemOptionApiin interfacePlatform- Throws:
SDKException
-
getTokenApi
- Specified by:
getTokenApiin interfacePlatform- Throws:
SDKException
-
getNotificationSubscriptionApi
- Specified by:
getNotificationSubscriptionApiin interfacePlatform- Throws:
SDKException
-
getNotifications2Api
- Specified by:
getNotifications2Apiin interfacePlatform- Throws:
SDKException
-
finalize
-
rest
-