@ -90,7 +90,7 @@ public class JingleUtil {
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createSessionInitiateFileOffer ( recipient , sessionId , contentCreator , contentName , description , transport ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public IQ sendSessionInitiate ( FullJid recipient ,
@ -176,7 +176,7 @@ public class JingleUtil {
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateDecline ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateSuccess ( FullJid recipient , String sessionId ) {
@ -188,7 +188,7 @@ public class JingleUtil {
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateSuccess ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateBusy ( FullJid recipient , String sessionId ) {
@ -200,7 +200,7 @@ public class JingleUtil {
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateBusy ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateAlternativeSession ( FullJid recipient , String sessionId , String altSessionId ) {
@ -212,7 +212,7 @@ public class JingleUtil {
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateAlternativeSession ( recipient , sessionId , altSessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateCancel ( FullJid recipient , String sessionId ) {
@ -225,7 +225,7 @@ public class JingleUtil {
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateCancel ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateContentCancel ( FullJid recipient , String sessionId ,
@ -249,7 +249,7 @@ public class JingleUtil {
throws SmackException . NotConnectedException , InterruptedException ,
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateContentCancel ( recipient , sessionId , contentCreator , contentName ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateUnsupportedTransports ( FullJid recipient , String sessionId ) {
@ -260,7 +260,7 @@ public class JingleUtil {
throws InterruptedException , XMPPException . XMPPErrorException ,
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateUnsupportedTransports ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateFailedTransport ( FullJid recipient , String sessionId ) {
@ -271,7 +271,7 @@ public class JingleUtil {
throws InterruptedException , XMPPException . XMPPErrorException ,
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateFailedTransport ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateUnsupportedApplications ( FullJid recipient , String sessionId ) {
@ -282,7 +282,7 @@ public class JingleUtil {
throws InterruptedException , XMPPException . XMPPErrorException ,
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateUnsupportedApplications ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateFailedApplication ( FullJid recipient , String sessionId ) {
@ -293,7 +293,7 @@ public class JingleUtil {
throws InterruptedException , XMPPException . XMPPErrorException ,
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateFailedApplication ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createSessionTerminateIncompatibleParameters ( FullJid recipient , String sessionId ) {
@ -304,7 +304,7 @@ public class JingleUtil {
throws InterruptedException , XMPPException . XMPPErrorException ,
SmackException . NotConnectedException , SmackException . NoResponseException {
Jingle jingle = createSessionTerminateIncompatibleParameters ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public IQ sendContentRejectFileNotAvailable ( FullJid recipient , String sessionId , JingleContentDescription description ) {
@ -327,7 +327,7 @@ public class JingleUtil {
throws SmackException . NotConnectedException , InterruptedException ,
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createSessionPing ( recipient , sessionId ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public IQ createAck ( Jingle jingle ) {
@ -362,7 +362,7 @@ public class JingleUtil {
throws SmackException . NotConnectedException , InterruptedException ,
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createTransportReplace ( recipient , initiator , sessionId , contentCreator , contentName , transport ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createTransportAccept ( FullJid recipient , FullJid initiator , String sessionId ,
@ -389,7 +389,7 @@ public class JingleUtil {
throws SmackException . NotConnectedException , InterruptedException ,
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createTransportAccept ( recipient , initiator , sessionId , contentCreator , contentName , transport ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
public Jingle createTransportReject ( FullJid recipient , FullJid initiator , String sessionId ,
@ -416,7 +416,7 @@ public class JingleUtil {
throws SmackException . NotConnectedException , InterruptedException ,
XMPPException . XMPPErrorException , SmackException . NoResponseException {
Jingle jingle = createTransportReject ( recipient , initiator , sessionId , contentCreator , contentName , transport ) ;
return connection . createStanzaCollectorAndSend( jingle ) . nextResultOrThrow ( ) ;
return connection . sendIqRequestAndWaitForResponse( jingle ) ;
}
/ *