Package org.jivesoftware.smackx.jingle
Class JingleUtil
java.lang.Object
org.jivesoftware.smackx.jingle.JingleUtil
Util to quickly create and send jingle stanzas.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.jivesoftware.smack.packet.IQorg.jivesoftware.smack.packet.IQcreateErrorMalformedRequest(Jingle request) org.jivesoftware.smack.packet.IQcreateErrorOutOfOrder(Jingle request) org.jivesoftware.smack.packet.IQcreateErrorTieBreak(Jingle request) org.jivesoftware.smack.packet.IQcreateErrorUnknownInitiator(Jingle request) org.jivesoftware.smack.packet.IQcreateErrorUnknownSession(Jingle request) org.jivesoftware.smack.packet.IQcreateErrorUnsupportedInfo(Jingle request) createSessionAccept(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) createSessionInitiate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) createSessionInitiateFileOffer(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentDescription description, JingleContentTransport transport) createSessionPing(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleReason reason) createSessionTerminate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleReason.Reason reason) createSessionTerminateAlternativeSession(org.jxmpp.jid.FullJid recipient, String sessionId, String altSessionId) createSessionTerminateBusy(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateCancel(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateContentCancel(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName) createSessionTerminateDecline(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateFailedApplication(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateFailedTransport(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateIncompatibleParameters(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateSuccess(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateUnsupportedApplications(org.jxmpp.jid.FullJid recipient, String sessionId) createSessionTerminateUnsupportedTransports(org.jxmpp.jid.FullJid recipient, String sessionId) createTransportAccept(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) createTransportReject(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) createTransportReplace(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) voidorg.jivesoftware.smack.packet.IQsendContentRejectFileNotAvailable(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContentDescription description) voidsendErrorMalformedRequest(Jingle request) voidsendErrorOutOfOrder(Jingle request) voidsendErrorTieBreak(Jingle request) voidsendErrorUnknownInitiator(Jingle request) voidsendErrorUnknownSession(Jingle request) voidsendErrorUnsupportedInfo(Jingle request) org.jivesoftware.smack.packet.IQsendSessionAccept(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) org.jivesoftware.smack.packet.IQsendSessionInitiate(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) org.jivesoftware.smack.packet.IQsendSessionInitiateFileOffer(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentDescription description, JingleContentTransport transport) org.jivesoftware.smack.packet.IQsendSessionPing(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateAlternativeSession(org.jxmpp.jid.FullJid recipient, String sessionId, String altSessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateBusy(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateCancel(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateContentCancel(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContent.Creator contentCreator, String contentName) org.jivesoftware.smack.packet.IQsendSessionTerminateDecline(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateFailedApplication(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateFailedTransport(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateIncompatibleParameters(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateSuccess(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateUnsupportedApplications(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendSessionTerminateUnsupportedTransports(org.jxmpp.jid.FullJid recipient, String sessionId) org.jivesoftware.smack.packet.IQsendTransportAccept(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) org.jivesoftware.smack.packet.IQsendTransportReject(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport) org.jivesoftware.smack.packet.IQsendTransportReplace(org.jxmpp.jid.FullJid recipient, org.jxmpp.jid.FullJid initiator, String sessionId, JingleContent.Creator contentCreator, String contentName, JingleContentTransport transport)
-
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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.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
-
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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateSuccess
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateBusy
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateAlternativeSession
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateCancel
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateUnsupportedTransports
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateFailedTransport
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateUnsupportedApplications
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateFailedApplication
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createSessionTerminateIncompatibleParameters
-
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:
InterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
sendContentRejectFileNotAvailable
public org.jivesoftware.smack.packet.IQ sendContentRejectFileNotAvailable(org.jxmpp.jid.FullJid recipient, String sessionId, JingleContentDescription description) -
createSessionPing
-
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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createAck
-
sendAck
public void sendAck(Jingle jingle) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.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.NotConnectedExceptionInterruptedExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseException
-
createErrorUnknownSession
-
sendErrorUnknownSession
public void sendErrorUnknownSession(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
createErrorUnknownInitiator
-
sendErrorUnknownInitiator
public void sendErrorUnknownInitiator(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
createErrorUnsupportedInfo
-
sendErrorUnsupportedInfo
public void sendErrorUnsupportedInfo(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
createErrorTieBreak
-
sendErrorTieBreak
public void sendErrorTieBreak(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
createErrorOutOfOrder
-
sendErrorOutOfOrder
public void sendErrorOutOfOrder(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-
createErrorMalformedRequest
-
sendErrorMalformedRequest
public void sendErrorMalformedRequest(Jingle request) throws org.jivesoftware.smack.SmackException.NotConnectedException, InterruptedException - Throws:
org.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedException
-