public abstract class AbstractChatBot extends Object implements ChatBot, Serializable
Constructor and Description |
---|
AbstractChatBot() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAvailableLanguages()
Return available languages list
|
String |
getAvatarUrl()
Returns the BotAvatarUrl
|
String |
getDescription(Locale locale)
Returns the Description
|
String |
getDescriptionI18nKey()
Returns the DescriptionI18nKey
|
String |
getKey()
Returns the Key
|
String |
getName(Locale locale)
Returns the Name
|
String |
getNameI18nKey()
Returns the NameI18nKey
|
String |
processData(javax.servlet.http.HttpServletRequest request,
Map<String,String> mapData,
Locale locale)
Last bot post build with data collected.
|
void |
setAvatarUrl(String strBotAvatarUrl)
Sets the BotAvatarUrl
|
void |
setDescription(String strDescription)
Sets the Description
|
void |
setDescriptionI18nKey(String strDescriptionI18nKey)
Sets the DescriptionI18nKey
|
void |
setKey(String strKey)
Sets the Key
|
void |
setListAvailableLanguages(List<String> listAvailableLanguages)
Set available languages list
|
void |
setName(String strName)
Sets the Name
|
void |
setNameI18nKey(String strNameI18nKey)
Sets the NameI18nKey
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processUserMessage
public String getKey()
public void setKey(String strKey)
strKey
- The Keypublic void setName(String strName)
strName
- The Namepublic String getDescription(Locale locale)
getDescription
in interface ChatBot
locale
- The localepublic void setDescription(String strDescription)
strDescription
- The Descriptionpublic String getNameI18nKey()
public void setNameI18nKey(String strNameI18nKey)
strNameI18nKey
- The NameI18nKeypublic String getDescriptionI18nKey()
public void setDescriptionI18nKey(String strDescriptionI18nKey)
strDescriptionI18nKey
- The DescriptionI18nKeypublic String getAvatarUrl()
getAvatarUrl
in interface ChatBot
public void setAvatarUrl(String strBotAvatarUrl)
strBotAvatarUrl
- The BotAvatarUrlpublic void setListAvailableLanguages(List<String> listAvailableLanguages)
listAvailableLanguages
- available languages listpublic List<String> getAvailableLanguages()
getAvailableLanguages
in interface ChatBot
public String processData(javax.servlet.http.HttpServletRequest request, Map<String,String> mapData, Locale locale)
request
- The HTTP requestmapData
- The datalocale
- The localeCopyright © 2017 City of Paris. All rights reserved.