📄 request.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 + -