0N/A/*
352N/A * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
157N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
157N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
157N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
157N/A * or visit www.oracle.com if you need additional information or have any
157N/A * questions.
0N/A */
0N/Apackage com.sun.org.omg.SendingContext;
0N/A
0N/A
0N/A/**
0N/A* com/sun/org/omg/SendingContext/_CodeBaseImplBase.java
0N/A* Generated by the IDL-to-Java compiler (portable), version "3.0"
0N/A* from rt.idl
0N/A* Thursday, May 6, 1999 1:52:08 AM PDT
0N/A*/
0N/A
0N/Apublic abstract class _CodeBaseImplBase extends org.omg.CORBA.portable.ObjectImpl
0N/A implements com.sun.org.omg.SendingContext.CodeBase, org.omg.CORBA.portable.InvokeHandler
0N/A{
0N/A
0N/A // Constructors
0N/A public _CodeBaseImplBase ()
0N/A {
0N/A }
0N/A
0N/A private static java.util.Hashtable _methods = new java.util.Hashtable ();
0N/A static
0N/A {
0N/A _methods.put ("get_ir", new java.lang.Integer (0));
0N/A _methods.put ("implementation", new java.lang.Integer (1));
0N/A _methods.put ("implementations", new java.lang.Integer (2));
0N/A _methods.put ("meta", new java.lang.Integer (3));
0N/A _methods.put ("metas", new java.lang.Integer (4));
0N/A _methods.put ("bases", new java.lang.Integer (5));
0N/A }
0N/A
0N/A public org.omg.CORBA.portable.OutputStream _invoke (String method,
0N/A org.omg.CORBA.portable.InputStream in,
0N/A org.omg.CORBA.portable.ResponseHandler rh)
0N/A {
0N/A org.omg.CORBA.portable.OutputStream out = rh.createReply();
0N/A java.lang.Integer __method = (java.lang.Integer)_methods.get (method);
0N/A if (__method == null)
0N/A throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
0N/A
0N/A switch (__method.intValue ())
0N/A {
0N/A
0N/A // Operation to obtain the IR from the sending context
0N/A case 0: // SendingContext/CodeBase/get_ir
0N/A {
0N/A com.sun.org.omg.CORBA.Repository __result = null;
0N/A __result = this.get_ir ();
0N/A com.sun.org.omg.CORBA.RepositoryHelper.write (out, __result);
0N/A break;
0N/A }
0N/A
0N/A
0N/A // Operations to obtain a URL to the implementation code
0N/A case 1: // SendingContext/CodeBase/implementation
0N/A {
0N/A String x = com.sun.org.omg.CORBA.RepositoryIdHelper.read (in);
0N/A String __result = null;
0N/A __result = this.implementation (x);
0N/A out.write_string (__result);
0N/A break;
0N/A }
0N/A
0N/A case 2: // SendingContext/CodeBase/implementations
0N/A {
0N/A String x[] = com.sun.org.omg.CORBA.RepositoryIdSeqHelper.read (in);
0N/A String __result[] = null;
0N/A __result = this.implementations (x);
0N/A com.sun.org.omg.SendingContext.CodeBasePackage.URLSeqHelper.write (out, __result);
0N/A break;
0N/A }
0N/A
0N/A
0N/A // the same information
0N/A case 3: // SendingContext/CodeBase/meta
0N/A {
0N/A String x = com.sun.org.omg.CORBA.RepositoryIdHelper.read (in);
0N/A com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription __result = null;
0N/A __result = this.meta (x);
0N/A com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper.write (out, __result);
0N/A break;
0N/A }
0N/A
0N/A case 4: // SendingContext/CodeBase/metas
0N/A {
0N/A String x[] = com.sun.org.omg.CORBA.RepositoryIdSeqHelper.read (in);
0N/A com.sun.org.omg.CORBA.ValueDefPackage.FullValueDescription __result[] = null;
0N/A __result = this.metas (x);
0N/A com.sun.org.omg.SendingContext.CodeBasePackage.ValueDescSeqHelper.write (out, __result);
0N/A break;
0N/A }
0N/A
0N/A
0N/A // information
0N/A case 5: // SendingContext/CodeBase/bases
0N/A {
0N/A String x = com.sun.org.omg.CORBA.RepositoryIdHelper.read (in);
0N/A String __result[] = null;
0N/A __result = this.bases (x);
0N/A com.sun.org.omg.CORBA.RepositoryIdSeqHelper.write (out, __result);
0N/A break;
0N/A }
0N/A
0N/A default:
0N/A throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
0N/A }
0N/A
0N/A return out;
0N/A } // _invoke
0N/A
0N/A // Type-specific CORBA::Object operations
0N/A private static String[] __ids = {
0N/A "IDL:omg.org/SendingContext/CodeBase:1.0",
0N/A "IDL:omg.org/SendingContext/RunTime:1.0"};
0N/A
0N/A public String[] _ids ()
0N/A {
352N/A return (String[])__ids.clone();
0N/A }
0N/A
0N/A
0N/A} // class _CodeBaseImplBase