KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jbossnet > wsr > AddressBookSOAPBindingImpl


1 /**
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.jbossnet.wsr;
8
9 import java.util.Map JavaDoc;
10 import java.util.Hashtable JavaDoc;
11
12 import org.jboss.test.jbossnet.wsr.Address;
13 import org.jboss.test.jbossnet.wsr.AddressBook;
14
15 /** This is the completed AddressBook implementation.
16  *
17  * @author Scott.Stark@jboss.org
18  * @version $Revision: 1.1.1.1.6.1 $
19  */

20 public class AddressBookSOAPBindingImpl implements AddressBook
21 {
22     private Map JavaDoc addresses = new Hashtable JavaDoc();
23
24     public void addEntry(java.lang.String JavaDoc name, Address address)
25        throws java.rmi.RemoteException JavaDoc
26     {
27         this.addresses.put(name, address);
28     }
29
30     public Address getAddressFromName(java.lang.String JavaDoc name)
31        throws java.rmi.RemoteException JavaDoc
32     {
33         return (Address) this.addresses.get(name);
34     }
35 }
36
Popular Tags