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

📄 download.java

📁 openacs source for CPE wan management
💻 JAVA
字号:
/*
 * Download.java
 *
 * Created on Antradienis, 2007, Lapkri鑙o 20, 18.54
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.openacs.message;

import org.openacs.Message;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPFactory;

/**
 *
 * @author Administrator
 */
public class Download extends Message {
    /** Creates a new instance of Download */
    public Download() {
        name = "Download";
//        TargetFileName = UserName = Password = SuccessUrl = FailureUrl = "";
    }
    public Download (String CommandKey, String url, String FileType) {
        name = "Download";
//        TargetFileName = UserName = Password = SuccessUrl = FailureUrl = "";
        this.CommandKey = CommandKey;
        this.url = url;
        this.FileType = FileType;
    }

    protected void createBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
        body.addChildElement(COMMAND_KEY).setValue(CommandKey);
        body.addChildElement("FileType").setValue(FileType);
        body.addChildElement("URL").setValue(url);
        body.addChildElement("UserName").setValue(UserName);
        body.addChildElement("Password").setValue(Password);
        body.addChildElement("FileSize").setValue(String.valueOf(FileSize));
        body.addChildElement("TargetFileName").setValue(TargetFileName);
        body.addChildElement("DelaySeconds").setValue(String.valueOf(DelaySeconds));
        body.addChildElement("SuccessURL").setValue(SuccessUrl);
        body.addChildElement("FailureURL").setValue(FailureUrl);
    }

    protected void parseBody(SOAPBodyElement body, SOAPFactory f) throws SOAPException {
    }
    
    public String CommandKey = "";
    public String FileType = "";
    public String url = "";
    public String UserName = "";
    public String Password = "";
    public long FileSize = 0;
    public String TargetFileName = "";
    public int DelaySeconds = 0;
    public String SuccessUrl = "";
    public String FailureUrl = "";
    
    public static final String FT_FIRMWARE = "1 Firmware Upgrade Image";
    public static final String FT_WEBCONTENT = "2 Web Content";
    public static final String FT_CONFIG = "3 Vendor Configuration File";
    
    
}

⌨️ 快捷键说明

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