Class Chatbot

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component @Deprecated(since="21.0", forRemoval=true) public class Chatbot extends Container
Deprecated, for removal: This API element is subject to removal in a future version.
Component that is linked to Chatbot.js, it manages the ajax queries and the responses.
Since:
14.0
See Also:
  • Field Details

    • LOG

      protected static final LogChannel LOG
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MESSAGE_KEY

      protected static final String MESSAGE_KEY
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_DEVICE_TYPE

      protected static final String DEFAULT_DEVICE_TYPE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_VALUE_APPNAME

      protected static final String DEFAULT_VALUE_APPNAME
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • language

      protected String language
      Deprecated, for removal: This API element is subject to removal in a future version.
    • MULTIPLE_ITEMS_DEFAULT_PHRASE

      protected static final String MULTIPLE_ITEMS_DEFAULT_PHRASE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • SINGLE_ITEM_DEFAULT_PHRASE

      protected static final String SINGLE_ITEM_DEFAULT_PHRASE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_NO_ITEMS_PHRASE

      protected static final String DEFAULT_NO_ITEMS_PHRASE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_CONF_ERROR_PHRASE

      protected static final String DEFAULT_CONF_ERROR_PHRASE
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
    • DEFAULT_CONF_ERROR_PHRASE_2

      protected static final String DEFAULT_CONF_ERROR_PHRASE_2
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • Chatbot

      public Chatbot()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • ajaxQuery

      public void ajaxQuery(HttpServletRequest request, HttpServletResponse response)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: Component
      Method that must be extended to implements the Ajax interaction request / response logic for the Component
      Overrides:
      ajaxQuery in class Component
      Parameters:
      request - HttpServletRequest
      response - HttpServletResponse
    • buildMenuItem

      public String buildMenuItem(org.json.JSONArray items)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method that builds Javascript response for menu items objects.
      Parameters:
      items - array with strings that correspond to node paths(param in menu.xml)
      Returns:
      a JSONObject as string with paths and related events.
    • buildHeaders

      protected AWSRequestHeaders buildHeaders(org.json.JSONObject requestAttributes) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method that builds all the headers for AI Api calls.
      Parameters:
      requestAttributes - requestAttributes in json format
      Returns:
      AWSRequestHeaders with headers
      Throws:
      IOException
    • buildPaths

      protected String buildPaths(String metadataTags)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Method that build a json object with key items and all the paths (_param) that corresponds to the given metadataTags
      Parameters:
      metadataTags - metadata given from the va
      Returns:
      items, i.e paths