Package org.jivesoftware.smackx.jingle
Class JingleUtil
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.JingleUtil
-
public class JingleUtil extends Object
Util to quickly create and send jingle stanzas.
-
-
Constructor Summary
Constructors Constructor Description JingleUtil(XMPPConnection connection)
-
Method Summary
-
-
-
Constructor Detail
-
JingleUtil
public JingleUtil(XMPPConnection connection)
-
-
Method Detail
-
createSessionInitiate
public Jingle createSessionInitiate(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
-
createSessionInitiateFileOffer
public Jingle createSessionInitiateFileOffer(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentDescription description, JingleContentTransport transport)
-
sendSessionInitiateFileOffer
public IQ sendSessionInitiateFileOffer(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentDescription description, JingleContentTransport transport) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
sendSessionInitiate
public IQ sendSessionInitiate(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) throws SmackException.NotConnectedException, InterruptedException
-
createSessionAccept
public Jingle createSessionAccept(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
-
sendSessionAccept
public IQ sendSessionAccept(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) throws SmackException.NotConnectedException, InterruptedException
-
createSessionTerminate
public Jingle createSessionTerminate(FullJid recipient, String sessionId, JingleReason reason)
-
createSessionTerminate
public Jingle createSessionTerminate(FullJid recipient, String sessionId, JingleReason.Reason reason)
-
createSessionTerminateDecline
public Jingle createSessionTerminateDecline(FullJid recipient, String sessionId)
-
sendSessionTerminateDecline
public IQ sendSessionTerminateDecline(FullJid recipient, String sessionId) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
createSessionTerminateSuccess
public Jingle createSessionTerminateSuccess(FullJid recipient, String sessionId)
-
sendSessionTerminateSuccess
public IQ sendSessionTerminateSuccess(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateBusy
public Jingle createSessionTerminateBusy(FullJid recipient, String sessionId)
-
sendSessionTerminateBusy
public IQ sendSessionTerminateBusy(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateAlternativeSession
public Jingle createSessionTerminateAlternativeSession(FullJid recipient, String sessionId, String altSessionId)
-
sendSessionTerminateAlternativeSession
public IQ sendSessionTerminateAlternativeSession(FullJid recipient, String sessionId, String altSessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateCancel
public Jingle createSessionTerminateCancel(FullJid recipient, String sessionId)
-
sendSessionTerminateCancel
public IQ sendSessionTerminateCancel(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateContentCancel
public Jingle createSessionTerminateContentCancel(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName)
-
sendSessionTerminateContentCancel
public IQ sendSessionTerminateContentCancel(FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
createSessionTerminateUnsupportedTransports
public Jingle createSessionTerminateUnsupportedTransports(FullJid recipient, String sessionId)
-
sendSessionTerminateUnsupportedTransports
public IQ sendSessionTerminateUnsupportedTransports(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateFailedTransport
public Jingle createSessionTerminateFailedTransport(FullJid recipient, String sessionId)
-
sendSessionTerminateFailedTransport
public IQ sendSessionTerminateFailedTransport(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateUnsupportedApplications
public Jingle createSessionTerminateUnsupportedApplications(FullJid recipient, String sessionId)
-
sendSessionTerminateUnsupportedApplications
public IQ sendSessionTerminateUnsupportedApplications(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateFailedApplication
public Jingle createSessionTerminateFailedApplication(FullJid recipient, String sessionId)
-
sendSessionTerminateFailedApplication
public IQ sendSessionTerminateFailedApplication(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
createSessionTerminateIncompatibleParameters
public Jingle createSessionTerminateIncompatibleParameters(FullJid recipient, String sessionId)
-
sendSessionTerminateIncompatibleParameters
public IQ sendSessionTerminateIncompatibleParameters(FullJid recipient, String sessionId) throws InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
-
sendContentRejectFileNotAvailable
public IQ sendContentRejectFileNotAvailable(FullJid recipient, String sessionId, JingleContentDescription description)
-
createSessionPing
public Jingle createSessionPing(FullJid recipient, String sessionId)
-
sendSessionPing
public IQ sendSessionPing(FullJid recipient, String sessionId) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
sendAck
public void sendAck(Jingle jingle) throws SmackException.NotConnectedException, InterruptedException
-
createTransportReplace
public Jingle createTransportReplace(FullJid recipient, FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
-
sendTransportReplace
public IQ sendTransportReplace(FullJid recipient, FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
createTransportAccept
public Jingle createTransportAccept(FullJid recipient, FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
-
sendTransportAccept
public IQ sendTransportAccept(FullJid recipient, FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
createTransportReject
public Jingle createTransportReject(FullJid recipient, FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
-
sendTransportReject
public IQ sendTransportReject(FullJid recipient, FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) throws SmackException.NotConnectedException, InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
-
createErrorUnknownSession
public IQ createErrorUnknownSession(Jingle request)
-
sendErrorUnknownSession
public void sendErrorUnknownSession(Jingle request) throws SmackException.NotConnectedException, InterruptedException
-
createErrorUnknownInitiator
public IQ createErrorUnknownInitiator(Jingle request)
-
sendErrorUnknownInitiator
public void sendErrorUnknownInitiator(Jingle request) throws SmackException.NotConnectedException, InterruptedException
-
createErrorUnsupportedInfo
public IQ createErrorUnsupportedInfo(Jingle request)
-
sendErrorUnsupportedInfo
public void sendErrorUnsupportedInfo(Jingle request) throws SmackException.NotConnectedException, InterruptedException
-
createErrorTieBreak
public IQ createErrorTieBreak(Jingle request)
-
sendErrorTieBreak
public void sendErrorTieBreak(Jingle request) throws SmackException.NotConnectedException, InterruptedException
-
createErrorOutOfOrder
public IQ createErrorOutOfOrder(Jingle request)
-
sendErrorOutOfOrder
public void sendErrorOutOfOrder(Jingle request) throws SmackException.NotConnectedException, InterruptedException
-
createErrorMalformedRequest
public IQ createErrorMalformedRequest(Jingle request)
-
sendErrorMalformedRequest
public void sendErrorMalformedRequest(Jingle request) throws SmackException.NotConnectedException, InterruptedException
-
-