Glacier2.SSLSessionManagerPrxHelper Maven / Gradle / Ivy
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Ice version 3.7.7
//
//
//
// Generated from file `Session.ice'
//
// Warning: do not edit this file.
//
//
//
package Glacier2;
/**
* Provides type-specific helper functions.
**/
public final class SSLSessionManagerPrxHelper extends Ice.ObjectPrxHelperBase implements SSLSessionManagerPrx
{
private static final String _create_name = "create";
public SessionPrx create(SSLInfo info, SessionControlPrx control)
throws CannotCreateSessionException
{
return _iceI_create(info, control, null, false);
}
public SessionPrx create(SSLInfo info, SessionControlPrx control, java.util.Map context)
throws CannotCreateSessionException
{
return _iceI_create(info, control, context, true);
}
private SessionPrx _iceI_create(SSLInfo iceP_info, SessionControlPrx iceP_control, java.util.Map context, boolean explicitCtx)
throws CannotCreateSessionException
{
_checkTwowayOnly(_create_name);
return end_create(_iceI_begin_create(iceP_info, iceP_control, context, explicitCtx, true, null));
}
public Ice.AsyncResult begin_create(SSLInfo info, SessionControlPrx control)
{
return _iceI_begin_create(info, control, null, false, false, null);
}
public Ice.AsyncResult begin_create(SSLInfo info, SessionControlPrx control, java.util.Map context)
{
return _iceI_begin_create(info, control, context, true, false, null);
}
public Ice.AsyncResult begin_create(SSLInfo info, SessionControlPrx control, Ice.Callback cb)
{
return _iceI_begin_create(info, control, null, false, false, cb);
}
public Ice.AsyncResult begin_create(SSLInfo info, SessionControlPrx control, java.util.Map context, Ice.Callback cb)
{
return _iceI_begin_create(info, control, context, true, false, cb);
}
public Ice.AsyncResult begin_create(SSLInfo info, SessionControlPrx control, Callback_SSLSessionManager_create cb)
{
return _iceI_begin_create(info, control, null, false, false, cb);
}
public Ice.AsyncResult begin_create(SSLInfo info, SessionControlPrx control, java.util.Map context, Callback_SSLSessionManager_create cb)
{
return _iceI_begin_create(info, control, context, true, false, cb);
}
public Ice.AsyncResult begin_create(SSLInfo info,
SessionControlPrx control,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_create(info, control, null, false, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_create(SSLInfo info,
SessionControlPrx control,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_create(info, control, null, false, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
public Ice.AsyncResult begin_create(SSLInfo info,
SessionControlPrx control,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb)
{
return _iceI_begin_create(info, control, context, true, false, responseCb, userExceptionCb, exceptionCb, null);
}
public Ice.AsyncResult begin_create(SSLInfo info,
SessionControlPrx control,
java.util.Map context,
IceInternal.Functional_GenericCallback1 responseCb,
IceInternal.Functional_GenericCallback1 userExceptionCb,
IceInternal.Functional_GenericCallback1 exceptionCb,
IceInternal.Functional_BoolCallback sentCb)
{
return _iceI_begin_create(info, control, context, true, false, responseCb, userExceptionCb, exceptionCb, sentCb);
}
private Ice.AsyncResult _iceI_begin_create(SSLInfo iceP_info,
SessionControlPrx iceP_control,
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_create(iceP_info,
iceP_control,
context,
explicitCtx,
synchronous,
new IceInternal.Functional_TwowayCallbackArg1UE(responseCb, userExceptionCb, exceptionCb, sentCb)
{
public final void _iceCompleted(Ice.AsyncResult result)
{
SSLSessionManagerPrxHelper._iceI_create_completed(this, result);
}
});
}
private Ice.AsyncResult _iceI_begin_create(SSLInfo iceP_info,
SessionControlPrx iceP_control,
java.util.Map context,
boolean explicitCtx,
boolean synchronous,
IceInternal.CallbackBase cb)
{
_checkAsyncTwowayOnly(_create_name);
IceInternal.OutgoingAsync result = getOutgoingAsync(_create_name, cb);
try
{
result.prepare(_create_name, Ice.OperationMode.Normal, context, explicitCtx, synchronous);
Ice.OutputStream ostr = result.startWriteParams(Ice.FormatType.SlicedFormat);
SSLInfo.ice_write(ostr, iceP_info);
SessionControlPrxHelper.write(ostr, iceP_control);
result.endWriteParams();
result.invoke();
}
catch(Ice.Exception ex)
{
result.abort(ex);
}
return result;
}
public SessionPrx end_create(Ice.AsyncResult iresult)
throws CannotCreateSessionException
{
IceInternal.OutgoingAsync result_ = IceInternal.OutgoingAsync.check(iresult, this, _create_name);
try
{
if(!result_.waitForResponseOrUserEx())
{
try
{
result_.throwUserException();
}
catch(CannotCreateSessionException 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_create_completed(Ice.TwowayCallbackArg1UE cb, Ice.AsyncResult result)
{
Glacier2.SSLSessionManagerPrx _proxy = (Glacier2.SSLSessionManagerPrx)result.getProxy();
SessionPrx ret = null;
try
{
ret = _proxy.end_create(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);
}
/**
* 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 SSLSessionManagerPrx checkedCast(Ice.ObjectPrx obj)
{
return checkedCastImpl(obj, ice_staticId(), SSLSessionManagerPrx.class, SSLSessionManagerPrxHelper.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 SSLSessionManagerPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
{
return checkedCastImpl(obj, context, ice_staticId(), SSLSessionManagerPrx.class, SSLSessionManagerPrxHelper.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 SSLSessionManagerPrx checkedCast(Ice.ObjectPrx obj, String facet)
{
return checkedCastImpl(obj, facet, ice_staticId(), SSLSessionManagerPrx.class, SSLSessionManagerPrxHelper.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 SSLSessionManagerPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
{
return checkedCastImpl(obj, facet, context, ice_staticId(), SSLSessionManagerPrx.class, SSLSessionManagerPrxHelper.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 SSLSessionManagerPrx uncheckedCast(Ice.ObjectPrx obj)
{
return uncheckedCastImpl(obj, SSLSessionManagerPrx.class, SSLSessionManagerPrxHelper.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 SSLSessionManagerPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
{
return uncheckedCastImpl(obj, facet, SSLSessionManagerPrx.class, SSLSessionManagerPrxHelper.class);
}
private static final String[] _ids =
{
"::Glacier2::SSLSessionManager",
"::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, SSLSessionManagerPrx v)
{
ostr.writeProxy(v);
}
public static SSLSessionManagerPrx read(Ice.InputStream istr)
{
Ice.ObjectPrx proxy = istr.readProxy();
if(proxy != null)
{
SSLSessionManagerPrxHelper result = new SSLSessionManagerPrxHelper();
result._copyFrom(proxy);
return result;
}
return null;
}
public static final long serialVersionUID = 0L;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy