org.omg.SendingContext.CodeBasePOA Maven / Gradle / Ivy
package org.omg.SendingContext;
/**
* org/omg/SendingContext/CodeBasePOA.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from /home/jenkins/agent/workspace/orb-release-build/omgapi/src/main/idl/SendingContext.idl
* Sunday, February 14, 2021 7:42:42 PM GMT
*/
// services in the future
public abstract class CodeBasePOA extends org.omg.PortableServer.Servant
implements org.omg.SendingContext.CodeBaseOperations, org.omg.CORBA.portable.InvokeHandler
{
// Constructors
private static java.util.Hashtable _methods = new java.util.Hashtable ();
static
{
_methods.put ("get_ir", new java.lang.Integer (0));
_methods.put ("implementation", new java.lang.Integer (1));
_methods.put ("implementationx", new java.lang.Integer (2));
_methods.put ("implementations", new java.lang.Integer (3));
_methods.put ("meta", new java.lang.Integer (4));
_methods.put ("metas", new java.lang.Integer (5));
_methods.put ("bases", new java.lang.Integer (6));
}
public org.omg.CORBA.portable.OutputStream _invoke (String $method,
org.omg.CORBA.portable.InputStream in,
org.omg.CORBA.portable.ResponseHandler $rh)
{
org.omg.CORBA.portable.OutputStream out = null;
java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
if (__method == null)
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
switch (__method.intValue ())
{
// Operation to obtain the IR from the sending context
case 0: // SendingContext/CodeBase/get_ir
{
org.omg.CORBA.Repository $result = null;
$result = this.get_ir ();
out = $rh.createReply();
org.omg.CORBA.RepositoryHelper.write (out, $result);
break;
}
// Operations to obtain a location of the implementation code
case 1: // SendingContext/CodeBase/implementation
{
String x = org.omg.CORBA.RepositoryIdHelper.read (in);
String $result = null;
$result = this.implementation (x);
out = $rh.createReply();
out.write_string ($result);
break;
}
case 2: // SendingContext/CodeBase/implementationx
{
String x = org.omg.CORBA.RepositoryIdHelper.read (in);
String $result = null;
$result = this.implementationx (x);
out = $rh.createReply();
out.write_string ($result);
break;
}
case 3: // SendingContext/CodeBase/implementations
{
String x[] = org.omg.CORBA.RepositoryIdSeqHelper.read (in);
String $result[] = null;
$result = this.implementations (x);
out = $rh.createReply();
org.omg.SendingContext.CodeBasePackage.URLSeqHelper.write (out, $result);
break;
}
// the same information
case 4: // SendingContext/CodeBase/meta
{
String x = org.omg.CORBA.RepositoryIdHelper.read (in);
org.omg.CORBA.ValueDefPackage.FullValueDescription $result = null;
$result = this.meta (x);
out = $rh.createReply();
org.omg.CORBA.ValueDefPackage.FullValueDescriptionHelper.write (out, $result);
break;
}
case 5: // SendingContext/CodeBase/metas
{
String x[] = org.omg.CORBA.RepositoryIdSeqHelper.read (in);
org.omg.CORBA.ValueDefPackage.FullValueDescription $result[] = null;
$result = this.metas (x);
out = $rh.createReply();
org.omg.SendingContext.CodeBasePackage.ValueDescSeqHelper.write (out, $result);
break;
}
// information
case 6: // SendingContext/CodeBase/bases
{
String x = org.omg.CORBA.RepositoryIdHelper.read (in);
String $result[] = null;
$result = this.bases (x);
out = $rh.createReply();
org.omg.CORBA.RepositoryIdSeqHelper.write (out, $result);
break;
}
default:
throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
}
return out;
} // _invoke
// Type-specific CORBA::Object operations
private static String[] __ids = {
"IDL:omg.org/SendingContext/CodeBase:1.0",
"IDL:omg.org/SendingContext/RunTime:1.0"};
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
{
return (String[])__ids.clone ();
}
public CodeBase _this()
{
return CodeBaseHelper.narrow(
super._this_object());
}
public CodeBase _this(org.omg.CORBA.ORB orb)
{
return CodeBaseHelper.narrow(
super._this_object(orb));
}
} // class CodeBasePOA