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

Glacier2.SessionPrxHelper 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 `Session.ice'
//
// Warning: do not edit this file.
//
// 
//

package Glacier2;

/**
 * Provides type-specific helper functions.
 **/
public final class SessionPrxHelper extends Ice.ObjectPrxHelperBase implements SessionPrx
{
    private static final String _destroy_name = "destroy";

    public void destroy()
    {
        _iceI_destroy(null, false);
    }

    public void destroy(java.util.Map context)
    {
        _iceI_destroy(context, true);
    }

    private void _iceI_destroy(java.util.Map context, boolean explicitCtx)
    {
        end_destroy(_iceI_begin_destroy(context, explicitCtx, true, null));
    }

    public Ice.AsyncResult begin_destroy()
    {
        return _iceI_begin_destroy(null, false, false, null);
    }

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

    public Ice.AsyncResult begin_destroy(Ice.Callback cb)
    {
        return _iceI_begin_destroy(null, false, false, cb);
    }

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

    public Ice.AsyncResult begin_destroy(Callback_Session_destroy cb)
    {
        return _iceI_begin_destroy(null, false, false, cb);
    }

    public Ice.AsyncResult begin_destroy(java.util.Map context, Callback_Session_destroy cb)
    {
        return _iceI_begin_destroy(context, true, false, cb);
    }

    public Ice.AsyncResult begin_destroy(IceInternal.Functional_VoidCallback responseCb,
                                         IceInternal.Functional_GenericCallback1 exceptionCb)
    {
        return _iceI_begin_destroy(null, false, false, responseCb, exceptionCb, null);
    }

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

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

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

    private Ice.AsyncResult _iceI_begin_destroy(java.util.Map context,
                                                boolean explicitCtx,
                                                boolean synchronous,
                                                IceInternal.Functional_VoidCallback responseCb,
                                                IceInternal.Functional_GenericCallback1 exceptionCb,
                                                IceInternal.Functional_BoolCallback sentCb)
    {
        return _iceI_begin_destroy(context,
                                   explicitCtx,
                                   synchronous,
                                   new IceInternal.Functional_OnewayCallback(responseCb, exceptionCb, sentCb));
    }

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

    public void end_destroy(Ice.AsyncResult iresult)
    {
        _end(iresult, _destroy_name);
    }

    /**
     * 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 SessionPrx checkedCast(Ice.ObjectPrx obj)
    {
        return checkedCastImpl(obj, ice_staticId(), SessionPrx.class, SessionPrxHelper.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 SessionPrx checkedCast(Ice.ObjectPrx obj, java.util.Map context)
    {
        return checkedCastImpl(obj, context, ice_staticId(), SessionPrx.class, SessionPrxHelper.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 SessionPrx checkedCast(Ice.ObjectPrx obj, String facet)
    {
        return checkedCastImpl(obj, facet, ice_staticId(), SessionPrx.class, SessionPrxHelper.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 SessionPrx checkedCast(Ice.ObjectPrx obj, String facet, java.util.Map context)
    {
        return checkedCastImpl(obj, facet, context, ice_staticId(), SessionPrx.class, SessionPrxHelper.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 SessionPrx uncheckedCast(Ice.ObjectPrx obj)
    {
        return uncheckedCastImpl(obj, SessionPrx.class, SessionPrxHelper.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 SessionPrx uncheckedCast(Ice.ObjectPrx obj, String facet)
    {
        return uncheckedCastImpl(obj, facet, SessionPrx.class, SessionPrxHelper.class);
    }

    private static final String[] _ids =
    {
        "::Glacier2::Session",
        "::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, SessionPrx v)
    {
        ostr.writeProxy(v);
    }

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

    public static final long serialVersionUID = 0L;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy