Using the client service

The client service, which implements the com.ibm.hats.runtime.services.IClientService interface, provides methods for retrieving information related to the client service. Sample code to retrieve the client service:
IServiceManager serviceManager = RcpRuntimePlugin.getDefault().getServiceManager();
IClientService clientService = serviceManager.getClientService(“theClientId”);
Table 1 identifies the methods that can be called by the IClientService object.
Table 1. IClientService methods
Method Description
getClientId() Returns the client identifier, or ID. In the rich client, this is always the value of RcpRuntimeService.rcpClientId.
getRuntimeService() Returns the runtime service.
getServiceManager() Returns the service manager that instantiated this service.
getSession(String) Returns the specified session.
Note: This is the host session of type ISession, not the session service instance.