Class ChatMessage.ChatSource

java.lang.Object
org.codelibs.fess.entity.ChatMessage.ChatSource
All Implemented Interfaces:
Serializable
Enclosing class:
ChatMessage

public static class ChatMessage.ChatSource extends Object implements Serializable
Represents a source document referenced in the chat response.
See Also:
  • Constructor Details

    • ChatSource

      public ChatSource()
      Default constructor.
    • ChatSource

      public ChatSource(int index, Map<String,Object> doc)
      Creates a new chat source from a document map.
      Parameters:
      index - the source index
      doc - the document map containing source data
  • Method Details

    • getIndex

      public int getIndex()
      Gets the source index.
      Returns:
      the source index
    • setIndex

      public void setIndex(int index)
      Sets the source index.
      Parameters:
      index - the source index
    • getTitle

      public String getTitle()
      Gets the source title.
      Returns:
      the source title
    • setTitle

      public void setTitle(String title)
      Sets the source title.
      Parameters:
      title - the source title
    • getUrl

      public String getUrl()
      Gets the source URL.
      Returns:
      the source URL
    • setUrl

      public void setUrl(String url)
      Sets the source URL.
      Parameters:
      url - the source URL
    • getDocId

      public String getDocId()
      Gets the document ID.
      Returns:
      the document ID
    • setDocId

      public void setDocId(String docId)
      Sets the document ID.
      Parameters:
      docId - the document ID
    • getSnippet

      public String getSnippet()
      Gets the source snippet.
      Returns:
      the source snippet
    • setSnippet

      public void setSnippet(String snippet)
      Sets the source snippet.
      Parameters:
      snippet - the source snippet
    • getUrlLink

      public String getUrlLink()
      Gets the ViewHelper-processed URL for display.
      Returns:
      the URL link
    • setUrlLink

      public void setUrlLink(String urlLink)
      Sets the ViewHelper-processed URL for display.
      Parameters:
      urlLink - the URL link
    • getGoUrl

      public String getGoUrl()
      Gets the go link URL for navigation.
      Returns:
      the go URL
    • setGoUrl

      public void setGoUrl(String goUrl)
      Sets the go link URL for navigation.
      Parameters:
      goUrl - the go URL