01: /*
02: * JBoss, Home of Professional Open Source.
03: * Copyright 2006, Red Hat Middleware LLC, and individual contributors
04: * as indicated by the @author tags. See the copyright.txt file in the
05: * distribution for a full listing of individual contributors.
06: *
07: * This is free software; you can redistribute it and/or modify it
08: * under the terms of the GNU Lesser General Public License as
09: * published by the Free Software Foundation; either version 2.1 of
10: * the License, or (at your option) any later version.
11: *
12: * This software is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: *
17: * You should have received a copy of the GNU Lesser General Public
18: * License along with this software; if not, write to the Free
19: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21: */
22: package org.jboss.test.iiop.interfaces;
23:
24: /**
25: * org/jboss/test/iiop/interfaces/_IdlInterfaceStub.java .
26: * Generated by the IDL-to-Java compiler (portable), version "3.1"
27: * from IdlInterface.idl
28: * Tuesday, October 21, 2003 3:27:10 PM BRST
29: */
30:
31: public class _IdlInterfaceStub extends
32: org.omg.CORBA.portable.ObjectImpl implements
33: org.jboss.test.iiop.interfaces.IdlInterface {
34:
35: public String echo(String s) {
36: org.omg.CORBA.portable.InputStream $in = null;
37: try {
38: org.omg.CORBA.portable.OutputStream $out = _request("echo",
39: true);
40: $out.write_string(s);
41: $in = _invoke($out);
42: String $result = $in.read_string();
43: return $result;
44: } catch (org.omg.CORBA.portable.ApplicationException $ex) {
45: $in = $ex.getInputStream();
46: String _id = $ex.getId();
47: throw new org.omg.CORBA.MARSHAL(_id);
48: } catch (org.omg.CORBA.portable.RemarshalException $rm) {
49: return echo(s);
50: } finally {
51: _releaseReply($in);
52: }
53: } // echo
54:
55: // Type-specific CORBA::Object operations
56: private static String[] __ids = { "IDL:org/jboss/test/iiop/interfaces/IdlInterface:1.0" };
57:
58: public String[] _ids() {
59: return (String[]) __ids.clone();
60: }
61:
62: private void readObject(java.io.ObjectInputStream s)
63: throws java.io.IOException {
64: String str = s.readUTF();
65: String[] args = null;
66: java.util.Properties props = null;
67: org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init(args, props)
68: .string_to_object(str);
69: org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)
70: ._get_delegate();
71: _set_delegate(delegate);
72: }
73:
74: private void writeObject(java.io.ObjectOutputStream s)
75: throws java.io.IOException {
76: String[] args = null;
77: java.util.Properties props = null;
78: String str = org.omg.CORBA.ORB.init(args, props)
79: .object_to_string(this );
80: s.writeUTF(str);
81: }
82: } // class _IdlInterfaceStub
|