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 IQ
createAck(Jingle jingle)
IQ
createErrorMalformedRequest(Jingle request)
IQ
createErrorOutOfOrder(Jingle request)
IQ
createErrorTieBreak(Jingle request)
IQ
createErrorUnknownInitiator(Jingle request)
IQ
createErrorUnknownSession(Jingle request)
IQ
createErrorUnsupportedInfo(Jingle request)
Jingle
createSessionAccept(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
Jingle
createSessionInitiate(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
Jingle
createSessionInitiateFileOffer(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentDescription description, JingleContentTransport transport)
Jingle
createSessionPing(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminate(FullJid recipient, java.lang.String sessionId, JingleReason reason)
Jingle
createSessionTerminate(FullJid recipient, java.lang.String sessionId, JingleReason.Reason reason)
Jingle
createSessionTerminateAlternativeSession(FullJid recipient, java.lang.String sessionId, java.lang.String altSessionId)
Jingle
createSessionTerminateBusy(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateCancel(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateContentCancel(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName)
Jingle
createSessionTerminateDecline(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateFailedApplication(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateFailedTransport(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateIncompatibleParameters(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateSuccess(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateUnsupportedApplications(FullJid recipient, java.lang.String sessionId)
Jingle
createSessionTerminateUnsupportedTransports(FullJid recipient, java.lang.String sessionId)
Jingle
createTransportAccept(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
Jingle
createTransportReject(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
Jingle
createTransportReplace(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
void
sendAck(Jingle jingle)
IQ
sendContentRejectFileNotAvailable(FullJid recipient, java.lang.String sessionId, JingleContentDescription description)
void
sendErrorMalformedRequest(Jingle request)
void
sendErrorOutOfOrder(Jingle request)
void
sendErrorTieBreak(Jingle request)
void
sendErrorUnknownInitiator(Jingle request)
void
sendErrorUnknownSession(Jingle request)
void
sendErrorUnsupportedInfo(Jingle request)
IQ
sendSessionAccept(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
IQ
sendSessionInitiate(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContent.Senders contentSenders, JingleContentDescription description, JingleContentTransport transport)
IQ
sendSessionInitiateFileOffer(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentDescription description, JingleContentTransport transport)
IQ
sendSessionPing(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateAlternativeSession(FullJid recipient, java.lang.String sessionId, java.lang.String altSessionId)
IQ
sendSessionTerminateBusy(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateCancel(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateContentCancel(FullJid recipient, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName)
IQ
sendSessionTerminateDecline(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateFailedApplication(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateFailedTransport(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateIncompatibleParameters(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateSuccess(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateUnsupportedApplications(FullJid recipient, java.lang.String sessionId)
IQ
sendSessionTerminateUnsupportedTransports(FullJid recipient, java.lang.String sessionId)
IQ
sendTransportAccept(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
IQ
sendTransportReject(FullJid recipient, FullJid initiator, java.lang.String sessionId, JingleContent.Creator contentCreator, java.lang.String contentName, JingleContentTransport transport)
IQ
sendTransportReplace(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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.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.NotConnectedException
java.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.NotConnectedException
java.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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.InterruptedException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
SmackException.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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
-
sendAck
public void sendAck(Jingle jingle) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.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.NotConnectedException
java.lang.InterruptedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
-
createErrorUnknownSession
public IQ createErrorUnknownSession(Jingle request)
-
sendErrorUnknownSession
public void sendErrorUnknownSession(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.lang.InterruptedException
-
createErrorUnknownInitiator
public IQ createErrorUnknownInitiator(Jingle request)
-
sendErrorUnknownInitiator
public void sendErrorUnknownInitiator(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.lang.InterruptedException
-
createErrorUnsupportedInfo
public IQ createErrorUnsupportedInfo(Jingle request)
-
sendErrorUnsupportedInfo
public void sendErrorUnsupportedInfo(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.lang.InterruptedException
-
createErrorTieBreak
public IQ createErrorTieBreak(Jingle request)
-
sendErrorTieBreak
public void sendErrorTieBreak(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.lang.InterruptedException
-
createErrorOutOfOrder
public IQ createErrorOutOfOrder(Jingle request)
-
sendErrorOutOfOrder
public void sendErrorOutOfOrder(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.lang.InterruptedException
-
createErrorMalformedRequest
public IQ createErrorMalformedRequest(Jingle request)
-
sendErrorMalformedRequest
public void sendErrorMalformedRequest(Jingle request) throws SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NotConnectedException
java.lang.InterruptedException
-
-