Class Transcript
- java.lang.Object
-
- org.jivesoftware.smack.packet.Stanza
-
- org.jivesoftware.smack.packet.IQ
-
- org.jivesoftware.smackx.workgroup.packet.Transcript
-
- All Implemented Interfaces:
org.jivesoftware.smack.packet.Element
,org.jivesoftware.smack.packet.FullyQualifiedElement
,org.jivesoftware.smack.packet.IqView
,org.jivesoftware.smack.packet.NamedElement
,org.jivesoftware.smack.packet.StanzaView
,org.jivesoftware.smack.packet.TopLevelStreamElement
,org.jivesoftware.smack.packet.XmlLangElement
public class Transcript extends org.jivesoftware.smack.packet.IQ
Represents the conversation transcript that occurred in a group chat room between an Agent and a user that requested assistance. The transcript contains all the Messages that were sent to the room as well as the sent presences.
-
-
Constructor Summary
Constructors Constructor Description Transcript(java.lang.String sessionID)
Creates a transcript request for the given sessionID.Transcript(java.lang.String sessionID, java.util.List<org.jivesoftware.smack.packet.Stanza> packets)
Creates a new transcript for the given sessionID and list of packets.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder
getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)
java.util.List<org.jivesoftware.smack.packet.Stanza>
getPackets()
Returns the list of Messages and Presences that were sent to the room.java.lang.String
getSessionID()
Returns id of the session that generated this conversation transcript.-
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, isRequestIQ, isResponseIQ, setType, toString, toXML
-
Methods inherited from class org.jivesoftware.smack.packet.Stanza
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setLanguage, setNewStanzaId, setStanzaId, setStanzaId, setTo, throwIfNoStanzaId
-
-
-
-
Constructor Detail
-
Transcript
public Transcript(java.lang.String sessionID)
Creates a transcript request for the given sessionID.- Parameters:
sessionID
- the id of the session to get the conversation transcript.
-
Transcript
public Transcript(java.lang.String sessionID, java.util.List<org.jivesoftware.smack.packet.Stanza> packets)
Creates a new transcript for the given sessionID and list of packets. The list of packets may include Messages and/or Presences.- Parameters:
sessionID
- the id of the session that generated this conversation transcript.packets
- the list of messages and presences send to the room.
-
-
Method Detail
-
getSessionID
public java.lang.String getSessionID()
Returns id of the session that generated this conversation transcript. The sessionID is a value generated by the server when a new request is received.- Returns:
- id of the session that generated this conversation transcript.
-
getPackets
public java.util.List<org.jivesoftware.smack.packet.Stanza> getPackets()
Returns the list of Messages and Presences that were sent to the room.- Returns:
- the list of Messages and Presences that were sent to the room.
-
getIQChildElementBuilder
protected org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(org.jivesoftware.smack.packet.IQ.IQChildElementXmlStringBuilder buf)
- Specified by:
getIQChildElementBuilder
in classorg.jivesoftware.smack.packet.IQ
-
-