// ********************************************************************** // // 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 Glacier2; // <auto-generated> // // Generated from file `Router.ice' // // Warning: do not edit this file. // // </auto-generated> public final class _RouterDelM extends Ice._ObjectDelM implements _RouterDel { public SessionPrx createSession(String userId, String password, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, CannotCreateSessionException, PermissionDeniedException { IceInternal.Outgoing __og = __handler.getOutgoing("createSession", Ice.OperationMode.Normal, __ctx); try { try { IceInternal.BasicStream __os = __og.os(); __os.writeString(userId); __os.writeString(password); } catch(Ice.LocalException __ex) { __og.abort(__ex); } boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(CannotCreateSessionException __ex) { throw __ex; } catch(PermissionDeniedException __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 SessionPrx createSessionFromSecureConnection(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, CannotCreateSessionException, PermissionDeniedException { IceInternal.Outgoing __og = __handler.getOutgoing("createSessionFromSecureConnection", Ice.OperationMode.Normal, __ctx); try { boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(CannotCreateSessionException __ex) { throw __ex; } catch(PermissionDeniedException __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 void destroySession(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, SessionNotExistException { IceInternal.Outgoing __og = __handler.getOutgoing("destroySession", Ice.OperationMode.Normal, __ctx); try { boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(SessionNotExistException __ex) { throw __ex; } catch(Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } __og.is().skipEmptyEncaps(); } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public String getCategoryForClient(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("getCategoryForClient", 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(); String __ret; __ret = __is.readString(); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public long getSessionTimeout(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("getSessionTimeout", 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(); long __ret; __ret = __is.readLong(); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public void refreshSession(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper, SessionNotExistException { IceInternal.Outgoing __og = __handler.getOutgoing("refreshSession", Ice.OperationMode.Normal, __ctx); try { boolean __ok = __og.invoke(); try { if(!__ok) { try { __og.throwUserException(); } catch(SessionNotExistException __ex) { throw __ex; } catch(Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } __og.is().skipEmptyEncaps(); } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public Ice.ObjectPrx[] addProxies(Ice.ObjectPrx[] proxies, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("addProxies", Ice.OperationMode.Idempotent, __ctx); try { try { IceInternal.BasicStream __os = __og.os(); Ice.ObjectProxySeqHelper.write(__os, proxies); } catch(Ice.LocalException __ex) { __og.abort(__ex); } 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(); Ice.ObjectPrx[] __ret; __ret = Ice.ObjectProxySeqHelper.read(__is); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } public void addProxy(Ice.ObjectPrx proxy, java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("addProxy", Ice.OperationMode.Idempotent, __ctx); try { try { IceInternal.BasicStream __os = __og.os(); __os.writeProxy(proxy); } catch(Ice.LocalException __ex) { __og.abort(__ex); } boolean __ok = __og.invoke(); if(!__og.is().isEmpty()) { try { if(!__ok) { try { __og.throwUserException(); } catch(Ice.UserException __ex) { throw new Ice.UnknownUserException(__ex.ice_name()); } } __og.is().skipEmptyEncaps(); } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } } finally { __handler.reclaimOutgoing(__og); } } public Ice.ObjectPrx getClientProxy(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("getClientProxy", 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(); 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 getServerProxy(java.util.Map<String, String> __ctx) throws IceInternal.LocalExceptionWrapper { IceInternal.Outgoing __og = __handler.getOutgoing("getServerProxy", 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(); Ice.ObjectPrx __ret; __ret = __is.readProxy(); __is.endReadEncaps(); return __ret; } catch(Ice.LocalException __ex) { throw new IceInternal.LocalExceptionWrapper(__ex, false); } } finally { __handler.reclaimOutgoing(__og); } } }