request.java
来自「it is a tools for developing J2ME applic」· Java 代码 · 共 42 行
JAVA
42 行
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 + =
减小字号Ctrl + -
显示快捷键?