getparameterattributes.java

来自「openacs source for CPE wan management」· Java 代码 · 共 44 行

JAVA
44
字号
/*
 * GetParameterAttributes.java
 *
 * Created on Pirmadienis, 2007, Lapkri鑙o 19, 14.00
 *
 * 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.SOAPElement;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPFactory;

/**
 *
 * @author Administrator
 */
public class GetParameterAttributes extends Message {
    
    /** Creates a new instance of GetParameterAttributes */
    public GetParameterAttributes() {
        name = "GetParameterAttributes";
    }
    protected void createBody (SOAPBodyElement body, SOAPFactory spf) throws SOAPException
    {
        SOAPElement elm = body.addChildElement(spf.createName("ParameterNames"));
        elm.setAttribute("soap-enc:arrayType", "xsd:string["+String.valueOf(parameterNames.length)+"]" );
        for (int i = 0; i < parameterNames.length; i++) {
            elm.addChildElement("string").setValue(parameterNames[i]);
        }
    }

    protected void parseBody (SOAPBodyElement body, SOAPFactory f) throws SOAPException
    {
    }

    public String parameterNames[];
    
}

⌨️ 快捷键说明

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