Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
Glacier2.StringSetPrxHelper Maven / Gradle / Ivy
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.3
//
//
//
// Generated from file `Session.ice'
//
// Warning: do not edit this file.
//
//
//
package Glacier2;
/**
* Provides type-specific helper functions.
**/
public final class StringSetPrxHelper extends Ice.ObjectPrxHelperBase implements StringSetPrx
{
private static final String _add_name = "add";
public void add(String[] additions)
{
_iceI_add(additions, null, false);
}
public void add(String[] additions, java.util.Map context)
{
_iceI_add(additions, context, true);
}
private void _iceI_add(String[] iceP_additions, java.util.Map context, boolean explicitCtx)
{
end_add(_iceI_begin_add(iceP_additions, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_add(String[] additions)
{
return _iceI_begin_add(additions, null, false, false, null);
}
public Ice.AsyncResult begin_add(String[] additions, java.util.Map context)
{
return _iceI_begin_add(additions, context, true, false, null);
}
public Ice.AsyncResult begin_add(String[] additions, Ice.Callback cb)
{
return _iceI_begin_add(additions, null, false, false, cb);
}
public Ice.AsyncResult begin_add(String[] additions, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_add(additions, context, true, false, cb);
}
public Ice.AsyncResult begin_add(String[] additions, Callback_StringSet_add cb)
{
return _iceI_begin_add(additions, null, false, false, cb);
}
public Ice.AsyncResult begin_add(String[] additions, java.util.Map context, Callback_StringSet_add cb)
{
return _iceI_begin_add(additions, context, true, false, cb);
}
public Ice.AsyncResult begin_add(String[] additions,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_add(additions, null, false, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_add(String[] additions,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_add(additions, null, false, false, responseCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_add(String[] additions,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_add(additions, context, true, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_add(String[] additions,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_add(additions, context, true, false, responseCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_add(String[] iceP_additions,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_add(iceP_additions,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
}
private Ice.AsyncResult _iceI_begin_add(String[] iceP_additions,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
IceInternal.OutgoingAsync result = getOutgoingAsync(_add_name, cb);
try
{
result.prepare(_add_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
Ice.StringSeqHelper.write(ostr, iceP_additions);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_add(Ice.AsyncResult iresult)
{
_end(iresult, _add_name);
}
private static final String _remove_name = "remove";
public void remove(String[] deletions)
{
_iceI_remove(deletions, null, false);
}
public void remove(String[] deletions, java.util.Map context)
{
_iceI_remove(deletions, context, true);
}
private void _iceI_remove(String[] iceP_deletions, java.util.Map context, boolean explicitCtx)
{
end_remove(_iceI_begin_remove(iceP_deletions, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_remove(String[] deletions)
{
return _iceI_begin_remove(deletions, null, false, false, null);
}
public Ice.AsyncResult begin_remove(String[] deletions, java.util.Map context)
{
return _iceI_begin_remove(deletions, context, true, false, null);
}
public Ice.AsyncResult begin_remove(String[] deletions, Ice.Callback cb)
{
return _iceI_begin_remove(deletions, null, false, false, cb);
}
public Ice.AsyncResult begin_remove(String[] deletions, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_remove(deletions, context, true, false, cb);
}
public Ice.AsyncResult begin_remove(String[] deletions, Callback_StringSet_remove cb)
{
return _iceI_begin_remove(deletions, null, false, false, cb);
}
public Ice.AsyncResult begin_remove(String[] deletions, java.util.Map context, Callback_StringSet_remove cb)
{
return _iceI_begin_remove(deletions, context, true, false, cb);
}
public Ice.AsyncResult begin_remove(String[] deletions,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_remove(deletions, null, false, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_remove(String[] deletions,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_remove(deletions, null, false, false, responseCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_remove(String[] deletions,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_remove(deletions, context, true, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_remove(String[] deletions,
java.util.Map context,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_remove(deletions, context, true, false, responseCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_remove(String[] iceP_deletions,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_VoidCallback responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_remove(iceP_deletions,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
}
private Ice.AsyncResult _iceI_begin_remove(String[] iceP_deletions,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
IceInternal.OutgoingAsync result = getOutgoingAsync(_remove_name, cb);
try
{
result.prepare(_remove_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.DefaultFormat);
Ice.StringSeqHelper.write(ostr, iceP_deletions);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public void end_remove(Ice.AsyncResult iresult)
{
_end(iresult, _remove_name);
}
private static final String _get_name = "get";
public String[] get()
{
return _iceI_get(null, false);
}
public String[] get(java.util.Map context)
{
return _iceI_get(context, true);
}
private String[] _iceI_get(java.util.Map context, boolean explicitCtx)
{
_checkTwowayOnly(_get_name);
return end_get(_iceI_begin_get(context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_get()
{
return _iceI_begin_get(null, false, false, null);
}
public Ice.AsyncResult begin_get(java.util.Map context)
{
return _iceI_begin_get(context, true, false, null);
}
public Ice.AsyncResult begin_get(Ice.Callback cb)
{
return _iceI_begin_get(null, false, false, cb);
}
public Ice.AsyncResult begin_get(java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_get(context, true, false, cb);
}
public Ice.AsyncResult begin_get(Callback_StringSet_get cb)
{
return _iceI_begin_get(null, false, false, cb);
}
public Ice.AsyncResult begin_get(java.util.Map context, Callback_StringSet_get cb)
{
return _iceI_begin_get(context, true, false, cb);
}
public Ice.AsyncResult begin_get(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_get(null, false, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_get(IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_get(null, false, false, responseCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_get(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_get(context, true, false, responseCb, exceptionCb, null);
}
public Ice.AsyncResult begin_get(java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_get(context, true, false, responseCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_get(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_get(context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1(responseCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
StringSetPrxHelper._iceI_get_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_get(java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_get_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_get_name, cb);
try
{
result.prepare(_get_name, Ice.OperationMode.Idempotent, context, explicitCtx, synchronous);
result.writeEmptyParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public String[] end_get(Ice.AsyncResult iresult)
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _get_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_ = Ice.StringSeqHelper.read(istr_);
result_.endReadParams();
return ret_;
}
finally
{
if(result_ != null)
{
result_.cacheMessageBuffers();
}
}
}
static public void _iceI_get_completed(Ice.TwowayCallbackArg1 cb, Ice.AsyncResult result)
{
Glacier2.StringSetPrx _proxy = (Glacier2.StringSetPrx)result.getProxy();
String[] ret = null;
try
{
ret = _proxy.end_get(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 StringSetPrx checkedCast(Ice.ObjectPrx obj)
{
return checkedCastImpl(obj, ice_staticId(), StringSetPrx.class, StringSetPrxHelper.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 StringSetPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
{
return checkedCastImpl(obj, context, ice_staticId(), StringSetPrx.class, StringSetPrxHelper.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 StringSetPrx checkedCast(Ice.ObjectPrx obj, String facet)
{
return checkedCastImpl(obj, facet, ice_staticId(), StringSetPrx.class, StringSetPrxHelper.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 StringSetPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
{
return checkedCastImpl(obj, facet, context, ice_staticId(), StringSetPrx.class, StringSetPrxHelper.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 StringSetPrx uncheckedCast(Ice.ObjectPrx obj)
{
return uncheckedCastImpl(obj, StringSetPrx.class, StringSetPrxHelper.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 StringSetPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
{
return uncheckedCastImpl(obj, facet, StringSetPrx.class, StringSetPrxHelper.class);
}
private static final String[] _ids =
{
"::Glacier2::StringSet",
"::Ice::Object"
};
/**
* 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, StringSetPrx v)
{
ostr.writeProxy(v);
}
public static StringSetPrx read(Ice.InputStream istr)
{
Ice.ObjectPrx proxy = istr.readProxy();
if(proxy != null)
{
StringSetPrxHelper result = new StringSetPrxHelper();
result._copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}