Class JingleUtil

java.lang.Object
org.jivesoftware.smackx.jingle.JingleUtil

public class JingleUtil extends Object
Util to quickly create and send jingle stanzas.
  • Constructor Details

    • JingleUtil

      public JingleUtil(org.jivesoftware.smack.XMPPConnection connection)
  • Method Details

    • createSessionInitiate

      public Jingle createSessionInitiate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
    • createSessionInitiateFileOffer

      public Jingle createSessionInitiateFileOffer(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentDescription description, JingleContentTransport transport)
    • sendSessionInitiateFileOffer

      public org.jivesoftware.smack.packet.IQ sendSessionInitiateFileOffer(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentDescription description, JingleContentTransport transport) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • sendSessionInitiate

      public org.jivesoftware.smack.packet.IQ sendSessionInitiate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.SmackException.NoResponseException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
    • createSessionAccept

      public Jingle createSessionAccept(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
    • sendSessionAccept

      public org.jivesoftware.smack.packet.IQ sendSessionAccept(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.SmackException.NoResponseException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
    • createSessionTerminate

      public Jingle createSessionTerminate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleReason reason)
    • createSessionTerminate

      public Jingle createSessionTerminate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleReason.Reason reason)
    • createSessionTerminateDecline

      public Jingle createSessionTerminateDecline(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateDecline

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateDecline(org.jxmpp.jid.FullJid recipient, String sessionId) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateSuccess

      public Jingle createSessionTerminateSuccess(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateSuccess

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateSuccess(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateBusy

      public Jingle createSessionTerminateBusy(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateBusy

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateBusy(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateAlternativeSession

      public Jingle createSessionTerminateAlternativeSession(org.jxmpp.jid.FullJid recipient, String sessionId, String altSessionId)
    • sendSessionTerminateAlternativeSession

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateAlternativeSession(org.jxmpp.jid.FullJid recipient, String sessionId, String altSessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateCancel

      public Jingle createSessionTerminateCancel(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateCancel

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateCancel(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateContentCancel

      public Jingle createSessionTerminateContentCancel(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName)
    • sendSessionTerminateContentCancel

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateContentCancel(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateUnsupportedTransports

      public Jingle createSessionTerminateUnsupportedTransports(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateUnsupportedTransports

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateUnsupportedTransports(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateFailedTransport

      public Jingle createSessionTerminateFailedTransport(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateFailedTransport

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateFailedTransport(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateUnsupportedApplications

      public Jingle createSessionTerminateUnsupportedApplications(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateUnsupportedApplications

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateUnsupportedApplications(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateFailedApplication

      public Jingle createSessionTerminateFailedApplication(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateFailedApplication

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateFailedApplication(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createSessionTerminateIncompatibleParameters

      public Jingle createSessionTerminateIncompatibleParameters(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionTerminateIncompatibleParameters

      public org.jivesoftware.smack.packet.IQ sendSessionTerminateIncompatibleParameters(org.jxmpp.jid.FullJid recipient, String sessionId) throws InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NotConnectedException
      org.jivesoftware.smack.SmackException.NoResponseException
    • sendContentRejectFileNotAvailable

      public org.jivesoftware.smack.packet.IQ sendContentRejectFileNotAvailable(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContentDescription description)
    • createSessionPing

      public Jingle createSessionPing(org.jxmpp.jid.FullJid recipient, String sessionId)
    • sendSessionPing

      public org.jivesoftware.smack.packet.IQ sendSessionPing(org.jxmpp.jid.FullJid recipient, String sessionId) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createAck

      public org.jivesoftware.smack.packet.IQ createAck(Jingle jingle)
    • sendAck

      public void sendAck(Jingle jingle) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • createTransportReplace

      public Jingle createTransportReplace(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
    • sendTransportReplace

      public org.jivesoftware.smack.packet.IQ sendTransportReplace(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createTransportAccept

      public Jingle createTransportAccept(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
    • sendTransportAccept

      public org.jivesoftware.smack.packet.IQ sendTransportAccept(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createTransportReject

      public Jingle createTransportReject(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
    • sendTransportReject

      public org.jivesoftware.smack.packet.IQ sendTransportReject(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NoResponseException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
      org.jivesoftware.smack.XMPPException.XMPPErrorException
      org.jivesoftware.smack.SmackException.NoResponseException
    • createErrorUnknownSession

      public org.jivesoftware.smack.packet.IQ createErrorUnknownSession(Jingle request)
    • sendErrorUnknownSession

      public void sendErrorUnknownSession(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • createErrorUnknownInitiator

      public org.jivesoftware.smack.packet.IQ createErrorUnknownInitiator(Jingle request)
    • sendErrorUnknownInitiator

      public void sendErrorUnknownInitiator(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • createErrorUnsupportedInfo

      public org.jivesoftware.smack.packet.IQ createErrorUnsupportedInfo(Jingle request)
    • sendErrorUnsupportedInfo

      public void sendErrorUnsupportedInfo(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • createErrorTieBreak

      public org.jivesoftware.smack.packet.IQ createErrorTieBreak(Jingle request)
    • sendErrorTieBreak

      public void sendErrorTieBreak(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • createErrorOutOfOrder

      public org.jivesoftware.smack.packet.IQ createErrorOutOfOrder(Jingle request)
    • sendErrorOutOfOrder

      public void sendErrorOutOfOrder(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException
    • createErrorMalformedRequest

      public org.jivesoftware.smack.packet.IQ createErrorMalformedRequest(Jingle request)
    • sendErrorMalformedRequest

      public void sendErrorMalformedRequest(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException
      Throws:
      org.jivesoftware.smack.SmackException.NotConnectedException
      InterruptedException