Package org.jivesoftware.smackx.jingle
Class JingleUtil
- java.lang.Object
-
- org.jivesoftware.smackx.jingle.JingleUtil
-
public class JingleUtil extends java.lang.Object
Util to quickly create and send jingle stanzas.
-
-
Constructor Summary
Constructors Constructor Description JingleUtil(XMPPConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IQcreateAck(Jingle jingle)IQcreateErrorMalformedRequest(Jingle request)IQcreateErrorOutOfOrder(Jingle request)IQcreateErrorTieBreak(Jingle request)IQcreateErrorUnknownInitiator(Jingle request)IQcreateErrorUnknownSession(Jingle request)IQcreateErrorUnsupportedInfo(Jingle request)JinglecreateSessionAccept(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)JinglecreateSessionInitiate(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)JinglecreateSessionInitiateFileOffer(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentDescription description, JingleContentTransport transport)JinglecreateSessionPing(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminate(FullJid recipient, java.lang.String sessionId, JingleReason reason)JinglecreateSessionTerminate(FullJid recipient, java.lang.String sessionId, JingleReason.Reason reason)JinglecreateSessionTerminateAlternativeSession(FullJid recipient, java.lang.String sessionId, java.lang.String altSessionId)JinglecreateSessionTerminateBusy(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateCancel(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateContentCancel(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName)JinglecreateSessionTerminateDecline(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateFailedApplication(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateFailedTransport(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateIncompatibleParameters(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateSuccess(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateUnsupportedApplications(FullJid recipient, java.lang.String sessionId)JinglecreateSessionTerminateUnsupportedTransports(FullJid recipient, java.lang.String sessionId)JinglecreateTransportAccept(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)JinglecreateTransportReject(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)JinglecreateTransportReplace(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)voidsendAck(Jingle jingle)IQsendContentRejectFileNotAvailable(FullJid recipient, java.lang.String sessionId, JingleContentDescription description)voidsendErrorMalformedRequest(Jingle request)voidsendErrorOutOfOrder(Jingle request)voidsendErrorTieBreak(Jingle request)voidsendErrorUnknownInitiator(Jingle request)voidsendErrorUnknownSession(Jingle request)voidsendErrorUnsupportedInfo(Jingle request)IQsendSessionAccept(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)IQsendSessionInitiate(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)IQsendSessionInitiateFileOffer(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentDescription description, JingleContentTransport transport)IQsendSessionPing(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateAlternativeSession(FullJid recipient, java.lang.String sessionId, java.lang.String altSessionId)IQsendSessionTerminateBusy(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateCancel(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateContentCancel(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName)IQsendSessionTerminateDecline(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateFailedApplication(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateFailedTransport(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateIncompatibleParameters(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateSuccess(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateUnsupportedApplications(FullJid recipient, java.lang.String sessionId)IQsendSessionTerminateUnsupportedTransports(FullJid recipient, java.lang.String sessionId)IQsendTransportAccept(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)IQsendTransportReject(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)IQsendTransportReplace(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
-
-
-
Constructor Detail
-
JingleUtil
public JingleUtil(XMPPConnection connection)
-
-
Method Detail
-
createSessionInitiate
public Jingle createSessionInitiate(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
-
createSessionInitiateFileOffer
public Jingle createSessionInitiateFileOffer(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentDescription description, JingleContentTransport transport)
-
sendSessionInitiateFileOffer
public IQ sendSessionInitiateFileOffer(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentDescription description, JingleContentTransport transport) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
sendSessionInitiate
public IQ sendSessionInitiate(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createSessionAccept
public Jingle createSessionAccept(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
-
sendSessionAccept
public IQ sendSessionAccept(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createSessionTerminate
public Jingle createSessionTerminate(FullJid recipient, java.lang.String sessionId, JingleReason reason)
-
createSessionTerminate
public Jingle createSessionTerminate(FullJid recipient, java.lang.String sessionId, JingleReason.Reason reason)
-
createSessionTerminateDecline
public Jingle createSessionTerminateDecline(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateDecline
public IQ sendSessionTerminateDecline(FullJid recipient, java.lang.String sessionId) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
createSessionTerminateSuccess
public Jingle createSessionTerminateSuccess(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateSuccess
public IQ sendSessionTerminateSuccess(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateBusy
public Jingle createSessionTerminateBusy(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateBusy
public IQ sendSessionTerminateBusy(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateAlternativeSession
public Jingle createSessionTerminateAlternativeSession(FullJid recipient, java.lang.String sessionId, java.lang.String altSessionId)
-
sendSessionTerminateAlternativeSession
public IQ sendSessionTerminateAlternativeSession(FullJid recipient, java.lang.String sessionId, java.lang.String altSessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateCancel
public Jingle createSessionTerminateCancel(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateCancel
public IQ sendSessionTerminateCancel(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateContentCancel
public Jingle createSessionTerminateContentCancel(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName)
-
sendSessionTerminateContentCancel
public IQ sendSessionTerminateContentCancel(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
createSessionTerminateUnsupportedTransports
public Jingle createSessionTerminateUnsupportedTransports(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateUnsupportedTransports
public IQ sendSessionTerminateUnsupportedTransports(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateFailedTransport
public Jingle createSessionTerminateFailedTransport(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateFailedTransport
public IQ sendSessionTerminateFailedTransport(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateUnsupportedApplications
public Jingle createSessionTerminateUnsupportedApplications(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateUnsupportedApplications
public IQ sendSessionTerminateUnsupportedApplications(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateFailedApplication
public Jingle createSessionTerminateFailedApplication(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateFailedApplication
public IQ sendSessionTerminateFailedApplication(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
createSessionTerminateIncompatibleParameters
public Jingle createSessionTerminateIncompatibleParameters(FullJid recipient, java.lang.String sessionId)
-
sendSessionTerminateIncompatibleParameters
public IQ sendSessionTerminateIncompatibleParameters(FullJid recipient, java.lang.String sessionId) throws java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, SmackException.NoResponseException
- Throws:
java.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionSmackException.NoResponseException
-
sendContentRejectFileNotAvailable
public IQ sendContentRejectFileNotAvailable(FullJid recipient, java.lang.String sessionId, JingleContentDescription description)
-
createSessionPing
public Jingle createSessionPing(FullJid recipient, java.lang.String sessionId)
-
sendSessionPing
public IQ sendSessionPing(FullJid recipient, java.lang.String sessionId) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
sendAck
public void sendAck(Jingle jingle) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createTransportReplace
public Jingle createTransportReplace(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
-
sendTransportReplace
public IQ sendTransportReplace(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
createTransportAccept
public Jingle createTransportAccept(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
-
sendTransportAccept
public IQ sendTransportAccept(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
createTransportReject
public Jingle createTransportReject(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
-
sendTransportReject
public IQ sendTransportReject(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport) throws SmackException.NotConnectedException, java.lang.InterruptedException, XMPPException.XMPPErrorException, SmackException.NoResponseException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionXMPPException.XMPPErrorExceptionSmackException.NoResponseException
-
createErrorUnknownSession
public IQ createErrorUnknownSession(Jingle request)
-
sendErrorUnknownSession
public void sendErrorUnknownSession(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createErrorUnknownInitiator
public IQ createErrorUnknownInitiator(Jingle request)
-
sendErrorUnknownInitiator
public void sendErrorUnknownInitiator(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createErrorUnsupportedInfo
public IQ createErrorUnsupportedInfo(Jingle request)
-
sendErrorUnsupportedInfo
public void sendErrorUnsupportedInfo(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createErrorTieBreak
public IQ createErrorTieBreak(Jingle request)
-
sendErrorTieBreak
public void sendErrorTieBreak(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createErrorOutOfOrder
public IQ createErrorOutOfOrder(Jingle request)
-
sendErrorOutOfOrder
public void sendErrorOutOfOrder(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
createErrorMalformedRequest
public IQ createErrorMalformedRequest(Jingle request)
-
sendErrorMalformedRequest
public void sendErrorMalformedRequest(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedExceptionjava.lang.InterruptedException
-
-