1 7 package org.jboss.test.jbossnet.wsr; 8 9 import java.util.Map ; 10 import java.util.Hashtable ; 11 12 import org.jboss.test.jbossnet.wsr.Address; 13 import org.jboss.test.jbossnet.wsr.AddressBook; 14 15 20 public class AddressBookSOAPBindingImpl implements AddressBook 21 { 22 private Map addresses = new Hashtable (); 23 24 public void addEntry(java.lang.String name, Address address) 25 throws java.rmi.RemoteException 26 { 27 this.addresses.put(name, address); 28 } 29 30 public Address getAddressFromName(java.lang.String name) 31 throws java.rmi.RemoteException 32 { 33 return (Address) this.addresses.get(name); 34 } 35 } 36 | Popular Tags |