Search in sources :

Example 6 with Transcript

use of org.jivesoftware.smackx.workgroup.packet.Transcript in project Smack by igniterealtime.

the class TranscriptManager method getTranscript.

/**
 * Returns the full conversation transcript of a given session.
 *
 * @param sessionID the id of the session to get the full transcript.
 * @param workgroupJID the JID of the workgroup that will process the request.
 * @return the full conversation transcript of a given session.
 * @throws XMPPErrorException if there was an XMPP error returned.
 * @throws NoResponseException if there was no response from the remote entity.
 * @throws NotConnectedException if the XMPP connection is not connected.
 * @throws InterruptedException if the calling thread was interrupted.
 */
public Transcript getTranscript(EntityBareJid workgroupJID, String sessionID) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
    Transcript request = new Transcript(sessionID);
    request.setTo(workgroupJID);
    Transcript response = connection.sendIqRequestAndWaitForResponse(request);
    return response;
}
Also used : Transcript(org.jivesoftware.smackx.workgroup.packet.Transcript)

Aggregations

Transcript (org.jivesoftware.smackx.workgroup.packet.Transcript)6 XMPPException (org.jivesoftware.smack.XMPPException)4 BorderLayout (java.awt.BorderLayout)3 JFrame (javax.swing.JFrame)3 SmackException (org.jivesoftware.smack.SmackException)3 ChatViewer (org.jivesoftware.fastpath.workspace.panes.ChatViewer)2 Dimension (java.awt.Dimension)1 Font (java.awt.Font)1 GridBagConstraints (java.awt.GridBagConstraints)1 GridBagLayout (java.awt.GridBagLayout)1 Insets (java.awt.Insets)1 MouseAdapter (java.awt.event.MouseAdapter)1 MouseEvent (java.awt.event.MouseEvent)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 DefaultListModel (javax.swing.DefaultListModel)1 JLabel (javax.swing.JLabel)1 JList (javax.swing.JList)1 JScrollPane (javax.swing.JScrollPane)1 BackgroundPane (org.jivesoftware.fastpath.workspace.panes.BackgroundPane)1