public interface SymphonyClient
This interface provides access to all client API implementations and services.
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.client.Client |
getAgentHttpClient()
Retrieve the HTTP client for Agent connectivity
|
java.lang.String |
getAgentUrl()
Returns the Agent URL used during initialization
|
AttachmentsClient |
getAttachmentsClient()
Provides instance of the Attachments client
|
SymCache |
getCache(CacheType cacheType)
Return a cache by type
CacheType |
ChatService |
getChatService()
Provides active Chat Service
|
SymphonyClientConfig |
getConfig()
Get SJC configuration
|
ConnectionsClient |
getConnectionsClient()
Provides instance of the Connections client
|
DataFeedClient |
getDataFeedClient()
Provides instance of the DataFeed client
|
javax.ws.rs.client.Client |
getDefaultHttpClient()
If set, returns the custom http client set during initialization.
|
SymUser |
getLocalUser()
Returns the local BOT user for the instantiated client.
|
MessagesClient |
getMessagesClient()
Provides instance of the Messages Client
|
MessageService |
getMessageService()
Provides active Message Service
|
java.lang.String |
getName()
Gets the name of the client (defaults to first part of email address) to use in all spawned thread names.
|
javax.ws.rs.client.Client |
getPodHttpClient()
Retrieve the HTTP client for POD connectivity
|
java.lang.String |
getPodUrl()
Retrieve the POD url.
|
PresenceClient |
getPresenceClient()
Provides instance of the Presence client
|
PresenceService |
getPresenceService() |
RoomMembershipClient |
getRoomMembershipClient()
Provides instance of the Room Membership client
|
RoomService |
getRoomService()
Provides active Room Service
|
ShareClient |
getShareClient()
Provides instance of the Shares client.
|
StreamsClient |
getStreamsClient()
Provides instance of the Streams client
|
SymAuth |
getSymAuth()
Retrieve authorization object.
|
SymphonyApis |
getSymphonyApis()
Convenience in obtaining all underlying language binding APIs
Accessing language bindings directly is discouraged as changes are bound to REST API
|
UsersClient |
getUsersClient()
Provides instance of the Users client
|
void |
init(javax.ws.rs.client.Client podHttpClient,
javax.ws.rs.client.Client agentHttpClient,
SymphonyClientConfig config)
Initialize client with required parameters and custom HTTP client.
|
void |
init(javax.ws.rs.client.Client httpClient,
SymAuth symAuth,
java.lang.String userEmail,
java.lang.String agentUrl,
java.lang.String podUrl)
Deprecated.
|
void |
init(javax.ws.rs.client.Client httpClient,
SymphonyClientConfig config)
Initialize client with required parameters and custom HTTP client.
|
void |
init(SymAuth symAuth,
java.lang.String userEmail,
java.lang.String agentUrl,
java.lang.String podUrl)
Deprecated.
|
void |
init(SymAuth symAuth,
java.lang.String userEmail,
java.lang.String agentUrl,
java.lang.String podUrl,
boolean disableServices)
Deprecated.
|
void |
init(SymAuth symAuth,
SymphonyClientConfig config) |
void |
init(SymphonyClientConfig config) |
void |
setAgentHttpClient(javax.ws.rs.client.Client agentHttpClient)
Set the HTTP client for Agent connectivity
|
void |
setCache(SymCache symCache)
Set a cache for types :
CacheType |
void |
setConfig(SymphonyClientConfig config)
Set SJC configuration
|
void |
setDefaultHttpClient(javax.ws.rs.client.Client defaultHttpClient)
Set a custom Http client to use when connecting to Symphony API's
|
void |
setName(java.lang.String name)
Sets the name of the client to use in all spawned thread names.
|
void |
setPodHttpClient(javax.ws.rs.client.Client podHttpClient)
Set the HTTP client for POD connectivity
|
void |
setSymAuth(SymAuth symAuth)
Set authorization object
|
void |
shutdown()
Terminates all underlying services and threads.
|
@Deprecated void init(SymAuth symAuth, java.lang.String userEmail, java.lang.String agentUrl, java.lang.String podUrl, boolean disableServices) throws InitException
symAuth
- Contains valid key and session tokens generated from AuthenticationClient.userEmail
- Email address of the BOTagentUrl
- The Agent URLpodUrl
- The Service URL (in most cases it's the POD URL)disableServices
- Disable all real-time services (MessageService, RoomService, ChatService)InitException
- Failure of a specific service most likely due to connectivity issues@Deprecated void init(SymAuth symAuth, java.lang.String userEmail, java.lang.String agentUrl, java.lang.String podUrl) throws InitException
symAuth
- Contains valid key and session tokens generated from AuthenticationClient.userEmail
- Email address of the BOTagentUrl
- The Agent URLpodUrl
- The Service URL (in most cases it's the POD URL)InitException
- Failure of a specific service most likely due to connectivity issues@Deprecated void init(javax.ws.rs.client.Client httpClient, SymAuth symAuth, java.lang.String userEmail, java.lang.String agentUrl, java.lang.String podUrl) throws InitException
httpClient
- Custom http client to use when connecting to Symphony API'ssymAuth
- Contains valid key and session tokens generated from AuthenticationClient.userEmail
- Email address of the BOTagentUrl
- The Agent URLpodUrl
- The Service URL (in most cases it's the POD URL)InitException
- Failure of a specific service most likely due to connectivity issuesvoid init(javax.ws.rs.client.Client podHttpClient, javax.ws.rs.client.Client agentHttpClient, SymphonyClientConfig config) throws InitException, AuthenticationException
podHttpClient
- Custom http client to use when connecting to the podagentHttpClient
- Custom http client to use when connecting to the agent serverconfig
- Configuration objectInitException
- Failure of a specific service most likely due to connectivity issuesAuthenticationException
- A network exceptionvoid init(javax.ws.rs.client.Client httpClient, SymphonyClientConfig config) throws InitException, AuthenticationException
httpClient
- Custom http client to use when connecting to Symphony API'sconfig
- Configuration objectInitException
- Failure of a specific service most likely due to connectivity issuesAuthenticationException
- A network exceptionjava.lang.String getName()
void setName(java.lang.String name)
name
- name for threadvoid init(SymphonyClientConfig config) throws InitException, AuthenticationException
InitException
AuthenticationException
void init(SymAuth symAuth, SymphonyClientConfig config) throws InitException
InitException
SymAuth getSymAuth()
SymAuth
Authorization object containing session and key tokens. This can return a null value.void setSymAuth(SymAuth symAuth)
symAuth
- Authorization object containing session and key tokens.MessageService getMessageService()
MessageService
ChatService getChatService()
ChatService
RoomService getRoomService()
RoomService
PresenceClient getPresenceClient()
PresenceClient
StreamsClient getStreamsClient()
StreamsClient
UsersClient getUsersClient()
UsersClient
MessagesClient getMessagesClient()
MessagesClient
java.lang.String getPodUrl()
DataFeedClient getDataFeedClient()
DataFeedClient
RoomMembershipClient getRoomMembershipClient()
RoomMembershipClient
AttachmentsClient getAttachmentsClient()
AttachmentsClient
ConnectionsClient getConnectionsClient()
ConnectionsClient
SymUser getLocalUser()
SymUser
User representing the BOT identityjava.lang.String getAgentUrl()
ShareClient getShareClient()
ShareClient
javax.ws.rs.client.Client getDefaultHttpClient()
Client
void setDefaultHttpClient(javax.ws.rs.client.Client defaultHttpClient)
defaultHttpClient
- Custom HTTP clientvoid setCache(SymCache symCache) throws SymCacheException
CacheType
symCache
- A cacheSymCacheException
- Exception if cache is unknown.SymCache getCache(CacheType cacheType)
CacheType
cacheType
- The type of cache to returnvoid shutdown()
javax.ws.rs.client.Client getPodHttpClient()
void setPodHttpClient(javax.ws.rs.client.Client podHttpClient)
podHttpClient
- HttpClient for PODjavax.ws.rs.client.Client getAgentHttpClient()
void setAgentHttpClient(javax.ws.rs.client.Client agentHttpClient)
agentHttpClient
- HttpClient for AgentSymphonyApis getSymphonyApis()
SymphonyClientConfig getConfig()
void setConfig(SymphonyClientConfig config)
config
- SymphonyClientConfiguration for SJCPresenceService getPresenceService()