Ice.RouterFinderPrxHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ice-compat Show documentation
Show all versions of ice-compat Show documentation
Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `Router.ice'
//
// Warning: do not edit this file.
//
//
//
package Ice;
/**
* Provides type-specific helper functions.
**/
public final class RouterFinderPrxHelper extends ObjectPrxHelperBase implements RouterFinderPrx
{
private static final String _getRouter_name = "getRouter";
public RouterPrx getRouter()
{
return _iceI_getRouter(null, false);
}
public RouterPrx getRouter(java.util.Map context)
{
return _iceI_getRouter(context, true);
}
private RouterPrx _iceI_getRouter(java.util.Map context, boolean explicitCtx)
{
_checkTwowayOnly(_getRouter_name);
return end_getRouter(_iceI_begin_getRouter(context, explicitCtx, true, null));
}
public AsyncResult begin_getRouter()
{
return _iceI_begin_getRouter(null, false, false, null);
}
public AsyncResult begin_getRouter(java.util.Map context)
{
return _iceI_begin_getRouter(context, true, false, null);
}
public AsyncResult begin_getRouter(Callback cb)
{
return _iceI_begin_getRouter(null, false, false, cb);
}
public AsyncResult begin_getRouter(java.util.Map context, Callback cb)
{
return _iceI_begin_getRouter(context, true, false, cb);
}
public AsyncResult begin_getRouter(Callback_RouterFinder_getRouter cb)
{
return _iceI_begin_getRouter(null, false, false, cb);
}
public AsyncResult begin_getRouter(java.util.Map context, Callback_RouterFinder_getRouter cb)
{
return _iceI_begin_getRouter(context, true, false, cb);
}
public AsyncResult begin_getRouter(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getRouter(null, false, false, responseCb, exceptionCb, null);
}
public AsyncResult begin_getRouter(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getRouter(null, false, false, responseCb, exceptionCb, sentCb);
}
public AsyncResult begin_getRouter(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_getRouter(context, true, false, responseCb, exceptionCb, null);
}
public AsyncResult begin_getRouter(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getRouter(context, true, false, responseCb, exceptionCb, sentCb);
}
private AsyncResult _iceI_begin_getRouter(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_getRouter(context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
{
public final void _iceCompleted(AsyncResult result)
{
RouterFinderPrxHelper._iceI_getRouter_completed(this, result);
}
});
}
private AsyncResult _iceI_begin_getRouter(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_getRouter_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_getRouter_name, cb);
try
{
result.prepare(_getRouter_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
result.writeEmptyParams();
result.invoke();
}
catch(Exception ex)
{
result.abort(ex);
}
return result;
}
public RouterPrx end_getRouter(AsyncResult iresult)
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _getRouter_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(UserException ex_)
{
throw new UnknownUserException(ex_.ice_id(), ex_);
}
}
InputStream istr_ = result_.startReadParams();
RouterPrx ret_;
ret_ = RouterPrxHelper.read(istr_);
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_getRouter_completed(TwowayCallbackArg1 cb, Ice.AsyncResult result)
{
Ice.RouterFinderPrx _proxy = (Ice.RouterFinderPrx)result.getProxy();
RouterPrx ret = null;
try
{
ret = _proxy.end_getRouter(result);
}
catch(LocalException ex)
{
cb.exception(ex);
return;
}
catch(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 RouterFinderPrx checkedCast(ObjectPrx obj)
{
return checkedCastImpl(obj, ice_staticId(), RouterFinderPrx.class, RouterFinderPrxHelper.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 RouterFinderPrx checkedCast(ObjectPrx obj, java.util.Map context)
{
return checkedCastImpl(obj, context, ice_staticId(), RouterFinderPrx.class, RouterFinderPrxHelper.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 RouterFinderPrx checkedCast(ObjectPrx obj, String facet)
{
return checkedCastImpl(obj, facet, ice_staticId(), RouterFinderPrx.class, RouterFinderPrxHelper.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 RouterFinderPrx checkedCast(ObjectPrx obj, String facet, java.util.Map context)
{
return checkedCastImpl(obj, facet, context, ice_staticId(), RouterFinderPrx.class, RouterFinderPrxHelper.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 RouterFinderPrx uncheckedCast(ObjectPrx obj)
{
return uncheckedCastImpl(obj, RouterFinderPrx.class, RouterFinderPrxHelper.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 RouterFinderPrx uncheckedCast(ObjectPrx obj, String facet)
{
return uncheckedCastImpl(obj, facet, RouterFinderPrx.class, RouterFinderPrxHelper.class);
}
private static final String[] _ids =
{
"::Ice::Object",
"::Ice::RouterFinder"
};
/**
* 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(OutputStream ostr, RouterFinderPrx v)
{
ostr.writeProxy(v);
}
public static RouterFinderPrx read(InputStream istr)
{
ObjectPrx proxy = istr.readProxy();
if(proxy != null)
{
RouterFinderPrxHelper result = new RouterFinderPrxHelper();
result._copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}