⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 download.java.svn-base

📁 java 写的tr069协议CPE客户端程序
💻 SVN-BASE
字号:
package cn.edu.njupt.sc.message;

import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPFactory;

import org.w3c.dom.Node;
import org.w3c.dom.NodeList;


public class Download extends Message {

	@Override
	protected void createBody(SOAPBodyElement body, SOAPFactory spf)
			throws SOAPException {

	}

	@Override
	protected NameValue[] parseBody(SOAPBodyElement body, SOAPFactory spf)
			throws SOAPException {

		gui.insertDate("=====获取到ACS端下载指令=====\n");
		NodeList nodeList = body.getChildNodes();
		int l = nodeList.getLength() - 1;
		for (int i = 0; i < l; i++) {
			Node node = nodeList.item(i);
			if (node.getNodeName().equalsIgnoreCase("FileType")) {
				gui.insertDate("文件类型: " + node.getTextContent() + "\n");
			} else if (node.getNodeName().equalsIgnoreCase("URL")) {
				gui.insertDate("URL地址: " + node.getTextContent() + "\n");
			} else if (node.getNodeName().equalsIgnoreCase("FileSize")) {
				gui.insertDate("文件尺寸: " + node.getTextContent() + "\n");
			} else if (node.getNodeName().equalsIgnoreCase("TargetFileName")) {
				gui.insertDate("文件重命名为: " + node.getTextContent() + "\n");
			} else {

			}
			
		}
		gui
		.insertDate("**************************************************\n");
		return null;

	}

	@Override
	protected void createBody(SOAPBodyElement body, SOAPFactory spf,
			NameValue[] nameValue) throws SOAPException {
		// TODO Auto-generated method stub
		
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -