Ice.RouterPrxHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice Show documentation
Show all versions of ice Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
// **********************************************************************
//
// Copyright (c) 2003-2017 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.6.4
//
//
//
// Generated from file `Router.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
/**
* Provides type-specific helper functions.
**/
public final class RouterPrxHelper extends Ice.ObjectPrxHelperBase implements RouterPrx
{
private static final String __addProxies_name = "addProxies";
public Ice.ObjectPrx[] addProxies(Ice.ObjectPrx[] proxies)
{
return addProxies(proxies, null, false);
}
public Ice.ObjectPrx[] addProxies(Ice.ObjectPrx[] proxies, java.util.Map __ctx)
{
return addProxies(proxies, __ctx, true);
}
private Ice.ObjectPrx[] addProxies(Ice.ObjectPrx[] proxies, java.util.Map __ctx, boolean __explicitCtx)
{
__checkTwowayOnly(__addProxies_name);
return end_addProxies(begin_addProxies(proxies, __ctx, __explicitCtx, true, null));
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies)
{
return begin_addProxies(proxies, null, false, false, null);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, java.util.Map __ctx)
{
return begin_addProxies(proxies, __ctx, true, false, null);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, Ice.Callback __cb)
{
return begin_addProxies(proxies, null, false, false, __cb);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, java.util.Map __ctx, Ice.Callback __cb)
{
return begin_addProxies(proxies, __ctx, true, false, __cb);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, Callback_Router_addProxies __cb)
{
return begin_addProxies(proxies, null, false, false, __cb);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies, java.util.Map __ctx, Callback_Router_addProxies __cb)
{
return begin_addProxies(proxies, __ctx, true, false, __cb);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb)
{
return 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 begin_addProxies(proxies, null, false, false, __responseCb, __exceptionCb, __sentCb);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
java.util.Map __ctx,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb)
{
return begin_addProxies(proxies, __ctx, true, false, __responseCb, __exceptionCb, null);
}
public Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
java.util.Map __ctx,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_addProxies(proxies, __ctx, true, false, __responseCb, __exceptionCb, __sentCb);
}
private Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
java.util.Map __ctx,
boolean __explicitCtx,
boolean __synchronous,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_addProxies(proxies, __ctx, __explicitCtx, __synchronous,
new IceInternal.Functional_TwowayCallbackArg1(__responseCb, __exceptionCb, __sentCb)
{
public final void __completed(Ice.AsyncResult __result)
{
RouterPrxHelper.__addProxies_completed(this, __result);
}
});
}
private Ice.AsyncResult begin_addProxies(Ice.ObjectPrx[] proxies,
java.util.Map __ctx,
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, __ctx, __explicitCtx, __synchronous);
IceInternal.BasicStream __os = __result.startWriteParams(Ice.FormatType.DefaultFormat);
ObjectProxySeqHelper.write(__os, 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.__wait())
{
try
{
__result.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.startReadParams();
Ice.ObjectPrx[] __ret;
__ret = ObjectProxySeqHelper.read(__is);
__result.endReadParams();
return __ret;
}
finally
{
if(__result != null)
{
__result.cacheMessageBuffers();
}
}
}
static public void __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 __getClientProxy_name = "getClientProxy";
public Ice.ObjectPrx getClientProxy()
{
return getClientProxy(null, false);
}
public Ice.ObjectPrx getClientProxy(java.util.Map __ctx)
{
return getClientProxy(__ctx, true);
}
private Ice.ObjectPrx getClientProxy(java.util.Map __ctx, boolean __explicitCtx)
{
__checkTwowayOnly(__getClientProxy_name);
return end_getClientProxy(begin_getClientProxy(__ctx, __explicitCtx, true, null));
}
public Ice.AsyncResult begin_getClientProxy()
{
return begin_getClientProxy(null, false, false, null);
}
public Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx)
{
return begin_getClientProxy(__ctx, true, false, null);
}
public Ice.AsyncResult begin_getClientProxy(Ice.Callback __cb)
{
return begin_getClientProxy(null, false, false, __cb);
}
public Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx, Ice.Callback __cb)
{
return begin_getClientProxy(__ctx, true, false, __cb);
}
public Ice.AsyncResult begin_getClientProxy(Callback_Router_getClientProxy __cb)
{
return begin_getClientProxy(null, false, false, __cb);
}
public Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx, Callback_Router_getClientProxy __cb)
{
return begin_getClientProxy(__ctx, true, false, __cb);
}
public Ice.AsyncResult begin_getClientProxy(IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb)
{
return begin_getClientProxy(null, false, false, __responseCb, __exceptionCb, null);
}
public Ice.AsyncResult begin_getClientProxy(IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_getClientProxy(null, false, false, __responseCb, __exceptionCb, __sentCb);
}
public Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb)
{
return begin_getClientProxy(__ctx, true, false, __responseCb, __exceptionCb, null);
}
public Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_getClientProxy(__ctx, true, false, __responseCb, __exceptionCb, __sentCb);
}
private Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx,
boolean __explicitCtx,
boolean __synchronous,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_getClientProxy(__ctx, __explicitCtx, __synchronous,
new IceInternal.Functional_TwowayCallbackArg1(__responseCb, __exceptionCb, __sentCb)
{
public final void __completed(Ice.AsyncResult __result)
{
RouterPrxHelper.__getClientProxy_completed(this, __result);
}
});
}
private Ice.AsyncResult begin_getClientProxy(java.util.Map __ctx,
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, __ctx, __explicitCtx, __synchronous);
__result.writeEmptyParams();
__result.invoke();
}
catch(Ice.Exception __ex)
{
__result.abort(__ex);
}
return __result;
}
public Ice.ObjectPrx end_getClientProxy(Ice.AsyncResult __iresult)
{
IceInternal.OutgoingAsync __result = IceInternal.OutgoingAsync.check(__iresult, this, __getClientProxy_name);
try
{
if(!__result.__wait())
{
try
{
__result.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.startReadParams();
Ice.ObjectPrx __ret;
__ret = __is.readProxy();
__result.endReadParams();
return __ret;
}
finally
{
if(__result != null)
{
__result.cacheMessageBuffers();
}
}
}
static public void __getClientProxy_completed(Ice.TwowayCallbackArg1 __cb, Ice.AsyncResult __result)
{
Ice.RouterPrx __proxy = (Ice.RouterPrx)__result.getProxy();
Ice.ObjectPrx __ret = null;
try
{
__ret = __proxy.end_getClientProxy(__result);
}
catch(Ice.LocalException __ex)
{
__cb.exception(__ex);
return;
}
catch(Ice.SystemException __ex)
{
__cb.exception(__ex);
return;
}
__cb.response(__ret);
}
private static final String __getServerProxy_name = "getServerProxy";
public Ice.ObjectPrx getServerProxy()
{
return getServerProxy(null, false);
}
public Ice.ObjectPrx getServerProxy(java.util.Map __ctx)
{
return getServerProxy(__ctx, true);
}
private Ice.ObjectPrx getServerProxy(java.util.Map __ctx, boolean __explicitCtx)
{
__checkTwowayOnly(__getServerProxy_name);
return end_getServerProxy(begin_getServerProxy(__ctx, __explicitCtx, true, null));
}
public Ice.AsyncResult begin_getServerProxy()
{
return begin_getServerProxy(null, false, false, null);
}
public Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx)
{
return begin_getServerProxy(__ctx, true, false, null);
}
public Ice.AsyncResult begin_getServerProxy(Ice.Callback __cb)
{
return begin_getServerProxy(null, false, false, __cb);
}
public Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx, Ice.Callback __cb)
{
return begin_getServerProxy(__ctx, true, false, __cb);
}
public Ice.AsyncResult begin_getServerProxy(Callback_Router_getServerProxy __cb)
{
return begin_getServerProxy(null, false, false, __cb);
}
public Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx, Callback_Router_getServerProxy __cb)
{
return begin_getServerProxy(__ctx, true, false, __cb);
}
public Ice.AsyncResult begin_getServerProxy(IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb)
{
return 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 begin_getServerProxy(null, false, false, __responseCb, __exceptionCb, __sentCb);
}
public Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb)
{
return begin_getServerProxy(__ctx, true, false, __responseCb, __exceptionCb, null);
}
public Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_getServerProxy(__ctx, true, false, __responseCb, __exceptionCb, __sentCb);
}
private Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx,
boolean __explicitCtx,
boolean __synchronous,
IceInternal.Functional_GenericCallback1 __responseCb,
IceInternal.Functional_GenericCallback1 __exceptionCb,
IceInternal.Functional_BoolCallback __sentCb)
{
return begin_getServerProxy(__ctx, __explicitCtx, __synchronous,
new IceInternal.Functional_TwowayCallbackArg1(__responseCb, __exceptionCb, __sentCb)
{
public final void __completed(Ice.AsyncResult __result)
{
RouterPrxHelper.__getServerProxy_completed(this, __result);
}
});
}
private Ice.AsyncResult begin_getServerProxy(java.util.Map __ctx,
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, __ctx, __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.__wait())
{
try
{
__result.throwUserException();
}
catch(Ice.UserException __ex)
{
throw new Ice.UnknownUserException(__ex.ice_name(), __ex);
}
}
IceInternal.BasicStream __is = __result.startReadParams();
Ice.ObjectPrx __ret;
__ret = __is.readProxy();
__result.endReadParams();
return __ret;
}
finally
{
if(__result != null)
{
__result.cacheMessageBuffers();
}
}
}
static public void __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);
}
/**
* 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 __ctx 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 __ctx)
{
return checkedCastImpl(__obj, __ctx, 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 __ctx 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 __ctx)
{
return checkedCastImpl(__obj, __facet, __ctx, 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);
}
public static final String[] __ids =
{
"::Ice::Object",
"::Ice::Router"
};
/**
* Provides the Slice type ID of this type.
* @return The Slice type ID.
**/
public static String ice_staticId()
{
return __ids[1];
}
public static void __write(IceInternal.BasicStream __os, RouterPrx v)
{
__os.writeProxy(v);
}
public static RouterPrx __read(IceInternal.BasicStream __is)
{
Ice.ObjectPrx proxy = __is.readProxy();
if(proxy != null)
{
RouterPrxHelper result = new RouterPrxHelper();
result.__copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy