|
From: Tobias H. <thu...@us...> - 2005-05-11 10:52:07
|
Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12081/src/net/sf/magicmap/client/delegate Modified Files: SessionDelegate.java MapDelegate.java PositionDelegate.java Log Message: + Client is usable without server Index: SessionDelegate.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate/SessionDelegate.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SessionDelegate.java 13 Feb 2005 21:36:37 -0000 1.3 --- SessionDelegate.java 11 May 2005 10:51:28 -0000 1.4 *************** *** 9,13 **** import localhost.magicmap.services.SessionFacade.SessionFacadeServiceLocator; import localhost.magicmap.services.SessionFacade.SessionFacadeSoapBindingStub; - import net.sf.magicmap.client.delegate.exception.ExceptionHandler; import net.sf.magicmap.client.delegate.interfaces.SessionFacadeInterface; --- 9,12 ---- *************** *** 26,31 **** try{ ! bindingLocal = (SessionFacadeSoapBindingStub) new SessionFacadeServiceLocator() ! .getSessionFacade(new URL(Settings.getServerURL() + JWS)); } catch (javax.xml.rpc.ServiceException jre){ if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); --- 25,31 ---- try{ ! bindingLocal = (SessionFacadeSoapBindingStub) new SessionFacadeServiceLocator().getSessionFacade(new URL(Settings ! .getServerURL() ! + JWS)); } catch (javax.xml.rpc.ServiceException jre){ if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); Index: MapDelegate.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate/MapDelegate.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MapDelegate.java 12 Feb 2005 16:00:28 -0000 1.2 --- MapDelegate.java 11 May 2005 10:51:28 -0000 1.3 *************** *** 12,16 **** import localhost.magicmap.services.MapFacade.MapFacadeServiceLocator; import localhost.magicmap.services.MapFacade.MapFacadeSoapBindingStub; - import net.sf.magicmap.client.delegate.exception.ExceptionHandler; import net.sf.magicmap.client.delegate.interfaces.MapFacadeInterface; --- 12,15 ---- *************** *** 31,36 **** try{ ! bindingLocal = (MapFacadeSoapBindingStub) new MapFacadeServiceLocator() ! .getMapFacade(new URL(Settings.getServerURL() + JWS)); } catch (javax.xml.rpc.ServiceException jre){ if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); --- 30,36 ---- try{ ! bindingLocal = (MapFacadeSoapBindingStub) new MapFacadeServiceLocator().getMapFacade(new URL(Settings ! .getServerURL() ! + JWS)); } catch (javax.xml.rpc.ServiceException jre){ if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); Index: PositionDelegate.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/delegate/PositionDelegate.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PositionDelegate.java 12 Feb 2005 16:00:28 -0000 1.2 --- PositionDelegate.java 11 May 2005 10:51:28 -0000 1.3 *************** *** 9,13 **** import localhost.magicmap.services.PositionFacade.PositionFacadeServiceLocator; import localhost.magicmap.services.PositionFacade.PositionFacadeSoapBindingStub; - import net.sf.magicmap.client.delegate.exception.ExceptionHandler; import net.sf.magicmap.client.delegate.interfaces.PositionFacadeInterface; --- 9,12 ---- *************** *** 29,34 **** try{ ! bindingLocal = (PositionFacadeSoapBindingStub) new PositionFacadeServiceLocator() ! .getPositionFacade(new URL(Settings.getServerURL() + JWS)); } catch (javax.xml.rpc.ServiceException jre){ if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); --- 28,33 ---- try{ ! bindingLocal = (PositionFacadeSoapBindingStub) new PositionFacadeServiceLocator().getPositionFacade(new URL( ! Settings.getServerURL() + JWS)); } catch (javax.xml.rpc.ServiceException jre){ if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); *************** *** 56,61 **** SessionException{ try{ ! this.binding.createOrUpdatePosition(sessionId, mapName, positionX, positionY, character, positionName, ! fixed); } catch (Exception e){ throw ExceptionHandler.checkException(e); --- 55,59 ---- SessionException{ try{ ! this.binding.createOrUpdatePosition(sessionId, mapName, positionX, positionY, character, positionName, fixed); } catch (Exception e){ throw ExceptionHandler.checkException(e); *************** *** 70,75 **** SessionException{ try{ ! this.binding.createOrUpdateClientPosition(sessionId, mapName, positionX, positionY, character, ! clientMac, fixed); } catch (Exception e){ throw ExceptionHandler.checkException(e); --- 68,72 ---- SessionException{ try{ ! this.binding.createOrUpdateClientPosition(sessionId, mapName, positionX, positionY, character, clientMac, fixed); } catch (Exception e){ throw ExceptionHandler.checkException(e); *************** *** 117,121 **** public PositionDTO[] getPositionsForMapSince(long sessionId, String mapName, long timeStamp) throws RemoteException, MapException, SessionException{ ! return this.binding.getPositionsForMapSince(sessionId, mapName, timeStamp); } --- 114,118 ---- public PositionDTO[] getPositionsForMapSince(long sessionId, String mapName, long timeStamp) throws RemoteException, MapException, SessionException{ ! return this.binding.getPositionsForMapSince(sessionId, mapName, timeStamp); } |