// ********************************************************************** // // Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** // Ice version 3.4.1 package Ice; // <auto-generated> // // Generated from file `Locator.ice' // // Warning: do not edit this file. // // </auto-generated> public final class _LocatorDelM extends Ice._ObjectDelM implements _LocatorDel { public Ice.ObjectPrx findAdapterById(String id, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, AdapterNotFoundException { IceInternal.Outgoing __og = __handler.getOutgoing("findAdapterById", Ice.OperationMode.Nonmutating, __ctx); try { try { IceInternal.BasicStream __os = __og.os(); __os.writeString(id); } catch(Ice.LocalException __ex) { __og.abort(__ex); } boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(AdapterNotFoundException __ex) { throw __ex; } catch(Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } IceInternal.BasicStream __is = __og.is(); __is.startReadEncaps(); Ice.ObjectPrx __ret; __ret = __is.readProxy(); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public Ice.ObjectPrx findObjectById(Identity id, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, ObjectNotFoundException { IceInternal.Outgoing __og = __handler.getOutgoing("findObjectById", Ice.OperationMode.Nonmutating, __ctx); try { try { IceInternal.BasicStream __os = __og.os(); id.__write(__os); } catch(Ice.LocalException __ex) { __og.abort(__ex); } boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(ObjectNotFoundException __ex) { throw __ex; } catch(Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } IceInternal.BasicStream __is = __og.is(); __is.startReadEncaps(); Ice.ObjectPrx __ret; __ret = __is.readProxy(); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public LocatorRegistryPrx getRegistry(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("getRegistry", Ice.OperationMode.Nonmutating, __ctx); try { boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } IceInternal.BasicStream __is = __og.is(); __is.startReadEncaps(); LocatorRegistryPrx __ret; __ret = LocatorRegistryPrxHelper.__read(__is); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } }