1 package FIPA;
2
3
4 /***
5 * FIPA/_MTSStub.java
6 * Generated by the IDL-to-Java compiler (portable), version "3.0"
7 * from FIPA.idl
8 * 09 March 2001 16:39:32 o'clock GMT
9 */
10
11 public class _MTSStub extends org.omg.CORBA.portable.ObjectImpl implements FIPA.MTS
12 {
13
14
15
16
17 public _MTSStub ()
18 {
19 super ();
20 }
21
22 public _MTSStub (org.omg.CORBA.portable.Delegate delegate)
23 {
24 super ();
25 _set_delegate (delegate);
26 }
27
28 public void message (FIPA.FipaMessage aFipaMessage)
29 {
30 org.omg.CORBA.portable.InputStream _in = null;
31 try {
32 org.omg.CORBA.portable.OutputStream _out = _request ("message", false);
33 FIPA.FipaMessageHelper.write (_out, aFipaMessage);
34 _in = _invoke (_out);
35 } catch (org.omg.CORBA.portable.ApplicationException _ex) {
36 _in = _ex.getInputStream ();
37 String _id = _ex.getId ();
38 throw new org.omg.CORBA.MARSHAL (_id);
39 } catch (org.omg.CORBA.portable.RemarshalException _rm) {
40 message (aFipaMessage);
41 } finally {
42 _releaseReply (_in);
43 }
44 }
45
46
47 private static String[] __ids = {
48 "IDL:FIPA/MTS:1.0"};
49
50 public String[] _ids ()
51 {
52 return (String[])__ids.clone ();
53 }
54
55 private void readObject (java.io.ObjectInputStream s)
56 {
57 try
58 {
59 String str = s.readUTF ();
60 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init ().string_to_object (str);
61 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
62 _set_delegate (delegate);
63 } catch (java.io.IOException e) {}
64 }
65
66 private void writeObject (java.io.ObjectOutputStream s)
67 {
68 try
69 {
70 String str = org.omg.CORBA.ORB.init ().object_to_string (this);
71 s.writeUTF (str);
72 } catch (java.io.IOException e) {}
73 }
74 }