CryptoMessage v1.3.2版本的 MD5 值为:66c611ce56a11450659dc23697562928
以下内容为反编译后的 Close.java 源代码,内容仅作参考
package org.jivesoftware.smackx.bytestreams.ibb.packet;
import org.jivesoftware.smack.packet.IQ;
public class Close extends IQ {
public static final String ELEMENT = "close";
public static final String NAMESPACE = "http://jabber.org/protocol/ibb";
private final String sessionID;
public Close(String str) {
super(ELEMENT, "http://jabber.org/protocol/ibb");
if (str == null || "".equals(str)) {
throw new IllegalArgumentException("Session ID must not be null or empty");
}
this.sessionID = str;
setType(IQ.Type.set);
}
public String getSessionID() {
return this.sessionID;
}
@Override
protected IQ.IQChildElementXmlStringBuilder getIQChildElementBuilder(IQ.IQChildElementXmlStringBuilder iQChildElementXmlStringBuilder) {
iQChildElementXmlStringBuilder.attribute("sid", this.sessionID);
iQChildElementXmlStringBuilder.setEmptyElement();
return iQChildElementXmlStringBuilder;
}
}