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

📄 request.java

📁 kSOAP2是一个SOAP web service客户端包。主要用于资源受限制的Java环境如Applets或J2ME应用程序。
💻 JAVA
字号:
package org.ksoap2.samples.amazon.search.messages;import java.util.*;import org.ksoap2.serialization.*;public class Request extends BaseObject {    public String author;    public String searchIndex;    public Object getProperty(int index) {        if(index == 0) {            return author;        } else {            return searchIndex;        }    }    public int getPropertyCount() {        return 2;    }    public void getPropertyInfo(int index, Hashtable properties, PropertyInfo info) {        info.type = PropertyInfo.STRING_CLASS;        if(index == 0) {            info.name = "Author";        } else {            info.name = "SearchIndex";        }    }    public void setProperty(int index, Object value) {        throw new RuntimeException("Request.setProperty is not implemented yet");    }    public void register(SoapSerializationEnvelope envelope) {        envelope.addMapping(NAMESPACE, "ItemSearchRequest", this.getClass());    }}

⌨️ 快捷键说明

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