All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Glacier2.RouterPrxHelper Maven / Gradle / Ivy

There is a newer version: 3.7.10
Show newest version
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.7
//
// 
//
// Generated from file `Router.ice'
//
// Warning: do not edit this file.
//
// 
//

package Glacier2;

/**
 * Provides type-specific helper functions.
 **/
public final class RouterPrxHelper extends Ice.ObjectPrxHelperBase implements RouterPrx
{
    private static final String _getClientProxy_name = "getClientProxy";

    public Ice.ObjectPrx getClientProxy(Ice.BooleanOptional hasRoutingTable)
    {
        return _iceI_getClientProxy(hasRoutingTable, null, false);
    }

    public Ice.ObjectPrx getClientProxy(Ice.BooleanOptional hasRoutingTable, java.util.Map context)
    {
        return _iceI_getClientProxy(hasRoutingTable, context, true);
    }

    private Ice.ObjectPrx _iceI_getClientProxy(Ice.BooleanOptional iceP_hasRoutingTable, java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getClientProxy_name);
        return end_getClientProxy(iceP_hasRoutingTable, _iceI_begin_getClientProxy(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getClientProxy()
    {
        return _iceI_begin_getClientProxy(null, false, false, null);
    }

    public Ice.AsyncResult begin_getClientProxy(java.util.Map context)
    {
        return _iceI_begin_getClientProxy(context, true, false, null);
    }

    public Ice.AsyncResult begin_getClientProxy(Ice.Callback cb)
    {
        return _iceI_begin_getClientProxy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getClientProxy(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getClientProxy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getClientProxy(Ice.Callback_Router_getClientProxy cb)
    {
        return _iceI_begin_getClientProxy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getClientProxy(java.util.Map context, Ice.Callback_Router_getClientProxy cb)
    {
        return _iceI_begin_getClientProxy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getClientProxy(FunctionalCallback_Router_getClientProxy_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getClientProxy(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getClientProxy(FunctionalCallback_Router_getClientProxy_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getClientProxy(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getClientProxy(java.util.Map context,
                                                FunctionalCallback_Router_getClientProxy_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getClientProxy(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getClientProxy(java.util.Map context,
                                                FunctionalCallback_Router_getClientProxy_Response responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getClientProxy(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getClientProxy(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       FunctionalCallback_Router_getClientProxy_Response responseCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        class CB extends IceInternal.Functional_TwowayCallback implements Ice._Callback_Router_getClientProxy
        {
            public CB(FunctionalCallback_Router_getClientProxy_Response responseCb,
                      IceInternal.Functional_GenericCallback1 exceptionCb,
                      IceInternal.Functional_BoolCallback sentCb)
            {
                super(responseCb != null, exceptionCb, sentCb);
                _responseCb = responseCb;
            }

            public void response(Ice.ObjectPrx ret, Ice.BooleanOptional hasRoutingTable)
            {
                if(_responseCb != null)
                {
                    _responseCb.apply(ret, hasRoutingTable);
                }
            }

            public final void _iceCompleted(Ice.AsyncResult result)
            {
                RouterPrxHelper._iceI_getClientProxy_completed(this, result);
            }

            private final FunctionalCallback_Router_getClientProxy_Response _responseCb;
        }
        return _iceI_begin_getClientProxy(context, explicitCtx, synchronous, new CB(responseCb, exceptionCb, sentCb));
    }

    private Ice.AsyncResult _iceI_begin_getClientProxy(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getClientProxy_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getClientProxy_name, cb);
        try
        {
            result.prepare(_getClientProxy_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.ObjectPrx end_getClientProxy(Ice.BooleanOptional hasRoutingTable, Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getClientProxy_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            istr_.readBool(1, hasRoutingTable);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getClientProxy_completed(Ice._Callback_Router_getClientProxy cb, Ice.AsyncResult result)
    {
        Ice.RouterPrx _proxy = (Ice.RouterPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        Ice.BooleanOptional iceP_hasRoutingTable = new Ice.BooleanOptional();
        try
        {
            ret = _proxy.end_getClientProxy(iceP_hasRoutingTable, result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret, iceP_hasRoutingTable);
    }

    private static final String _getServerProxy_name = "getServerProxy";

    public Ice.ObjectPrx getServerProxy()
    {
        return _iceI_getServerProxy(null, false);
    }

    public Ice.ObjectPrx getServerProxy(java.util.Map context)
    {
        return _iceI_getServerProxy(context, true);
    }

    private Ice.ObjectPrx _iceI_getServerProxy(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getServerProxy_name);
        return end_getServerProxy(_iceI_begin_getServerProxy(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getServerProxy()
    {
        return _iceI_begin_getServerProxy(null, false, false, null);
    }

    public Ice.AsyncResult begin_getServerProxy(java.util.Map context)
    {
        return _iceI_begin_getServerProxy(context, true, false, null);
    }

    public Ice.AsyncResult begin_getServerProxy(Ice.Callback cb)
    {
        return _iceI_begin_getServerProxy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getServerProxy(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getServerProxy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getServerProxy(Ice.Callback_Router_getServerProxy cb)
    {
        return _iceI_begin_getServerProxy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getServerProxy(java.util.Map context, Ice.Callback_Router_getServerProxy cb)
    {
        return _iceI_begin_getServerProxy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getServerProxy(IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getServerProxy(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getServerProxy(IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getServerProxy(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getServerProxy(java.util.Map context,
                                                IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getServerProxy(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getServerProxy(java.util.Map context,
                                                IceInternal.Functional_GenericCallback1 responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getServerProxy(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getServerProxy(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_GenericCallback1 responseCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getServerProxy(context,
                                          explicitCtx,
                                          synchronous,
                                          new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                              {
                                                  public final void _iceCompleted(Ice.AsyncResult result)
                                                  {
                                                      RouterPrxHelper._iceI_getServerProxy_completed(this, result);
                                                  }
                                              });
    }

    private Ice.AsyncResult _iceI_begin_getServerProxy(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getServerProxy_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getServerProxy_name, cb);
        try
        {
            result.prepare(_getServerProxy_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.ObjectPrx end_getServerProxy(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getServerProxy_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.ObjectPrx ret_;
            ret_ = istr_.readProxy();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getServerProxy_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Ice.RouterPrx _proxy = (Ice.RouterPrx)result.getProxy();
        Ice.ObjectPrx ret = null;
        try
        {
            ret = _proxy.end_getServerProxy(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _addProxies_name = "addProxies";

    public Ice.ObjectPrx[] addProxies(Ice.ObjectPrx[] proxies)
    {
        return _iceI_addProxies(proxies, null, false);
    }

    public Ice.ObjectPrx[] addProxies(Ice.ObjectPrx[] proxies, java.util.Map context)
    {
        return _iceI_addProxies(proxies, context, true);
    }

    private Ice.ObjectPrx[] _iceI_addProxies(Ice.ObjectPrx[] iceP_proxies, java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_addProxies_name);
        return end_addProxies(_iceI_begin_addProxies(iceP_proxies, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies)
    {
        return _iceI_begin_addProxies(proxies, null, false, false, null);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, java.util.Map context)
    {
        return _iceI_begin_addProxies(proxies, context, true, false, null);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, Ice.Callback cb)
    {
        return _iceI_begin_addProxies(proxies, null, false, false, cb);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_addProxies(proxies, context, true, false, cb);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, Ice.Callback_Router_addProxies cb)
    {
        return _iceI_begin_addProxies(proxies, null, false, false, cb);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, java.util.Map context, Ice.Callback_Router_addProxies cb)
    {
        return _iceI_begin_addProxies(proxies, context, true, false, cb);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_addProxies(proxies, null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_addProxies(proxies, null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
                                            java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_addProxies(proxies, context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
                                            java.util.Map context,
                                            IceInternal.Functional_GenericCallback1 responseCb,
                                            IceInternal.Functional_GenericCallback1 exceptionCb,
                                            IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_addProxies(proxies, context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_addProxies(Ice.ObjectPrx[] iceP_proxies,
                                                   java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.Functional_GenericCallback1 responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_addProxies(iceP_proxies,
                                      context,
                                      explicitCtx,
                                      synchronous,
                                      new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                          {
                                              public final void _iceCompleted(Ice.AsyncResult result)
                                              {
                                                  RouterPrxHelper._iceI_addProxies_completed(this, result);
                                              }
                                          });
    }

    private Ice.AsyncResult _iceI_begin_addProxies(Ice.ObjectPrx[] iceP_proxies,
                                                   java.util.Map context,
                                                   boolean explicitCtx,
                                                   boolean synchronous,
                                                   IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_addProxies_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_addProxies_name, cb);
        try
        {
            result.prepare(_addProxies_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
            Ice.ObjectProxySeqHelper.write(ostr, iceP_proxies);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public Ice.ObjectPrx[] end_addProxies(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _addProxies_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            Ice.ObjectPrx[] ret_;
            ret_ = Ice.ObjectProxySeqHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_addProxies_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Ice.RouterPrx _proxy = (Ice.RouterPrx)result.getProxy();
        Ice.ObjectPrx[] ret = null;
        try
        {
            ret = _proxy.end_addProxies(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getCategoryForClient_name = "getCategoryForClient";

    public String getCategoryForClient()
    {
        return _iceI_getCategoryForClient(null, false);
    }

    public String getCategoryForClient(java.util.Map context)
    {
        return _iceI_getCategoryForClient(context, true);
    }

    private String _iceI_getCategoryForClient(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getCategoryForClient_name);
        return end_getCategoryForClient(_iceI_begin_getCategoryForClient(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getCategoryForClient()
    {
        return _iceI_begin_getCategoryForClient(null, false, false, null);
    }

    public Ice.AsyncResult begin_getCategoryForClient(java.util.Map context)
    {
        return _iceI_begin_getCategoryForClient(context, true, false, null);
    }

    public Ice.AsyncResult begin_getCategoryForClient(Ice.Callback cb)
    {
        return _iceI_begin_getCategoryForClient(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getCategoryForClient(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getCategoryForClient(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getCategoryForClient(Callback_Router_getCategoryForClient cb)
    {
        return _iceI_begin_getCategoryForClient(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getCategoryForClient(java.util.Map context, Callback_Router_getCategoryForClient cb)
    {
        return _iceI_begin_getCategoryForClient(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getCategoryForClient(IceInternal.Functional_GenericCallback1 responseCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getCategoryForClient(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getCategoryForClient(IceInternal.Functional_GenericCallback1 responseCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getCategoryForClient(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getCategoryForClient(java.util.Map context,
                                                      IceInternal.Functional_GenericCallback1 responseCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getCategoryForClient(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getCategoryForClient(java.util.Map context,
                                                      IceInternal.Functional_GenericCallback1 responseCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getCategoryForClient(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getCategoryForClient(java.util.Map context,
                                                             boolean explicitCtx,
                                                             boolean synchronous,
                                                             IceInternal.Functional_GenericCallback1 responseCb,
                                                             IceInternal.Functional_GenericCallback1 exceptionCb,
                                                             IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getCategoryForClient(context,
                                                explicitCtx,
                                                synchronous,
                                                new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
                                                    {
                                                        public final void _iceCompleted(Ice.AsyncResult result)
                                                        {
                                                            RouterPrxHelper._iceI_getCategoryForClient_completed(this, result);
                                                        }
                                                    });
    }

    private Ice.AsyncResult _iceI_begin_getCategoryForClient(java.util.Map context,
                                                             boolean explicitCtx,
                                                             boolean synchronous,
                                                             IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getCategoryForClient_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getCategoryForClient_name, cb);
        try
        {
            result.prepare(_getCategoryForClient_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public String end_getCategoryForClient(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getCategoryForClient_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            String ret_;
            ret_ = istr_.readString();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getCategoryForClient_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        String ret = null;
        try
        {
            ret = _proxy.end_getCategoryForClient(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _createSession_name = "createSession";

    public SessionPrx createSession(String userId, String password)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        return _iceI_createSession(userId, password, null, false);
    }

    public SessionPrx createSession(String userId, String password, java.util.Map context)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        return _iceI_createSession(userId, password, context, true);
    }

    private SessionPrx _iceI_createSession(String iceP_userId, String iceP_password, java.util.Map context, boolean explicitCtx)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        _checkTwowayOnly(_createSession_name);
        return end_createSession(_iceI_begin_createSession(iceP_userId, iceP_password, context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_createSession(String userId, String password)
    {
        return _iceI_begin_createSession(userId, password, null, false, false, null);
    }

    public Ice.AsyncResult begin_createSession(String userId, String password, java.util.Map context)
    {
        return _iceI_begin_createSession(userId, password, context, true, false, null);
    }

    public Ice.AsyncResult begin_createSession(String userId, String password, Ice.Callback cb)
    {
        return _iceI_begin_createSession(userId, password, null, false, false, cb);
    }

    public Ice.AsyncResult begin_createSession(String userId, String password, java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_createSession(userId, password, context, true, false, cb);
    }

    public Ice.AsyncResult begin_createSession(String userId, String password, Callback_Router_createSession cb)
    {
        return _iceI_begin_createSession(userId, password, null, false, false, cb);
    }

    public Ice.AsyncResult begin_createSession(String userId, String password, java.util.Map context, Callback_Router_createSession cb)
    {
        return _iceI_begin_createSession(userId, password, context, true, false, cb);
    }

    public Ice.AsyncResult begin_createSession(String userId,
                                               String password,
                                               IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 userExceptionCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_createSession(userId, password, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_createSession(String userId,
                                               String password,
                                               IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 userExceptionCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_createSession(userId, password, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_createSession(String userId,
                                               String password,
                                               java.util.Map context,
                                               IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 userExceptionCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_createSession(userId, password, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_createSession(String userId,
                                               String password,
                                               java.util.Map context,
                                               IceInternal.Functional_GenericCallback1 responseCb,
                                               IceInternal.Functional_GenericCallback1 userExceptionCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_createSession(userId, password, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_createSession(String iceP_userId,
                                                      String iceP_password,
                                                      java.util.Map context,
                                                      boolean explicitCtx,
                                                      boolean synchronous,
                                                      IceInternal.Functional_GenericCallback1 responseCb,
                                                      IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_createSession(iceP_userId,
                                         iceP_password,
                                         context,
                                         explicitCtx,
                                         synchronous,
                                         new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                             {
                                                 public final void _iceCompleted(Ice.AsyncResult result)
                                                 {
                                                     RouterPrxHelper._iceI_createSession_completed(this, result);
                                                 }
                                             });
    }

    private Ice.AsyncResult _iceI_begin_createSession(String iceP_userId,
                                                      String iceP_password,
                                                      java.util.Map context,
                                                      boolean explicitCtx,
                                                      boolean synchronous,
                                                      IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_createSession_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_createSession_name, cb);
        try
        {
            result.prepare(_createSession_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
            ostr.writeString(iceP_userId);
            ostr.writeString(iceP_password);
            result.endWriteParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public SessionPrx end_createSession(Ice.AsyncResult iresult)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _createSession_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(CannotCreateSessionException ex_)
                {
                    throw ex_;
                }
                catch(PermissionDeniedException ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            SessionPrx ret_;
            ret_ = SessionPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_createSession_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        SessionPrx ret = null;
        try
        {
            ret = _proxy.end_createSession(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _createSessionFromSecureConnection_name = "createSessionFromSecureConnection";

    public SessionPrx createSessionFromSecureConnection()
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        return _iceI_createSessionFromSecureConnection(null, false);
    }

    public SessionPrx createSessionFromSecureConnection(java.util.Map context)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        return _iceI_createSessionFromSecureConnection(context, true);
    }

    private SessionPrx _iceI_createSessionFromSecureConnection(java.util.Map context, boolean explicitCtx)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        _checkTwowayOnly(_createSessionFromSecureConnection_name);
        return end_createSessionFromSecureConnection(_iceI_begin_createSessionFromSecureConnection(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection()
    {
        return _iceI_begin_createSessionFromSecureConnection(null, false, false, null);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(java.util.Map context)
    {
        return _iceI_begin_createSessionFromSecureConnection(context, true, false, null);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(Ice.Callback cb)
    {
        return _iceI_begin_createSessionFromSecureConnection(null, false, false, cb);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_createSessionFromSecureConnection(context, true, false, cb);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(Callback_Router_createSessionFromSecureConnection cb)
    {
        return _iceI_begin_createSessionFromSecureConnection(null, false, false, cb);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(java.util.Map context, Callback_Router_createSessionFromSecureConnection cb)
    {
        return _iceI_begin_createSessionFromSecureConnection(context, true, false, cb);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(IceInternal.Functional_GenericCallback1 responseCb,
                                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_createSessionFromSecureConnection(null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(IceInternal.Functional_GenericCallback1 responseCb,
                                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_createSessionFromSecureConnection(null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(java.util.Map context,
                                                                   IceInternal.Functional_GenericCallback1 responseCb,
                                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_createSessionFromSecureConnection(context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_createSessionFromSecureConnection(java.util.Map context,
                                                                   IceInternal.Functional_GenericCallback1 responseCb,
                                                                   IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_createSessionFromSecureConnection(context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_createSessionFromSecureConnection(java.util.Map context,
                                                                          boolean explicitCtx,
                                                                          boolean synchronous,
                                                                          IceInternal.Functional_GenericCallback1 responseCb,
                                                                          IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_createSessionFromSecureConnection(context,
                                                             explicitCtx,
                                                             synchronous,
                                                             new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                                                 {
                                                                     public final void _iceCompleted(Ice.AsyncResult result)
                                                                     {
                                                                         RouterPrxHelper._iceI_createSessionFromSecureConnection_completed(this, result);
                                                                     }
                                                                 });
    }

    private Ice.AsyncResult _iceI_begin_createSessionFromSecureConnection(java.util.Map context,
                                                                          boolean explicitCtx,
                                                                          boolean synchronous,
                                                                          IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_createSessionFromSecureConnection_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_createSessionFromSecureConnection_name, cb);
        try
        {
            result.prepare(_createSessionFromSecureConnection_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public SessionPrx end_createSessionFromSecureConnection(Ice.AsyncResult iresult)
        throws CannotCreateSessionException,
               PermissionDeniedException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _createSessionFromSecureConnection_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(CannotCreateSessionException ex_)
                {
                    throw ex_;
                }
                catch(PermissionDeniedException ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            SessionPrx ret_;
            ret_ = SessionPrxHelper.read(istr_);
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_createSessionFromSecureConnection_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        SessionPrx ret = null;
        try
        {
            ret = _proxy.end_createSessionFromSecureConnection(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _refreshSession_name = "refreshSession";

    public void refreshSession()
        throws SessionNotExistException
    {
        _iceI_refreshSession(null, false);
    }

    public void refreshSession(java.util.Map context)
        throws SessionNotExistException
    {
        _iceI_refreshSession(context, true);
    }

    private void _iceI_refreshSession(java.util.Map context, boolean explicitCtx)
        throws SessionNotExistException
    {
        _checkTwowayOnly(_refreshSession_name);
        end_refreshSession(_iceI_begin_refreshSession(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_refreshSession()
    {
        return _iceI_begin_refreshSession(null, false, false, null);
    }

    public Ice.AsyncResult begin_refreshSession(java.util.Map context)
    {
        return _iceI_begin_refreshSession(context, true, false, null);
    }

    public Ice.AsyncResult begin_refreshSession(Ice.Callback cb)
    {
        return _iceI_begin_refreshSession(null, false, false, cb);
    }

    public Ice.AsyncResult begin_refreshSession(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_refreshSession(context, true, false, cb);
    }

    public Ice.AsyncResult begin_refreshSession(Callback_Router_refreshSession cb)
    {
        return _iceI_begin_refreshSession(null, false, false, cb);
    }

    public Ice.AsyncResult begin_refreshSession(java.util.Map context, Callback_Router_refreshSession cb)
    {
        return _iceI_begin_refreshSession(context, true, false, cb);
    }

    public Ice.AsyncResult begin_refreshSession(IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_refreshSession(null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_refreshSession(IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_refreshSession(null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_refreshSession(java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_refreshSession(context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_refreshSession(java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_refreshSession(context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_refreshSession(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_VoidCallback responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_refreshSession(context,
                                          explicitCtx,
                                          synchronous,
                                          new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                              {
                                                  public final void _iceCompleted(Ice.AsyncResult result)
                                                  {
                                                      RouterPrxHelper._iceI_refreshSession_completed(this, result);
                                                  }
                                              });
    }

    private Ice.AsyncResult _iceI_begin_refreshSession(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_refreshSession_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_refreshSession_name, cb);
        try
        {
            result.prepare(_refreshSession_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_refreshSession(Ice.AsyncResult iresult)
        throws SessionNotExistException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _refreshSession_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(SessionNotExistException ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_refreshSession_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        try
        {
            _proxy.end_refreshSession(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _destroySession_name = "destroySession";

    public void destroySession()
        throws SessionNotExistException
    {
        _iceI_destroySession(null, false);
    }

    public void destroySession(java.util.Map context)
        throws SessionNotExistException
    {
        _iceI_destroySession(context, true);
    }

    private void _iceI_destroySession(java.util.Map context, boolean explicitCtx)
        throws SessionNotExistException
    {
        _checkTwowayOnly(_destroySession_name);
        end_destroySession(_iceI_begin_destroySession(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_destroySession()
    {
        return _iceI_begin_destroySession(null, false, false, null);
    }

    public Ice.AsyncResult begin_destroySession(java.util.Map context)
    {
        return _iceI_begin_destroySession(context, true, false, null);
    }

    public Ice.AsyncResult begin_destroySession(Ice.Callback cb)
    {
        return _iceI_begin_destroySession(null, false, false, cb);
    }

    public Ice.AsyncResult begin_destroySession(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_destroySession(context, true, false, cb);
    }

    public Ice.AsyncResult begin_destroySession(Callback_Router_destroySession cb)
    {
        return _iceI_begin_destroySession(null, false, false, cb);
    }

    public Ice.AsyncResult begin_destroySession(java.util.Map context, Callback_Router_destroySession cb)
    {
        return _iceI_begin_destroySession(context, true, false, cb);
    }

    public Ice.AsyncResult begin_destroySession(IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_destroySession(null, false, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_destroySession(IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroySession(null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_destroySession(java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_destroySession(context, true, false, responseCb, userExceptionCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_destroySession(java.util.Map context,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroySession(context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_destroySession(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.Functional_VoidCallback responseCb,
                                                       IceInternal.Functional_GenericCallback1 userExceptionCb,
                                                       IceInternal.Functional_GenericCallback1 exceptionCb,
                                                       IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroySession(context,
                                          explicitCtx,
                                          synchronous,
                                          new IceInternal.Functional_TwowayCallbackVoidUE(responseCb, userExceptionCb, exceptionCb, sentCb)
                                              {
                                                  public final void _iceCompleted(Ice.AsyncResult result)
                                                  {
                                                      RouterPrxHelper._iceI_destroySession_completed(this, result);
                                                  }
                                              });
    }

    private Ice.AsyncResult _iceI_begin_destroySession(java.util.Map context,
                                                       boolean explicitCtx,
                                                       boolean synchronous,
                                                       IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_destroySession_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_destroySession_name, cb);
        try
        {
            result.prepare(_destroySession_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public void end_destroySession(Ice.AsyncResult iresult)
        throws SessionNotExistException
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _destroySession_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(SessionNotExistException ex_)
                {
                    throw ex_;
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            result_.readEmptyParams();
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_destroySession_completed(Ice.TwowayCallbackVoidUE cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        try
        {
            _proxy.end_destroySession(result);
        }
        catch(Ice.UserException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response();
    }

    private static final String _getSessionTimeout_name = "getSessionTimeout";

    public long getSessionTimeout()
    {
        return _iceI_getSessionTimeout(null, false);
    }

    public long getSessionTimeout(java.util.Map context)
    {
        return _iceI_getSessionTimeout(context, true);
    }

    private long _iceI_getSessionTimeout(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getSessionTimeout_name);
        return end_getSessionTimeout(_iceI_begin_getSessionTimeout(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getSessionTimeout()
    {
        return _iceI_begin_getSessionTimeout(null, false, false, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(Ice.Callback cb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(Callback_Router_getSessionTimeout cb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context, Callback_Router_getSessionTimeout cb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(IceInternal.Functional_LongCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(IceInternal.Functional_LongCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSessionTimeout(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context,
                                                   IceInternal.Functional_LongCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getSessionTimeout(java.util.Map context,
                                                   IceInternal.Functional_LongCallback responseCb,
                                                   IceInternal.Functional_GenericCallback1 exceptionCb,
                                                   IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSessionTimeout(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getSessionTimeout(java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.Functional_LongCallback responseCb,
                                                          IceInternal.Functional_GenericCallback1 exceptionCb,
                                                          IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getSessionTimeout(context,
                                             explicitCtx,
                                             synchronous,
                                             new IceInternal.Functional_TwowayCallbackLong(responseCb, exceptionCb, sentCb)
                                                 {
                                                     public final void _iceCompleted(Ice.AsyncResult result)
                                                     {
                                                         RouterPrxHelper._iceI_getSessionTimeout_completed(this, result);
                                                     }
                                                 });
    }

    private Ice.AsyncResult _iceI_begin_getSessionTimeout(java.util.Map context,
                                                          boolean explicitCtx,
                                                          boolean synchronous,
                                                          IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getSessionTimeout_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getSessionTimeout_name, cb);
        try
        {
            result.prepare(_getSessionTimeout_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public long end_getSessionTimeout(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getSessionTimeout_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            long ret_;
            ret_ = istr_.readLong();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getSessionTimeout_completed(Ice.TwowayCallbackLong cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        long ret = 0;
        try
        {
            ret = _proxy.end_getSessionTimeout(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    private static final String _getACMTimeout_name = "getACMTimeout";

    public int getACMTimeout()
    {
        return _iceI_getACMTimeout(null, false);
    }

    public int getACMTimeout(java.util.Map context)
    {
        return _iceI_getACMTimeout(context, true);
    }

    private int _iceI_getACMTimeout(java.util.Map context, boolean explicitCtx)
    {
        _checkTwowayOnly(_getACMTimeout_name);
        return end_getACMTimeout(_iceI_begin_getACMTimeout(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_getACMTimeout()
    {
        return _iceI_begin_getACMTimeout(null, false, false, null);
    }

    public Ice.AsyncResult begin_getACMTimeout(java.util.Map context)
    {
        return _iceI_begin_getACMTimeout(context, true, false, null);
    }

    public Ice.AsyncResult begin_getACMTimeout(Ice.Callback cb)
    {
        return _iceI_begin_getACMTimeout(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getACMTimeout(java.util.Map context, Ice.Callback cb)
    {
        return _iceI_begin_getACMTimeout(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getACMTimeout(Callback_Router_getACMTimeout cb)
    {
        return _iceI_begin_getACMTimeout(null, false, false, cb);
    }

    public Ice.AsyncResult begin_getACMTimeout(java.util.Map context, Callback_Router_getACMTimeout cb)
    {
        return _iceI_begin_getACMTimeout(context, true, false, cb);
    }

    public Ice.AsyncResult begin_getACMTimeout(IceInternal.Functional_IntCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getACMTimeout(null, false, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getACMTimeout(IceInternal.Functional_IntCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getACMTimeout(null, false, false, responseCb, exceptionCb, sentCb);
    }

    public Ice.AsyncResult begin_getACMTimeout(java.util.Map context,
                                               IceInternal.Functional_IntCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_getACMTimeout(context, true, false, responseCb, exceptionCb, null);
    }

    public Ice.AsyncResult begin_getACMTimeout(java.util.Map context,
                                               IceInternal.Functional_IntCallback responseCb,
                                               IceInternal.Functional_GenericCallback1 exceptionCb,
                                               IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getACMTimeout(context, true, false, responseCb, exceptionCb, sentCb);
    }

    private Ice.AsyncResult _iceI_begin_getACMTimeout(java.util.Map context,
                                                      boolean explicitCtx,
                                                      boolean synchronous,
                                                      IceInternal.Functional_IntCallback responseCb,
                                                      IceInternal.Functional_GenericCallback1 exceptionCb,
                                                      IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_getACMTimeout(context,
                                         explicitCtx,
                                         synchronous,
                                         new IceInternal.Functional_TwowayCallbackInt(responseCb, exceptionCb, sentCb)
                                             {
                                                 public final void _iceCompleted(Ice.AsyncResult result)
                                                 {
                                                     RouterPrxHelper._iceI_getACMTimeout_completed(this, result);
                                                 }
                                             });
    }

    private Ice.AsyncResult _iceI_begin_getACMTimeout(java.util.Map context,
                                                      boolean explicitCtx,
                                                      boolean synchronous,
                                                      IceInternal.CallbackBase cb)
    {
        _checkAsyncTwowayOnly(_getACMTimeout_name);
        IceInternal.OutgoingAsync result = getOutgoingAsync(_getACMTimeout_name, cb);
        try
        {
            result.prepare(_getACMTimeout_name, Ice.OperationMode.Nonmutating, context, explicitCtx, synchronous);
            result.writeEmptyParams();
            result.invoke();
        }
        catch(Ice.Exception ex)
        {
            result.abort(ex);
        }
        return result;
    }

    public int end_getACMTimeout(Ice.AsyncResult iresult)
    {
        IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getACMTimeout_name);
        try
        {
            if(!result_.waitForResponseOrUserEx())
            {
                try
                {
                    result_.throwUserException();
                }
                catch(Ice.UserException ex_)
                {
                    throw new Ice.UnknownUserException(ex_.ice_id(), ex_);
                }
            }
            Ice.InputStream istr_ = result_.startReadParams();
            int ret_;
            ret_ = istr_.readInt();
            result_.endReadParams();
            return ret_;
        }
        finally
        {
            if(result_ != null)
            {
                result_.cacheMessageBuffers();
            }
        }
    }

    static public void _iceI_getACMTimeout_completed(Ice.TwowayCallbackInt cb, Ice.AsyncResult result)
    {
        Glacier2.RouterPrx _proxy = (Glacier2.RouterPrx)result.getProxy();
        int ret = 0;
        try
        {
            ret = _proxy.end_getACMTimeout(result);
        }
        catch(Ice.LocalException ex)
        {
            cb.exception(ex);
            return;
        }
        catch(Ice.SystemException ex)
        {
            cb.exception(ex);
            return;
        }
        cb.response(ret);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static RouterPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), RouterPrx.class, RouterPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static RouterPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), RouterPrx.class, RouterPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static RouterPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), RouterPrx.class, RouterPrxHelper.class);
    }

    /**
     * Contacts the remote server to verify that a facet of the object implements this type.
     * Raises a local exception if a communication error occurs.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @param context The Context map to send with the invocation.
     * @return A proxy for this type, or null if the object does not support this type.
     **/
    public static RouterPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), RouterPrx.class, RouterPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @return A proxy for this type.
     **/
    public static RouterPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, RouterPrx.class, RouterPrxHelper.class);
    }

    /**
     * Downcasts the given proxy to this type without contacting the remote server.
     * @param obj The untyped proxy.
     * @param facet The name of the desired facet.
     * @return A proxy for this type.
     **/
    public static RouterPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, RouterPrx.class, RouterPrxHelper.class);
    }

    private static final String[] _ids =
    {
        "::Glacier2::Router",
        "::Ice::Object",
        "::Ice::Router"
    };

    /**
     * Provides the Slice type ID of this type.
     * @return The Slice type ID.
     **/
    public static String ice_staticId()
    {
        return _ids[0];
    }

    public static void write(Ice.OutputStream ostr, RouterPrx v)
    {
        ostr.writeProxy(v);
    }

    public static RouterPrx read(Ice.InputStream istr)
    {
        Ice.ObjectPrx proxy = istr.readProxy();
        if(proxy != null)
        {
            RouterPrxHelper result = new RouterPrxHelper();
            result._copyFrom(proxy);
            return result;
        }
        return null;
    }

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy