public void ice_response(SessionPrx __ret) { if (__validateResponse(true)) { try { IceInternal.BasicStream __os = this.__os(); SessionPrxHelper.__write(__os, __ret); } catch (Ice.LocalException __ex) { ice_exception(__ex); } __response(true); } }
public SessionPrx create( String userId, SessionControlPrx control, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, CannotCreateSessionException { IceInternal.Outgoing __og = __handler.getOutgoing("create", Ice.OperationMode.Normal, __ctx); try { try { IceInternal.BasicStream __os = __og.os(); __os.writeString(userId); SessionControlPrxHelper.__write(__os, control); } catch (Ice.LocalException __ex) { __og.abort(__ex); } boolean __ok = __og.invoke(); try { if (!__ok) { try { __og.throwUserException(); } catch (CannotCreateSessionException __ex) { throw __ex; } catch (Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } IceInternal.BasicStream __is = __og.is(); __is.startReadEncaps(); SessionPrx __ret; __ret = SessionPrxHelper.__read(__is); __is.endReadEncaps(); return __ret; } catch (Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } }
public synchronized SessionPrx create(String name, Ice.Current c) { SessionI session = new SessionI(name); SessionPrx proxy = SessionPrxHelper.uncheckedCast(c.adapter.addWithUUID(session)); _reaper.add(proxy, session); return proxy; }