From: Martin S. <sch...@us...> - 2005-05-11 15:45:16
|
Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14302/src/net/sf/magicmap/client/delegate Modified Files: MapDelegate.java Log Message: + wsdl2java via ant-task + string[] replaced +axis 1.2 (final) Index: MapDelegate.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate/MapDelegate.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MapDelegate.java 11 May 2005 10:51:28 -0000 1.3 --- MapDelegate.java 11 May 2005 15:45:02 -0000 1.4 *************** *** 8,11 **** --- 8,12 ---- import java.net.URL; import java.rmi.RemoteException; + import java.util.ArrayList; import localhost.magicmap.services.MapFacade.MapFacade; *************** *** 16,19 **** --- 17,21 ---- import net.sf.magicmap.client.utils.Settings; import net.sf.magicmap.server.dto.MapDTO; + import net.sf.magicmap.server.dto.StringReplacementDTO; import net.sf.magicmap.server.exception.MapException; import net.sf.magicmap.server.exception.SessionException; *************** *** 63,67 **** public String[] getMapNames() throws RemoteException{ try{ ! return this.binding.getMapNames(); } catch (Exception e){ throw ExceptionHandler.checkException(e); --- 65,77 ---- public String[] getMapNames() throws RemoteException{ try{ ! ! ArrayList result = new ArrayList(); ! StringReplacementDTO[] wrappedStrings = this.binding.getMapNames(); ! if (wrappedStrings != null){ ! for (int i = 0; i < wrappedStrings.length; i++){ ! result.add(wrappedStrings[i].getWrappedString()); ! } ! } ! return (String[]) result.toArray(new String[0]); } catch (Exception e){ throw ExceptionHandler.checkException(e); |