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

📄 fault.java

📁 openacs source for CPE wan management
💻 JAVA
字号:
/*
 * FactoryResetResponse.java
 *
 * Created on Tre鑙adienis, 2008, Sausio 30, 20.33
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.openacs.message;

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

/**
 *
 * @author Administrator
 */
public class Fault extends Message  {
    public Fault () {
        name = "Fault";
}

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

    protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
        faultCode = getRequestElement (spf, body, "faultcode");
        faultString = getRequestElement (spf, body, "faultstring");
        SOAPElement detail = getRequestChildElement (spf, body, "detail");
        SOAPElement cwmpfault = getRequestChildElement2 (spf, detail, "Fault");
        faultCodeCwmp = getRequestElement (spf, cwmpfault, "FaultCode");
        faultStringCwmp = getRequestElement (spf, cwmpfault, "FaultString");
    }

    @Override
    public String toString () {
        return "FAULT: code="+faultCode+" msg="+faultString+" ccode="+faultCodeCwmp+" cmsg="+faultStringCwmp;
    }
    private String faultCode;
    private String faultString;
    private String faultCodeCwmp;
    private String faultStringCwmp;
    
    public String getFaultString () {
        return faultString;
    }
    public String getFaultStringCwmp () {
        return faultStringCwmp;
    }
}

⌨️ 快捷键说明

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