@Override public IQ handleTransportInfo(Jingle transportInfo) { return IQ.createResultIQ(transportInfo); // TODO }
@Override public IQ handleIQRequest(IQ iqRequest) { // Acknowledge the IQ set. IQ reply = IQ.createResultIQ(iqRequest); fireOfferRevokeEvent((OfferRevokeProvider.OfferRevokePacket) iqRequest); return reply; } });
@Override public IQ handleIQRequest(IQ iqRequest) { // Acknowledge the IQ set. IQ reply = IQ.createResultIQ(iqRequest); fireOfferRequestEvent((OfferRequestProvider.OfferRequestPacket) iqRequest); return reply; } });
public IQ handleProxyError(Jingle jingle) { // TODO return IQ.createResultIQ(jingle); }
protected IQ handleContentAdd(Jingle contentAdd) { return IQ.createResultIQ(contentAdd); }
protected IQ handleContentAccept(Jingle contentAccept) { return IQ.createResultIQ(contentAccept); }
protected IQ handleContentModify(Jingle contentModify) { return IQ.createResultIQ(contentModify); }
protected IQ handleContentReject(Jingle contentReject) { return IQ.createResultIQ(contentReject); }
protected IQ handleSecurityInfo(Jingle securityInfo) { return IQ.createResultIQ(securityInfo); }
protected IQ handleTransportReplace(Jingle transportReplace) { return IQ.createResultIQ(transportReplace); }
protected IQ handleTransportReject(Jingle transportReject) { return IQ.createResultIQ(transportReject); }
protected IQ handleSessionTerminate(Jingle sessionTerminate) { return IQ.createResultIQ(sessionTerminate); }
protected IQ handleContentRemove(Jingle contentRemove) { return IQ.createResultIQ(contentRemove); }
protected IQ handleSessionInitiate(Jingle sessionInitiate) { return IQ.createResultIQ(sessionInitiate); }
protected IQ handleSessionInfo(Jingle sessionInfo) { return IQ.createResultIQ(sessionInfo); }
public IQ handleCandidateError(Jingle jingle) { theirChoice = CANDIDATE_FAILURE; connectIfReady(); return IQ.createResultIQ(jingle); }
@Override public IQ handleIQRequest(IQ iqRequest) { BlockContactsIQ blockContactIQ = (BlockContactsIQ) iqRequest; if (blockListCached == null) { blockListCached = new ArrayList<>(); } List<Jid> blockedJids = blockContactIQ.getJids(); blockListCached.addAll(blockedJids); for (JidsBlockedListener listener : jidsBlockedListeners) { listener.onJidsBlocked(blockedJids); } return IQ.createResultIQ(blockContactIQ); } });
public IQ handleCandidateActivate(Jingle jingle) { LOGGER.log(Level.INFO, "handleCandidateActivate"); Socks5BytestreamSession bs = new Socks5BytestreamSession(ourChoice.socket, ourChoice.candidate.getJid().asBareJid().equals(jingleSession.getRemote().asBareJid())); callback.onSessionInitiated(bs); return IQ.createResultIQ(jingle); }
public IQ handleCandidateUsed(Jingle jingle) { JingleS5BTransportInfo info = (JingleS5BTransportInfo) jingle.getContents().get(0).getTransport().getInfo(); String candidateId = ((JingleS5BTransportInfo.CandidateUsed) info).getCandidateId(); theirChoice = new UsedCandidate(ourProposal, ourProposal.getCandidate(candidateId), null); if (theirChoice.candidate == null) { /* TODO: Booooooh illegal candidateId!! Go home!!!!11elf */ } connectIfReady(); return IQ.createResultIQ(jingle); }
private void answerWithEmptyRosterResult() { // We expect that the roster request is the only packet sent. This is not part of the specification, // but a shortcut in the test implementation. Stanza sentPacket = connection.getSentPacket(); if (sentPacket instanceof RosterPacket) { final IQ emptyIQ = IQ.createResultIQ((RosterPacket) sentPacket); connection.processStanza(emptyIQ); } else { assertTrue("Expected to get a RosterPacket ", false); } }