📄 getparametervalues.java
字号:
/*
* GetParameterValues.java
*
* Created on 衑餿adienis, 2007, Lapkri鑙o 10, 20.05
*
* 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 GetParameterValues extends Message {
/** Creates a new instance of GetParameterValues */
public GetParameterValues() {
name = "GetParameterValues";
}
public GetParameterValues(String [] parameterNames) {
name = "GetParameterValues";
this.parameterNames = parameterNames;
}
public GetParameterValues(String paramName) {
name = "GetParameterValues";
this.parameterNames = new String [1];
this.parameterNames [0] = paramName;
}
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -