KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > samples > addr > AddressBookSOAPBindingImpl


1 /**
2  * AddressBookSOAPBindingImpl.java
3  *
4  * This file was hand modified from the Emmitter generated code.
5  */

6
7 package samples.addr;
8
9 import java.util.Hashtable JavaDoc;
10 import java.util.Map JavaDoc;
11
12 public class AddressBookSOAPBindingImpl implements AddressBook {
13     private Map JavaDoc addresses = new Hashtable JavaDoc();
14
15     public void addEntry(java.lang.String JavaDoc name, samples.addr.Address address) throws java.rmi.RemoteException JavaDoc {
16         this.addresses.put(name, address);
17     }
18     public samples.addr.Address getAddressFromName(java.lang.String JavaDoc name) throws java.rmi.RemoteException JavaDoc {
19         return (samples.addr.Address) this.addresses.get(name);
20     }
21 }
22
Popular Tags