?? phonepricesoapbindingimpl.java
字號(hào):
// ==================== Program Discription ==========================
// PhonePriceSoapBindingImpl.java
// 程序描述:示例21-6 : 編寫Web服務(wù)實(shí)現(xiàn)類
// ==============================================================
package com.webservice;
import java.util.HashMap;
public class PhonePriceSoapBindingImpl implements com.webservice.PhonePrice{
private HashMap phones=new HashMap();
public PhonePriceSoapBindingImpl()
{
phones.put("motorola t189",new Integer(1000));
phones.put("motorola t191",new Integer(1200));
phones.put("motorola","motorola");
}
public void setPrice(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException {
phones.put(in0,in1);
}
public java.lang.String getPrice(java.lang.String in0) throws java.rmi.RemoteException {
if(phones.containsKey(in0))
{
return (String)phones.get(in0);
}
else
return null;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -