public class ManuallyAbandonedConversationCanceller extends java.lang.Object implements ConversationCanceller
ConversationAbandonedEvent
to indicate that the conversation was manually
abandoned by programmatically calling the abandon() method on it.构造器和说明 |
---|
ManuallyAbandonedConversationCanceller() |
限定符和类型 | 方法和说明 |
---|---|
boolean |
cancelBasedOnInput(ConversationContext context,
java.lang.String input)
根据用户的输入反馈取消一个会话.
|
ConversationCanceller |
clone()
允许某一
ConversationFactory 在创建一个新Conversation 时
复制这个ConversationCanceller. |
void |
setConversation(Conversation conversation)
设置本ConversationCanceller可以取消的会话.
|
public void setConversation(Conversation conversation)
ConversationCanceller
原文:Sets the conversation this ConversationCanceller can optionally cancel.
setConversation
在接口中 ConversationCanceller
conversation
- 一个会话public boolean cancelBasedOnInput(ConversationContext context, java.lang.String input)
ConversationCanceller
原文:Cancels a conversation based on user input.
cancelBasedOnInput
在接口中 ConversationCanceller
context
- 关于会话的Context信息input
- 用户的输入值public ConversationCanceller clone()
ConversationCanceller
ConversationFactory
在创建一个新Conversation
时
复制这个ConversationCanceller.
实现这个方法应当重置一切内部的对象状态.
原文:Allows the ConversationFactory
to duplicate this
ConversationCanceller when creating a new Conversation
.
Implementing this method should reset any internal object state.
clone
在接口中 ConversationCanceller
clone
在类中 java.lang.Object