?? soapenvelopepacket.java
字號:
package org.codehaus.xfire.xmpp;import org.jdom.Document;import org.jdom.output.XMLOutputter;import org.jivesoftware.smack.packet.IQ;/** * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a> */public class SoapEnvelopePacket extends IQ{ private String body; private Document doc; private final static XMLOutputter outputter = new XMLOutputter(); public SoapEnvelopePacket(String body) { this.body = body; } public SoapEnvelopePacket(Document doc) { this.doc = doc; } public String getChildElementXML() { if (body != null) { return body; } else if (doc != null) { return outputter.outputString(doc); } else { throw new RuntimeException("Body can not be null!"); } } public Document getDocument() { return doc; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -