1 // Tags: not-a-test |
|
2 // Uses: cmInfoHolder _GreetingsStub |
|
3 |
|
4 /* |
|
5 * This file is part of the CORBA 2_3 tests, the test executable |
|
6 * class being gnu.testlet.org.omg.CORBA_2_3.ORB.ValueTypeTest. |
|
7 * Due large number of the required classes, they are moved into |
|
8 * a separate package, Valuetype. |
|
9 * |
|
10 * @author Audrius Meskauskas (AudriusA@bluewin.ch) |
|
11 */ |
|
12 package gnu.testlet.org.omg.CORBA_2_3.ORB.Valtype; |
|
13 |
|
14 import org.omg.CORBA.portable.InputStream; |
|
15 import org.omg.CORBA.portable.InvokeHandler; |
|
16 import org.omg.CORBA.portable.ObjectImpl; |
|
17 import org.omg.CORBA.portable.OutputStream; |
|
18 import org.omg.CORBA.portable.ResponseHandler; |
|
19 |
|
20 public abstract class _GreetingsImplBase |
|
21 extends ObjectImpl |
|
22 implements Greetings, InvokeHandler |
|
23 { |
|
24 public _GreetingsImplBase() |
|
25 { |
|
26 } |
|
27 |
|
28 /** |
|
29 * As there is only one method supported, we can use the simplified |
|
30 * layout without switch between methods. |
|
31 */ |
|
32 public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) |
|
33 { |
|
34 cmInfoHolder w1 = new cmInfoHolder(); |
|
35 w1.value = cmInfoHelper.read(in); |
|
36 |
|
37 InfoHolder w2 = new InfoHolder(); |
|
38 w2.value = InfoHelper.read(in); |
|
39 |
|
40 this.hello(w1, w2); |
|
41 |
|
42 OutputStream out = rh.createReply(); |
|
43 |
|
44 cmInfoHelper.write(out, w1.value); |
|
45 InfoHelper.write(out, w2.value); |
|
46 |
|
47 return out; |
|
48 } |
|
49 |
|
50 public String[] _ids() |
|
51 { |
|
52 return _GreetingsStub.__ids; |
|
53 } |
|
54 } |
|