ICE 3.4.2
[php5-ice-freebsdport.git] / java / src / Ice / Callback_Object_ice_invoke.java
blobdabee41c09c016e9016409ee02dd0daf5c061ef4
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
10 package Ice;
12 /**
13 * Callback object for {@link ObjectPrx#.begin_ice_invoke}.
14 **/
15 public abstract class Callback_Object_ice_invoke extends TwowayCallback
17 /**
18 * The Ice run time calls <code>response</code> when an asynchronous operation invocation
19 * completes successfully or raises a user exception.
21 * @param __ret Indicates the result of the invocation. If <code>true</code>, the operation
22 * completed succesfully; if <code>false</code>, the operation raised a user exception.
23 * @param outParams Contains the encoded out-parameters of the operation (if any) if <code>ok</code>
24 * is <code>true</code>; otherwise, if <code>ok</code> is <code>false</code>, contains the
25 * encoded user exception raised by the operation.
26 **/
27 public abstract void response(boolean __ret, byte[] outParams);
29 public final void __completed(AsyncResult __result)
31 ByteSeqHolder outParams = new ByteSeqHolder();
32 boolean __ret = false;
33 try
35 __ret = __result.getProxy().end_ice_invoke(outParams, __result);
37 catch(LocalException __ex)
39 exception(__ex);
40 return;
42 response(__ret, outParams.value);