public class TsConversation
extends java.lang.Object
The IBM Sales Center Conversation Class contains all methods needed for creating and maintaining the conversation between the client and WebSphere Commerce server. It contains the CSR anchor hashtable from which the storeId tables are accessed. The storeId tables are then used to access the runAsId tables, which contain the TokenContexts and hence the tokens for each active conversation. Methods are provided for starting and stopping conversations and for initializing the NameValuePairs that establish the characteristics of the context of each specific conversation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
Constructor and Description |
---|
TsConversation()
Default constructor for TsConversation.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | modifyEndpoint(java.lang.String endpoint, java.lang.String hostname, java.lang.String portnumber, boolean fSSLenabled)
Modifies a service endpoint to the appropriate hostname-portnumber values.
|
void | setResponseTimeout(java.lang.String timeout)
Method to set the response time out.
|
com.ibm.commerce.telesales.services.ws.ActivityDataNameValuePairs | setupActivityDataNVPs(ServiceContext sC)
Creates and populates data for starting conversation with the server.
|
com.ibm.commerce.telesales.services.ws.ActivityToken | startConversation(ServiceContext serviceContext, com.ibm.commerce.telesales.services.ws.ActivityToken tsrToken)
Starts the customer conversation with server, getting an activity token back from server.
|
com.ibm.commerce.telesales.services.ws.ActivityToken | startConversation(ServiceContext serviceContext, java.lang.String hostname, java.lang.String portnumber, boolean fSSLEnabled)
Starts the CSR conversation with server, getting activity or conversation token back from the Web service.
|
void | stopConversation(java.util.Hashtable tokenTable)
Stops the conversation for a specified customer.
|
public static final java.lang.String COPYRIGHT
public TsConversation()
The TsConversation object contains all aspects of the conversations between the client and the Web services to which it communicates.
public com.ibm.commerce.telesales.services.ws.ActivityDataNameValuePairs setupActivityDataNVPs(ServiceContext sC)
The GlobalizationContext values used will be the same as the ones set up for the CSR. This is since the user interface is being viewed by the CSR and not by the customer. (For example values such as language, locale, and currency). These values are set into the ServiceContext by the core plugin prior to this invocation. However, the BaseContext values can, and usually will, be different.
public void setResponseTimeout(java.lang.String timeout)
public com.ibm.commerce.telesales.services.ws.ActivityToken startConversation(ServiceContext serviceContext, java.lang.String hostname, java.lang.String portnumber, boolean fSSLEnabled) throws TelesalesServicesException
public com.ibm.commerce.telesales.services.ws.ActivityToken startConversation(ServiceContext serviceContext, com.ibm.commerce.telesales.services.ws.ActivityToken tsrToken) throws TelesalesServicesException
public void stopConversation(java.util.Hashtable tokenTable)
public java.lang.String modifyEndpoint(java.lang.String endpoint, java.lang.String hostname, java.lang.String portnumber, boolean fSSLenabled)