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