Rename ELEMENT 'candidate-activated' to 'activated' per XEP-0260

Fixes SMACK-930.
This commit is contained in:
cmeng-git 2023-02-27 06:46:41 +08:00 committed by Florian Schmaus
parent d93fbacc35
commit ef0fc01505
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ import org.jivesoftware.smackx.jingle.element.JingleContentTransportInfo;
/** /**
* Class representing possible SOCKS5 TransportInfo elements. * Class representing possible SOCKS5 TransportInfo elements.
* @see <a href="https://xmpp.org/extensions/xep-0260.html">XEP-0260: Jingle SOCKS5 Bytestreams Transport Method 1.0.3 (2018-05-15)</a>
*/ */
public abstract class JingleS5BTransportInfo implements JingleContentTransportInfo { public abstract class JingleS5BTransportInfo implements JingleContentTransportInfo {
@ -71,7 +72,7 @@ public abstract class JingleS5BTransportInfo implements JingleContentTransportIn
} }
public static final class CandidateActivated extends JingleS5BCandidateTransportInfo { public static final class CandidateActivated extends JingleS5BCandidateTransportInfo {
public static final String ELEMENT = "candidate-activated"; public static final String ELEMENT = "activated";
public CandidateActivated(String candidateId) { public CandidateActivated(String candidateId) {
super(candidateId); super(candidateId);

View File

@ -164,7 +164,7 @@ public class JingleS5BTransportTest extends SmackTestSuite {
String candidateActivated = String candidateActivated =
"<transport xmlns='urn:xmpp:jingle:transports:s5b:1' sid='vj3hs98y'>" + "<transport xmlns='urn:xmpp:jingle:transports:s5b:1' sid='vj3hs98y'>" +
"<candidate-activated cid='hr65dqyd'/>" + "<activated cid='hr65dqyd'/>" +
"</transport>"; "</transport>";
JingleS5BTransport candidateActivatedTransport = new JingleS5BTransportProvider() JingleS5BTransport candidateActivatedTransport = new JingleS5BTransportProvider()
.parse(TestUtils.getParser(candidateActivated)); .parse(TestUtils.getParser(candidateActivated));