feat(jdk8): move files to new folder to avoid resources compiled.
This commit is contained in:
28
jdkSrc/jdk8/org/omg/CosNaming/Binding.java
Normal file
28
jdkSrc/jdk8/org/omg/CosNaming/Binding.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/Binding.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class Binding implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public org.omg.CosNaming.NameComponent binding_name[] = null;
|
||||
|
||||
// name
|
||||
public org.omg.CosNaming.BindingType binding_type = null;
|
||||
|
||||
public Binding ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public Binding (org.omg.CosNaming.NameComponent[] _binding_name, org.omg.CosNaming.BindingType _binding_type)
|
||||
{
|
||||
binding_name = _binding_name;
|
||||
binding_type = _binding_type;
|
||||
} // ctor
|
||||
|
||||
} // class Binding
|
||||
84
jdkSrc/jdk8/org/omg/CosNaming/BindingHelper.java
Normal file
84
jdkSrc/jdk8/org/omg/CosNaming/BindingHelper.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class BindingHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/Binding:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.Binding that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.Binding extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CosNaming.NameComponentHelper.type ();
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NameHelper.id (), "Name", _tcOf_members0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"binding_name",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CosNaming.BindingTypeHelper.type ();
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"binding_type",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.CosNaming.BindingHelper.id (), "Binding", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.Binding read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.Binding value = new org.omg.CosNaming.Binding ();
|
||||
value.binding_name = org.omg.CosNaming.NameHelper.read (istream);
|
||||
value.binding_type = org.omg.CosNaming.BindingTypeHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.Binding value)
|
||||
{
|
||||
org.omg.CosNaming.NameHelper.write (ostream, value.binding_name);
|
||||
org.omg.CosNaming.BindingTypeHelper.write (ostream, value.binding_type);
|
||||
}
|
||||
|
||||
}
|
||||
38
jdkSrc/jdk8/org/omg/CosNaming/BindingHolder.java
Normal file
38
jdkSrc/jdk8/org/omg/CosNaming/BindingHolder.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class BindingHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.Binding value = null;
|
||||
|
||||
public BindingHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public BindingHolder (org.omg.CosNaming.Binding initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.BindingHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.BindingHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.BindingHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
22
jdkSrc/jdk8/org/omg/CosNaming/BindingIterator.java
Normal file
22
jdkSrc/jdk8/org/omg/CosNaming/BindingIterator.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingIterator.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The BindingIterator interface allows a client to iterate through
|
||||
* the bindings using the next_one or next_n operations.
|
||||
*
|
||||
* The bindings iterator is obtained by using the <tt>list</tt>
|
||||
* method on the <tt>NamingContext</tt>.
|
||||
* @see org.omg.CosNaming.NamingContext#list
|
||||
*/
|
||||
public interface BindingIterator extends BindingIteratorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface BindingIterator
|
||||
94
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorHelper.java
Normal file
94
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorHelper.java
Normal file
@@ -0,0 +1,94 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingIteratorHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The BindingIterator interface allows a client to iterate through
|
||||
* the bindings using the next_one or next_n operations.
|
||||
*
|
||||
* The bindings iterator is obtained by using the <tt>list</tt>
|
||||
* method on the <tt>NamingContext</tt>.
|
||||
* @see org.omg.CosNaming.NamingContext#list
|
||||
*/
|
||||
abstract public class BindingIteratorHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/BindingIterator:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.BindingIterator that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingIterator extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CosNaming.BindingIteratorHelper.id (), "BindingIterator");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingIterator read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_BindingIteratorStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.BindingIterator value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingIterator narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CosNaming.BindingIterator)
|
||||
return (org.omg.CosNaming.BindingIterator)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.CosNaming._BindingIteratorStub stub = new org.omg.CosNaming._BindingIteratorStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingIterator unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CosNaming.BindingIterator)
|
||||
return (org.omg.CosNaming.BindingIterator)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.CosNaming._BindingIteratorStub stub = new org.omg.CosNaming._BindingIteratorStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
47
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorHolder.java
Normal file
47
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorHolder.java
Normal file
@@ -0,0 +1,47 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingIteratorHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The BindingIterator interface allows a client to iterate through
|
||||
* the bindings using the next_one or next_n operations.
|
||||
*
|
||||
* The bindings iterator is obtained by using the <tt>list</tt>
|
||||
* method on the <tt>NamingContext</tt>.
|
||||
* @see org.omg.CosNaming.NamingContext#list
|
||||
*/
|
||||
public final class BindingIteratorHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.BindingIterator value = null;
|
||||
|
||||
public BindingIteratorHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public BindingIteratorHolder (org.omg.CosNaming.BindingIterator initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.BindingIteratorHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.BindingIteratorHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.BindingIteratorHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
44
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorOperations.java
Normal file
44
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorOperations.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingIteratorOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The BindingIterator interface allows a client to iterate through
|
||||
* the bindings using the next_one or next_n operations.
|
||||
*
|
||||
* The bindings iterator is obtained by using the <tt>list</tt>
|
||||
* method on the <tt>NamingContext</tt>.
|
||||
* @see org.omg.CosNaming.NamingContext#list
|
||||
*/
|
||||
public interface BindingIteratorOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* This operation returns the next binding. If there are no more
|
||||
* bindings, false is returned.
|
||||
*
|
||||
* @param b the returned binding
|
||||
*/
|
||||
boolean next_one (org.omg.CosNaming.BindingHolder b);
|
||||
|
||||
/**
|
||||
* This operation returns at most the requested number of bindings.
|
||||
*
|
||||
* @param how_many the maximum number of bindings tro return <p>
|
||||
*
|
||||
* @param bl the returned bindings
|
||||
*/
|
||||
boolean next_n (int how_many, org.omg.CosNaming.BindingListHolder bl);
|
||||
|
||||
/**
|
||||
* This operation destroys the iterator.
|
||||
*/
|
||||
void destroy ();
|
||||
} // interface BindingIteratorOperations
|
||||
123
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorPOA.java
Normal file
123
jdkSrc/jdk8/org/omg/CosNaming/BindingIteratorPOA.java
Normal file
@@ -0,0 +1,123 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingIteratorPOA.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The BindingIterator interface allows a client to iterate through
|
||||
* the bindings using the next_one or next_n operations.
|
||||
*
|
||||
* The bindings iterator is obtained by using the <tt>list</tt>
|
||||
* method on the <tt>NamingContext</tt>.
|
||||
* @see org.omg.CosNaming.NamingContext#list
|
||||
*/
|
||||
public abstract class BindingIteratorPOA extends org.omg.PortableServer.Servant
|
||||
implements org.omg.CosNaming.BindingIteratorOperations, org.omg.CORBA.portable.InvokeHandler
|
||||
{
|
||||
|
||||
// Constructors
|
||||
|
||||
private static java.util.Hashtable _methods = new java.util.Hashtable ();
|
||||
static
|
||||
{
|
||||
_methods.put ("next_one", new java.lang.Integer (0));
|
||||
_methods.put ("next_n", new java.lang.Integer (1));
|
||||
_methods.put ("destroy", new java.lang.Integer (2));
|
||||
}
|
||||
|
||||
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 ())
|
||||
{
|
||||
|
||||
/**
|
||||
* This operation returns the next binding. If there are no more
|
||||
* bindings, false is returned.
|
||||
*
|
||||
* @param b the returned binding
|
||||
*/
|
||||
case 0: // CosNaming/BindingIterator/next_one
|
||||
{
|
||||
org.omg.CosNaming.BindingHolder b = new org.omg.CosNaming.BindingHolder ();
|
||||
boolean $result = false;
|
||||
$result = this.next_one (b);
|
||||
out = $rh.createReply();
|
||||
out.write_boolean ($result);
|
||||
org.omg.CosNaming.BindingHelper.write (out, b.value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns at most the requested number of bindings.
|
||||
*
|
||||
* @param how_many the maximum number of bindings tro return <p>
|
||||
*
|
||||
* @param bl the returned bindings
|
||||
*/
|
||||
case 1: // CosNaming/BindingIterator/next_n
|
||||
{
|
||||
int how_many = in.read_ulong ();
|
||||
org.omg.CosNaming.BindingListHolder bl = new org.omg.CosNaming.BindingListHolder ();
|
||||
boolean $result = false;
|
||||
$result = this.next_n (how_many, bl);
|
||||
out = $rh.createReply();
|
||||
out.write_boolean ($result);
|
||||
org.omg.CosNaming.BindingListHelper.write (out, bl.value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation destroys the iterator.
|
||||
*/
|
||||
case 2: // CosNaming/BindingIterator/destroy
|
||||
{
|
||||
this.destroy ();
|
||||
out = $rh.createReply();
|
||||
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/CosNaming/BindingIterator:1.0"};
|
||||
|
||||
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
public BindingIterator _this()
|
||||
{
|
||||
return BindingIteratorHelper.narrow(
|
||||
super._this_object());
|
||||
}
|
||||
|
||||
public BindingIterator _this(org.omg.CORBA.ORB orb)
|
||||
{
|
||||
return BindingIteratorHelper.narrow(
|
||||
super._this_object(orb));
|
||||
}
|
||||
|
||||
|
||||
} // class BindingIteratorPOA
|
||||
66
jdkSrc/jdk8/org/omg/CosNaming/BindingListHelper.java
Normal file
66
jdkSrc/jdk8/org/omg/CosNaming/BindingListHelper.java
Normal file
@@ -0,0 +1,66 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingListHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* List of Bindings.
|
||||
*/
|
||||
abstract public class BindingListHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/BindingList:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.Binding[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.Binding[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CosNaming.BindingHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.BindingListHelper.id (), "BindingList", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.Binding[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.Binding value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new org.omg.CosNaming.Binding[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = org.omg.CosNaming.BindingHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.Binding[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
org.omg.CosNaming.BindingHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
43
jdkSrc/jdk8/org/omg/CosNaming/BindingListHolder.java
Normal file
43
jdkSrc/jdk8/org/omg/CosNaming/BindingListHolder.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingListHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* List of Bindings.
|
||||
*/
|
||||
public final class BindingListHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.Binding value[] = null;
|
||||
|
||||
public BindingListHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public BindingListHolder (org.omg.CosNaming.Binding[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.BindingListHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.BindingListHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.BindingListHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
45
jdkSrc/jdk8/org/omg/CosNaming/BindingType.java
Normal file
45
jdkSrc/jdk8/org/omg/CosNaming/BindingType.java
Normal file
@@ -0,0 +1,45 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingType.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Specifies whether the given binding is for a object (that is not a
|
||||
* naming context) or for a naming context.
|
||||
*/
|
||||
public class BindingType implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
private int __value;
|
||||
private static int __size = 2;
|
||||
private static org.omg.CosNaming.BindingType[] __array = new org.omg.CosNaming.BindingType [__size];
|
||||
|
||||
public static final int _nobject = 0;
|
||||
public static final org.omg.CosNaming.BindingType nobject = new org.omg.CosNaming.BindingType(_nobject);
|
||||
public static final int _ncontext = 1;
|
||||
public static final org.omg.CosNaming.BindingType ncontext = new org.omg.CosNaming.BindingType(_ncontext);
|
||||
|
||||
public int value ()
|
||||
{
|
||||
return __value;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingType from_int (int value)
|
||||
{
|
||||
if (value >= 0 && value < __size)
|
||||
return __array[value];
|
||||
else
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
}
|
||||
|
||||
protected BindingType (int value)
|
||||
{
|
||||
__value = value;
|
||||
__array[__value] = this;
|
||||
}
|
||||
} // class BindingType
|
||||
58
jdkSrc/jdk8/org/omg/CosNaming/BindingTypeHelper.java
Normal file
58
jdkSrc/jdk8/org/omg/CosNaming/BindingTypeHelper.java
Normal file
@@ -0,0 +1,58 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingTypeHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Specifies whether the given binding is for a object (that is not a
|
||||
* naming context) or for a naming context.
|
||||
*/
|
||||
abstract public class BindingTypeHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/BindingType:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.BindingType that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingType extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CosNaming.BindingTypeHelper.id (), "BindingType", new String[] { "nobject", "ncontext"} );
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.BindingType read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return org.omg.CosNaming.BindingType.from_int (istream.read_long ());
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.BindingType value)
|
||||
{
|
||||
ostream.write_long (value.value ());
|
||||
}
|
||||
|
||||
}
|
||||
43
jdkSrc/jdk8/org/omg/CosNaming/BindingTypeHolder.java
Normal file
43
jdkSrc/jdk8/org/omg/CosNaming/BindingTypeHolder.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/BindingTypeHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Specifies whether the given binding is for a object (that is not a
|
||||
* naming context) or for a naming context.
|
||||
*/
|
||||
public final class BindingTypeHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.BindingType value = null;
|
||||
|
||||
public BindingTypeHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public BindingTypeHolder (org.omg.CosNaming.BindingType initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.BindingTypeHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.BindingTypeHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.BindingTypeHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
56
jdkSrc/jdk8/org/omg/CosNaming/IstringHelper.java
Normal file
56
jdkSrc/jdk8/org/omg/CosNaming/IstringHelper.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/IstringHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class IstringHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/Istring:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, String that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static String extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.IstringHelper.id (), "Istring", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static String read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
String value = null;
|
||||
value = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
|
||||
{
|
||||
ostream.write_string (value);
|
||||
}
|
||||
|
||||
}
|
||||
26
jdkSrc/jdk8/org/omg/CosNaming/NameComponent.java
Normal file
26
jdkSrc/jdk8/org/omg/CosNaming/NameComponent.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NameComponent.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NameComponent implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
public String id = null;
|
||||
public String kind = null;
|
||||
|
||||
public NameComponent ()
|
||||
{
|
||||
} // ctor
|
||||
|
||||
public NameComponent (String _id, String _kind)
|
||||
{
|
||||
id = _id;
|
||||
kind = _kind;
|
||||
} // ctor
|
||||
|
||||
} // class NameComponent
|
||||
84
jdkSrc/jdk8/org/omg/CosNaming/NameComponentHelper.java
Normal file
84
jdkSrc/jdk8/org/omg/CosNaming/NameComponentHelper.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NameComponentHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NameComponentHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NameComponent:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NameComponent that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NameComponent extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.IstringHelper.id (), "Istring", _tcOf_members0);
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"id",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.IstringHelper.id (), "Istring", _tcOf_members0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"kind",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.CosNaming.NameComponentHelper.id (), "NameComponent", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NameComponent read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NameComponent value = new org.omg.CosNaming.NameComponent ();
|
||||
value.id = istream.read_string ();
|
||||
value.kind = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NameComponent value)
|
||||
{
|
||||
ostream.write_string (value.id);
|
||||
ostream.write_string (value.kind);
|
||||
}
|
||||
|
||||
}
|
||||
38
jdkSrc/jdk8/org/omg/CosNaming/NameComponentHolder.java
Normal file
38
jdkSrc/jdk8/org/omg/CosNaming/NameComponentHolder.java
Normal file
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NameComponentHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NameComponentHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NameComponent value = null;
|
||||
|
||||
public NameComponentHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NameComponentHolder (org.omg.CosNaming.NameComponent initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NameComponentHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NameComponentHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NameComponentHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
66
jdkSrc/jdk8/org/omg/CosNaming/NameHelper.java
Normal file
66
jdkSrc/jdk8/org/omg/CosNaming/NameHelper.java
Normal file
@@ -0,0 +1,66 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NameHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A name is a sequence of name components.
|
||||
*/
|
||||
abstract public class NameHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/Name:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NameComponent[] that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NameComponent[] extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CosNaming.NameComponentHelper.type ();
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NameHelper.id (), "Name", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NameComponent[] read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NameComponent value[] = null;
|
||||
int _len0 = istream.read_long ();
|
||||
value = new org.omg.CosNaming.NameComponent[_len0];
|
||||
for (int _o1 = 0;_o1 < value.length; ++_o1)
|
||||
value[_o1] = org.omg.CosNaming.NameComponentHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NameComponent[] value)
|
||||
{
|
||||
ostream.write_long (value.length);
|
||||
for (int _i0 = 0;_i0 < value.length; ++_i0)
|
||||
org.omg.CosNaming.NameComponentHelper.write (ostream, value[_i0]);
|
||||
}
|
||||
|
||||
}
|
||||
43
jdkSrc/jdk8/org/omg/CosNaming/NameHolder.java
Normal file
43
jdkSrc/jdk8/org/omg/CosNaming/NameHolder.java
Normal file
@@ -0,0 +1,43 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NameHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A name is a sequence of name components.
|
||||
*/
|
||||
public final class NameHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NameComponent value[] = null;
|
||||
|
||||
public NameHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NameHolder (org.omg.CosNaming.NameComponent[] initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NameHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NameHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NameHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
23
jdkSrc/jdk8/org/omg/CosNaming/NamingContext.java
Normal file
23
jdkSrc/jdk8/org/omg/CosNaming/NamingContext.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContext.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A naming context is an object that contains a set of name bindings in
|
||||
* which each name is unique. Different names can be bound to an object
|
||||
* in the same or different contexts at the same time. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public interface NamingContext extends NamingContextOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface NamingContext
|
||||
27
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExt.java
Normal file
27
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExt.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExt.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
|
||||
* which
|
||||
* contains a set of name bindings in which each name is unique and is
|
||||
* part of Interoperable Naming Service.
|
||||
* Different names can be bound to an object in the same or different
|
||||
* contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
|
||||
* URL-based names to bind and resolve. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public interface NamingContextExt extends NamingContextExtOperations, org.omg.CosNaming.NamingContext, org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
} // interface NamingContextExt
|
||||
99
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExtHelper.java
Normal file
99
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExtHelper.java
Normal file
@@ -0,0 +1,99 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
|
||||
* which
|
||||
* contains a set of name bindings in which each name is unique and is
|
||||
* part of Interoperable Naming Service.
|
||||
* Different names can be bound to an object in the same or different
|
||||
* contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
|
||||
* URL-based names to bind and resolve. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
abstract public class NamingContextExtHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContextExt:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextExt that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextExt extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CosNaming.NamingContextExtHelper.id (), "NamingContextExt");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextExt read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_NamingContextExtStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextExt value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextExt narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CosNaming.NamingContextExt)
|
||||
return (org.omg.CosNaming.NamingContextExt)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.CosNaming._NamingContextExtStub stub = new org.omg.CosNaming._NamingContextExtStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextExt unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CosNaming.NamingContextExt)
|
||||
return (org.omg.CosNaming.NamingContextExt)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.CosNaming._NamingContextExtStub stub = new org.omg.CosNaming._NamingContextExtStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
52
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExtHolder.java
Normal file
52
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExtHolder.java
Normal file
@@ -0,0 +1,52 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
|
||||
* which
|
||||
* contains a set of name bindings in which each name is unique and is
|
||||
* part of Interoperable Naming Service.
|
||||
* Different names can be bound to an object in the same or different
|
||||
* contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
|
||||
* URL-based names to bind and resolve. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public final class NamingContextExtHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextExt value = null;
|
||||
|
||||
public NamingContextExtHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NamingContextExtHolder (org.omg.CosNaming.NamingContextExt initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextExtHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextExtHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextExtHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
|
||||
* which
|
||||
* contains a set of name bindings in which each name is unique and is
|
||||
* part of Interoperable Naming Service.
|
||||
* Different names can be bound to an object in the same or different
|
||||
* contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
|
||||
* URL-based names to bind and resolve. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public interface NamingContextExtOperations extends org.omg.CosNaming.NamingContextOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* This operation creates a stringified name from the array of Name
|
||||
* components.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
String to_string (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* This operation converts a Stringified Name into an equivalent array
|
||||
* of Name Components.
|
||||
*
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
org.omg.CosNaming.NameComponent[] to_name (String sn) throws org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* This operation creates a URL based "iiopname://" format name
|
||||
* from the Stringified Name of the object.
|
||||
*
|
||||
* @param addr internet based address of the host machine where Name Service is running <p>
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
|
||||
* Indicates the internet based address of the host machine is
|
||||
* incorrect <p>
|
||||
*
|
||||
*/
|
||||
String to_url (String addr, String sn) throws org.omg.CosNaming.NamingContextExtPackage.InvalidAddress, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* This operation resolves the Stringified name into the object
|
||||
* reference.
|
||||
*
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound
|
||||
* Indicates there is no object reference for the given name. <p>
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the given compound name is incorrect <p>
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
org.omg.CORBA.Object resolve_str (String sn) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
} // interface NamingContextExtOperations
|
||||
567
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExtPOA.java
Normal file
567
jdkSrc/jdk8/org/omg/CosNaming/NamingContextExtPOA.java
Normal file
@@ -0,0 +1,567 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPOA.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
|
||||
* which
|
||||
* contains a set of name bindings in which each name is unique and is
|
||||
* part of Interoperable Naming Service.
|
||||
* Different names can be bound to an object in the same or different
|
||||
* contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
|
||||
* URL-based names to bind and resolve. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public abstract class NamingContextExtPOA extends org.omg.PortableServer.Servant
|
||||
implements org.omg.CosNaming.NamingContextExtOperations, org.omg.CORBA.portable.InvokeHandler
|
||||
{
|
||||
|
||||
// Constructors
|
||||
|
||||
private static java.util.Hashtable _methods = new java.util.Hashtable ();
|
||||
static
|
||||
{
|
||||
_methods.put ("to_string", new java.lang.Integer (0));
|
||||
_methods.put ("to_name", new java.lang.Integer (1));
|
||||
_methods.put ("to_url", new java.lang.Integer (2));
|
||||
_methods.put ("resolve_str", new java.lang.Integer (3));
|
||||
_methods.put ("bind", new java.lang.Integer (4));
|
||||
_methods.put ("bind_context", new java.lang.Integer (5));
|
||||
_methods.put ("rebind", new java.lang.Integer (6));
|
||||
_methods.put ("rebind_context", new java.lang.Integer (7));
|
||||
_methods.put ("resolve", new java.lang.Integer (8));
|
||||
_methods.put ("unbind", new java.lang.Integer (9));
|
||||
_methods.put ("list", new java.lang.Integer (10));
|
||||
_methods.put ("new_context", new java.lang.Integer (11));
|
||||
_methods.put ("bind_new_context", new java.lang.Integer (12));
|
||||
_methods.put ("destroy", new java.lang.Integer (13));
|
||||
}
|
||||
|
||||
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 ())
|
||||
{
|
||||
|
||||
/**
|
||||
* This operation creates a stringified name from the array of Name
|
||||
* components.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
case 0: // CosNaming/NamingContextExt/to_string
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
String $result = null;
|
||||
$result = this.to_string (n);
|
||||
out = $rh.createReply();
|
||||
out.write_string ($result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation converts a Stringified Name into an equivalent array
|
||||
* of Name Components.
|
||||
*
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
case 1: // CosNaming/NamingContextExt/to_name
|
||||
{
|
||||
try {
|
||||
String sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
|
||||
org.omg.CosNaming.NameComponent $result[] = null;
|
||||
$result = this.to_name (sn);
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.NameHelper.write (out, $result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a URL based "iiopname://" format name
|
||||
* from the Stringified Name of the object.
|
||||
*
|
||||
* @param addr internet based address of the host machine where Name Service is running <p>
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
|
||||
* Indicates the internet based address of the host machine is
|
||||
* incorrect <p>
|
||||
*
|
||||
*/
|
||||
case 2: // CosNaming/NamingContextExt/to_url
|
||||
{
|
||||
try {
|
||||
String addr = org.omg.CosNaming.NamingContextExtPackage.AddressHelper.read (in);
|
||||
String sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
|
||||
String $result = null;
|
||||
$result = this.to_url (addr, sn);
|
||||
out = $rh.createReply();
|
||||
out.write_string ($result);
|
||||
} catch (org.omg.CosNaming.NamingContextExtPackage.InvalidAddress $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation resolves the Stringified name into the object
|
||||
* reference.
|
||||
*
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound
|
||||
* Indicates there is no object reference for the given name. <p>
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the given compound name is incorrect <p>
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
case 3: // CosNaming/NamingContextExt/resolve_str
|
||||
{
|
||||
try {
|
||||
String sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
|
||||
org.omg.CORBA.Object $result = null;
|
||||
$result = this.resolve_str (sn);
|
||||
out = $rh.createReply();
|
||||
org.omg.CORBA.ObjectHelper.write (out, $result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context.
|
||||
* Naming contexts that are bound using bind do not participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to bind with the given name<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
|
||||
* the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the implementation has given up for some reason.
|
||||
* The client, however, may be able to continue the operation
|
||||
* at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
* Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
* Indicates an object is already bound to the specified name.<p>
|
||||
*/
|
||||
case 4: // CosNaming/NamingContext/bind
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
|
||||
this.bind (n, obj);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Names an object that is a naming context. Naming contexts that
|
||||
* are bound using bind_context() participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to bind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*/
|
||||
case 5: // CosNaming/NamingContext/bind_context
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CosNaming.NamingContext nc = org.omg.CosNaming.NamingContextHelper.read (in);
|
||||
this.bind_context (n, nc);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context
|
||||
* even if the name is already bound in the context. Naming contexts
|
||||
* that are bound using rebind do not participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 6: // CosNaming/NamingContext/rebind
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
|
||||
this.rebind (n, obj);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and a naming context in the naming
|
||||
* context even if the name is already bound in the context. Naming
|
||||
* contexts that are bound using rebind_context() participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 7: // CosNaming/NamingContext/rebind_context
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CosNaming.NamingContext nc = org.omg.CosNaming.NamingContextHelper.read (in);
|
||||
this.rebind_context (n, nc);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The resolve operation is the process of retrieving an object
|
||||
* bound to a name in a given context. The given name must exactly
|
||||
* match the bound name. The naming service does not return the type
|
||||
* of the object. Clients are responsible for "narrowing" the object
|
||||
* to the appropriate type. That is, clients typically cast the returned
|
||||
* object from Object to a more specialized interface.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 8: // CosNaming/NamingContext/resolve
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CORBA.Object $result = null;
|
||||
$result = this.resolve (n);
|
||||
out = $rh.createReply();
|
||||
org.omg.CORBA.ObjectHelper.write (out, $result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The unbind operation removes a name binding from a context.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 9: // CosNaming/NamingContext/unbind
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
this.unbind (n);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The list operation allows a client to iterate through a set of
|
||||
* bindings in a naming context. <p>
|
||||
*
|
||||
* The list operation returns at most the requested number of
|
||||
* bindings in BindingList bl.
|
||||
* <ul>
|
||||
* <li>If the naming context contains additional
|
||||
* bindings, the list operation returns a BindingIterator with the
|
||||
* additional bindings.
|
||||
* <li>If the naming context does not contain additional
|
||||
* bindings, the binding iterator is a nil object reference.
|
||||
* </ul>
|
||||
*
|
||||
* @param how_many the maximum number of bindings to return <p>
|
||||
*
|
||||
* @param bl the returned list of bindings <p>
|
||||
*
|
||||
* @param bi the returned binding iterator <p>
|
||||
*/
|
||||
case 10: // CosNaming/NamingContext/list
|
||||
{
|
||||
int how_many = in.read_ulong ();
|
||||
org.omg.CosNaming.BindingListHolder bl = new org.omg.CosNaming.BindingListHolder ();
|
||||
org.omg.CosNaming.BindingIteratorHolder bi = new org.omg.CosNaming.BindingIteratorHolder ();
|
||||
this.list (how_many, bl, bi);
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.BindingListHelper.write (out, bl.value);
|
||||
org.omg.CosNaming.BindingIteratorHelper.write (out, bi.value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns a naming context implemented by the same
|
||||
* naming server as the context on which the operation was invoked.
|
||||
* The new context is not bound to any name.
|
||||
*/
|
||||
case 11: // CosNaming/NamingContext/new_context
|
||||
{
|
||||
org.omg.CosNaming.NamingContext $result = null;
|
||||
$result = this.new_context ();
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.NamingContextHelper.write (out, $result);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a new context and binds it to the name
|
||||
* supplied as an argument. The newly-created context is implemented
|
||||
* by the same naming server as the context in which it was bound (that
|
||||
* is, the naming server that implements the context denoted by the
|
||||
* name argument excluding the last component).
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 12: // CosNaming/NamingContext/bind_new_context
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CosNaming.NamingContext $result = null;
|
||||
$result = this.bind_new_context (n);
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.NamingContextHelper.write (out, $result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The destroy operation deletes a naming context. If the naming
|
||||
* context contains bindings, the NotEmpty exception is raised.
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
|
||||
*/
|
||||
case 13: // CosNaming/NamingContext/destroy
|
||||
{
|
||||
try {
|
||||
this.destroy ();
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotEmpty $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.write (out, $ex);
|
||||
}
|
||||
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/CosNaming/NamingContextExt:1.0",
|
||||
"IDL:omg.org/CosNaming/NamingContext:1.0"};
|
||||
|
||||
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
public NamingContextExt _this()
|
||||
{
|
||||
return NamingContextExtHelper.narrow(
|
||||
super._this_object());
|
||||
}
|
||||
|
||||
public NamingContextExt _this(org.omg.CORBA.ORB orb)
|
||||
{
|
||||
return NamingContextExtHelper.narrow(
|
||||
super._this_object(orb));
|
||||
}
|
||||
|
||||
|
||||
} // class NamingContextExtPOA
|
||||
@@ -0,0 +1,60 @@
|
||||
package org.omg.CosNaming.NamingContextExtPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPackage/AddressHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Address is the Host and Port information represented as a String.
|
||||
*/
|
||||
abstract public class AddressHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContextExt/Address:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, String that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static String extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NamingContextExtPackage.AddressHelper.id (), "Address", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static String read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
String value = null;
|
||||
value = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
|
||||
{
|
||||
ostream.write_string (value);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.CosNaming.NamingContextExtPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPackage/InvalidAddress.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class InvalidAddress extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public InvalidAddress ()
|
||||
{
|
||||
super(InvalidAddressHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public InvalidAddress (String $reason)
|
||||
{
|
||||
super(InvalidAddressHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class InvalidAddress
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.CosNaming.NamingContextExtPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPackage/InvalidAddressHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class InvalidAddressHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextExtPackage.InvalidAddress that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextExtPackage.InvalidAddress extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.id (), "InvalidAddress", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextExtPackage.InvalidAddress read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextExtPackage.InvalidAddress value = new org.omg.CosNaming.NamingContextExtPackage.InvalidAddress ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextExtPackage.InvalidAddress value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming.NamingContextExtPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPackage/InvalidAddressHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class InvalidAddressHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextExtPackage.InvalidAddress value = null;
|
||||
|
||||
public InvalidAddressHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public InvalidAddressHolder (org.omg.CosNaming.NamingContextExtPackage.InvalidAddress initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package org.omg.CosNaming.NamingContextExtPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPackage/StringNameHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* StringName is the Stringified Name, Array of Name Components
|
||||
* represented as a String.
|
||||
*/
|
||||
abstract public class StringNameHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContextExt/StringName:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, String that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static String extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.id (), "StringName", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static String read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
String value = null;
|
||||
value = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
|
||||
{
|
||||
ostream.write_string (value);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package org.omg.CosNaming.NamingContextExtPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextExtPackage/URLStringHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* URLString is the URL address (corbaloc: or corbaname:) represented as
|
||||
* a String.
|
||||
*/
|
||||
abstract public class URLStringHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContextExt/URLString:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, String that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static String extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_string_tc (0);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NamingContextExtPackage.URLStringHelper.id (), "URLString", __typeCode);
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static String read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
String value = null;
|
||||
value = istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, String value)
|
||||
{
|
||||
ostream.write_string (value);
|
||||
}
|
||||
|
||||
}
|
||||
95
jdkSrc/jdk8/org/omg/CosNaming/NamingContextHelper.java
Normal file
95
jdkSrc/jdk8/org/omg/CosNaming/NamingContextHelper.java
Normal file
@@ -0,0 +1,95 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A naming context is an object that contains a set of name bindings in
|
||||
* which each name is unique. Different names can be bound to an object
|
||||
* in the same or different contexts at the same time. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
abstract public class NamingContextHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContext that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContext extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (org.omg.CosNaming.NamingContextHelper.id (), "NamingContext");
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContext read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return narrow (istream.read_Object (_NamingContextStub.class));
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContext value)
|
||||
{
|
||||
ostream.write_Object ((org.omg.CORBA.Object) value);
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContext narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CosNaming.NamingContext)
|
||||
return (org.omg.CosNaming.NamingContext)obj;
|
||||
else if (!obj._is_a (id ()))
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.CosNaming._NamingContextStub stub = new org.omg.CosNaming._NamingContextStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContext unchecked_narrow (org.omg.CORBA.Object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
return null;
|
||||
else if (obj instanceof org.omg.CosNaming.NamingContext)
|
||||
return (org.omg.CosNaming.NamingContext)obj;
|
||||
else
|
||||
{
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
|
||||
org.omg.CosNaming._NamingContextStub stub = new org.omg.CosNaming._NamingContextStub ();
|
||||
stub._set_delegate(delegate);
|
||||
return stub;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
48
jdkSrc/jdk8/org/omg/CosNaming/NamingContextHolder.java
Normal file
48
jdkSrc/jdk8/org/omg/CosNaming/NamingContextHolder.java
Normal file
@@ -0,0 +1,48 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A naming context is an object that contains a set of name bindings in
|
||||
* which each name is unique. Different names can be bound to an object
|
||||
* in the same or different contexts at the same time. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public final class NamingContextHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContext value = null;
|
||||
|
||||
public NamingContextHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NamingContextHolder (org.omg.CosNaming.NamingContext initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
204
jdkSrc/jdk8/org/omg/CosNaming/NamingContextOperations.java
Normal file
204
jdkSrc/jdk8/org/omg/CosNaming/NamingContextOperations.java
Normal file
@@ -0,0 +1,204 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextOperations.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A naming context is an object that contains a set of name bindings in
|
||||
* which each name is unique. Different names can be bound to an object
|
||||
* in the same or different contexts at the same time. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public interface NamingContextOperations
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context.
|
||||
* Naming contexts that are bound using bind do not participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to bind with the given name<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
|
||||
* the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the implementation has given up for some reason.
|
||||
* The client, however, may be able to continue the operation
|
||||
* at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
* Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
* Indicates an object is already bound to the specified name.<p>
|
||||
*/
|
||||
void bind (org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound;
|
||||
|
||||
/**
|
||||
* Names an object that is a naming context. Naming contexts that
|
||||
* are bound using bind_context() participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to bind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*/
|
||||
void bind_context (org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound;
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context
|
||||
* even if the name is already bound in the context. Naming contexts
|
||||
* that are bound using rebind do not participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
void rebind (org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and a naming context in the naming
|
||||
* context even if the name is already bound in the context. Naming
|
||||
* contexts that are bound using rebind_context() participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
void rebind_context (org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* The resolve operation is the process of retrieving an object
|
||||
* bound to a name in a given context. The given name must exactly
|
||||
* match the bound name. The naming service does not return the type
|
||||
* of the object. Clients are responsible for "narrowing" the object
|
||||
* to the appropriate type. That is, clients typically cast the returned
|
||||
* object from Object to a more specialized interface.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
org.omg.CORBA.Object resolve (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* The unbind operation removes a name binding from a context.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
void unbind (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* The list operation allows a client to iterate through a set of
|
||||
* bindings in a naming context. <p>
|
||||
*
|
||||
* The list operation returns at most the requested number of
|
||||
* bindings in BindingList bl.
|
||||
* <ul>
|
||||
* <li>If the naming context contains additional
|
||||
* bindings, the list operation returns a BindingIterator with the
|
||||
* additional bindings.
|
||||
* <li>If the naming context does not contain additional
|
||||
* bindings, the binding iterator is a nil object reference.
|
||||
* </ul>
|
||||
*
|
||||
* @param how_many the maximum number of bindings to return <p>
|
||||
*
|
||||
* @param bl the returned list of bindings <p>
|
||||
*
|
||||
* @param bi the returned binding iterator <p>
|
||||
*/
|
||||
void list (int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi);
|
||||
|
||||
/**
|
||||
* This operation returns a naming context implemented by the same
|
||||
* naming server as the context on which the operation was invoked.
|
||||
* The new context is not bound to any name.
|
||||
*/
|
||||
org.omg.CosNaming.NamingContext new_context ();
|
||||
|
||||
/**
|
||||
* This operation creates a new context and binds it to the name
|
||||
* supplied as an argument. The newly-created context is implemented
|
||||
* by the same naming server as the context in which it was bound (that
|
||||
* is, the naming server that implements the context denoted by the
|
||||
* name argument excluding the last component).
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
org.omg.CosNaming.NamingContext bind_new_context (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.AlreadyBound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName;
|
||||
|
||||
/**
|
||||
* The destroy operation deletes a naming context. If the naming
|
||||
* context contains bindings, the NotEmpty exception is raised.
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
|
||||
*/
|
||||
void destroy () throws org.omg.CosNaming.NamingContextPackage.NotEmpty;
|
||||
} // interface NamingContextOperations
|
||||
436
jdkSrc/jdk8/org/omg/CosNaming/NamingContextPOA.java
Normal file
436
jdkSrc/jdk8/org/omg/CosNaming/NamingContextPOA.java
Normal file
@@ -0,0 +1,436 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPOA.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A naming context is an object that contains a set of name bindings in
|
||||
* which each name is unique. Different names can be bound to an object
|
||||
* in the same or different contexts at the same time. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public abstract class NamingContextPOA extends org.omg.PortableServer.Servant
|
||||
implements org.omg.CosNaming.NamingContextOperations, org.omg.CORBA.portable.InvokeHandler
|
||||
{
|
||||
|
||||
// Constructors
|
||||
|
||||
private static java.util.Hashtable _methods = new java.util.Hashtable ();
|
||||
static
|
||||
{
|
||||
_methods.put ("bind", new java.lang.Integer (0));
|
||||
_methods.put ("bind_context", new java.lang.Integer (1));
|
||||
_methods.put ("rebind", new java.lang.Integer (2));
|
||||
_methods.put ("rebind_context", new java.lang.Integer (3));
|
||||
_methods.put ("resolve", new java.lang.Integer (4));
|
||||
_methods.put ("unbind", new java.lang.Integer (5));
|
||||
_methods.put ("list", new java.lang.Integer (6));
|
||||
_methods.put ("new_context", new java.lang.Integer (7));
|
||||
_methods.put ("bind_new_context", new java.lang.Integer (8));
|
||||
_methods.put ("destroy", new java.lang.Integer (9));
|
||||
}
|
||||
|
||||
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 ())
|
||||
{
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context.
|
||||
* Naming contexts that are bound using bind do not participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to bind with the given name<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
|
||||
* the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the implementation has given up for some reason.
|
||||
* The client, however, may be able to continue the operation
|
||||
* at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
* Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
* Indicates an object is already bound to the specified name.<p>
|
||||
*/
|
||||
case 0: // CosNaming/NamingContext/bind
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
|
||||
this.bind (n, obj);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Names an object that is a naming context. Naming contexts that
|
||||
* are bound using bind_context() participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to bind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*/
|
||||
case 1: // CosNaming/NamingContext/bind_context
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CosNaming.NamingContext nc = org.omg.CosNaming.NamingContextHelper.read (in);
|
||||
this.bind_context (n, nc);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context
|
||||
* even if the name is already bound in the context. Naming contexts
|
||||
* that are bound using rebind do not participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 2: // CosNaming/NamingContext/rebind
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
|
||||
this.rebind (n, obj);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and a naming context in the naming
|
||||
* context even if the name is already bound in the context. Naming
|
||||
* contexts that are bound using rebind_context() participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 3: // CosNaming/NamingContext/rebind_context
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CosNaming.NamingContext nc = org.omg.CosNaming.NamingContextHelper.read (in);
|
||||
this.rebind_context (n, nc);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The resolve operation is the process of retrieving an object
|
||||
* bound to a name in a given context. The given name must exactly
|
||||
* match the bound name. The naming service does not return the type
|
||||
* of the object. Clients are responsible for "narrowing" the object
|
||||
* to the appropriate type. That is, clients typically cast the returned
|
||||
* object from Object to a more specialized interface.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 4: // CosNaming/NamingContext/resolve
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CORBA.Object $result = null;
|
||||
$result = this.resolve (n);
|
||||
out = $rh.createReply();
|
||||
org.omg.CORBA.ObjectHelper.write (out, $result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The unbind operation removes a name binding from a context.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 5: // CosNaming/NamingContext/unbind
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
this.unbind (n);
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The list operation allows a client to iterate through a set of
|
||||
* bindings in a naming context. <p>
|
||||
*
|
||||
* The list operation returns at most the requested number of
|
||||
* bindings in BindingList bl.
|
||||
* <ul>
|
||||
* <li>If the naming context contains additional
|
||||
* bindings, the list operation returns a BindingIterator with the
|
||||
* additional bindings.
|
||||
* <li>If the naming context does not contain additional
|
||||
* bindings, the binding iterator is a nil object reference.
|
||||
* </ul>
|
||||
*
|
||||
* @param how_many the maximum number of bindings to return <p>
|
||||
*
|
||||
* @param bl the returned list of bindings <p>
|
||||
*
|
||||
* @param bi the returned binding iterator <p>
|
||||
*/
|
||||
case 6: // CosNaming/NamingContext/list
|
||||
{
|
||||
int how_many = in.read_ulong ();
|
||||
org.omg.CosNaming.BindingListHolder bl = new org.omg.CosNaming.BindingListHolder ();
|
||||
org.omg.CosNaming.BindingIteratorHolder bi = new org.omg.CosNaming.BindingIteratorHolder ();
|
||||
this.list (how_many, bl, bi);
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.BindingListHelper.write (out, bl.value);
|
||||
org.omg.CosNaming.BindingIteratorHelper.write (out, bi.value);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns a naming context implemented by the same
|
||||
* naming server as the context on which the operation was invoked.
|
||||
* The new context is not bound to any name.
|
||||
*/
|
||||
case 7: // CosNaming/NamingContext/new_context
|
||||
{
|
||||
org.omg.CosNaming.NamingContext $result = null;
|
||||
$result = this.new_context ();
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.NamingContextHelper.write (out, $result);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a new context and binds it to the name
|
||||
* supplied as an argument. The newly-created context is implemented
|
||||
* by the same naming server as the context in which it was bound (that
|
||||
* is, the naming server that implements the context denoted by the
|
||||
* name argument excluding the last component).
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
case 8: // CosNaming/NamingContext/bind_new_context
|
||||
{
|
||||
try {
|
||||
org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
|
||||
org.omg.CosNaming.NamingContext $result = null;
|
||||
$result = this.bind_new_context (n);
|
||||
out = $rh.createReply();
|
||||
org.omg.CosNaming.NamingContextHelper.write (out, $result);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The destroy operation deletes a naming context. If the naming
|
||||
* context contains bindings, the NotEmpty exception is raised.
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
|
||||
*/
|
||||
case 9: // CosNaming/NamingContext/destroy
|
||||
{
|
||||
try {
|
||||
this.destroy ();
|
||||
out = $rh.createReply();
|
||||
} catch (org.omg.CosNaming.NamingContextPackage.NotEmpty $ex) {
|
||||
out = $rh.createExceptionReply ();
|
||||
org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.write (out, $ex);
|
||||
}
|
||||
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/CosNaming/NamingContext:1.0"};
|
||||
|
||||
public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
public NamingContext _this()
|
||||
{
|
||||
return NamingContextHelper.narrow(
|
||||
super._this_object());
|
||||
}
|
||||
|
||||
public NamingContext _this(org.omg.CORBA.ORB orb)
|
||||
{
|
||||
return NamingContextHelper.narrow(
|
||||
super._this_object(orb));
|
||||
}
|
||||
|
||||
|
||||
} // class NamingContextPOA
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/AlreadyBound.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class AlreadyBound extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public AlreadyBound ()
|
||||
{
|
||||
super(AlreadyBoundHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public AlreadyBound (String $reason)
|
||||
{
|
||||
super(AlreadyBoundHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class AlreadyBound
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/AlreadyBoundHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class AlreadyBoundHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.AlreadyBound that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.AlreadyBound extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.id (), "AlreadyBound", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.AlreadyBound read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBound value = new org.omg.CosNaming.NamingContextPackage.AlreadyBound ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.AlreadyBound value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/AlreadyBoundHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class AlreadyBoundHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.AlreadyBound value = null;
|
||||
|
||||
public AlreadyBoundHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public AlreadyBoundHolder (org.omg.CosNaming.NamingContextPackage.AlreadyBound initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/CannotProceed.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class CannotProceed extends org.omg.CORBA.UserException
|
||||
{
|
||||
public org.omg.CosNaming.NamingContext cxt = null;
|
||||
public org.omg.CosNaming.NameComponent rest_of_name[] = null;
|
||||
|
||||
public CannotProceed ()
|
||||
{
|
||||
super(CannotProceedHelper.id());
|
||||
} // ctor
|
||||
|
||||
public CannotProceed (org.omg.CosNaming.NamingContext _cxt, org.omg.CosNaming.NameComponent[] _rest_of_name)
|
||||
{
|
||||
super(CannotProceedHelper.id());
|
||||
cxt = _cxt;
|
||||
rest_of_name = _rest_of_name;
|
||||
} // ctor
|
||||
|
||||
|
||||
public CannotProceed (String $reason, org.omg.CosNaming.NamingContext _cxt, org.omg.CosNaming.NameComponent[] _rest_of_name)
|
||||
{
|
||||
super(CannotProceedHelper.id() + " " + $reason);
|
||||
cxt = _cxt;
|
||||
rest_of_name = _rest_of_name;
|
||||
} // ctor
|
||||
|
||||
} // class CannotProceed
|
||||
@@ -0,0 +1,88 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/CannotProceedHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class CannotProceedHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.CannotProceed that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.CannotProceed extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CosNaming.NamingContextHelper.type ();
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"cxt",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CosNaming.NameComponentHelper.type ();
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NameHelper.id (), "Name", _tcOf_members0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"rest_of_name",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.id (), "CannotProceed", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.CannotProceed read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceed value = new org.omg.CosNaming.NamingContextPackage.CannotProceed ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
value.cxt = org.omg.CosNaming.NamingContextHelper.read (istream);
|
||||
value.rest_of_name = org.omg.CosNaming.NameHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.CannotProceed value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
org.omg.CosNaming.NamingContextHelper.write (ostream, value.cxt);
|
||||
org.omg.CosNaming.NameHelper.write (ostream, value.rest_of_name);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/CannotProceedHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class CannotProceedHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.CannotProceed value = null;
|
||||
|
||||
public CannotProceedHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public CannotProceedHolder (org.omg.CosNaming.NamingContextPackage.CannotProceed initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/InvalidName.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class InvalidName extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public InvalidName ()
|
||||
{
|
||||
super(InvalidNameHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public InvalidName (String $reason)
|
||||
{
|
||||
super(InvalidNameHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class InvalidName
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/InvalidNameHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class InvalidNameHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.InvalidName that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.InvalidName extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.id (), "InvalidName", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.InvalidName read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidName value = new org.omg.CosNaming.NamingContextPackage.InvalidName ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.InvalidName value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/InvalidNameHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class InvalidNameHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.InvalidName value = null;
|
||||
|
||||
public InvalidNameHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public InvalidNameHolder (org.omg.CosNaming.NamingContextPackage.InvalidName initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotEmpty.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NotEmpty extends org.omg.CORBA.UserException
|
||||
{
|
||||
|
||||
public NotEmpty ()
|
||||
{
|
||||
super(NotEmptyHelper.id());
|
||||
} // ctor
|
||||
|
||||
|
||||
public NotEmpty (String $reason)
|
||||
{
|
||||
super(NotEmptyHelper.id() + " " + $reason);
|
||||
} // ctor
|
||||
|
||||
} // class NotEmpty
|
||||
@@ -0,0 +1,72 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotEmptyHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NotEmptyHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotEmpty that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotEmpty extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.id (), "NotEmpty", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotEmpty read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.NotEmpty value = new org.omg.CosNaming.NamingContextPackage.NotEmpty ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.NotEmpty value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotEmptyHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NotEmptyHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.NotEmpty value = null;
|
||||
|
||||
public NotEmptyHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NotEmptyHolder (org.omg.CosNaming.NamingContextPackage.NotEmpty initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotFound.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NotFound extends org.omg.CORBA.UserException
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.NotFoundReason why = null;
|
||||
public org.omg.CosNaming.NameComponent rest_of_name[] = null;
|
||||
|
||||
public NotFound ()
|
||||
{
|
||||
super(NotFoundHelper.id());
|
||||
} // ctor
|
||||
|
||||
public NotFound (org.omg.CosNaming.NamingContextPackage.NotFoundReason _why, org.omg.CosNaming.NameComponent[] _rest_of_name)
|
||||
{
|
||||
super(NotFoundHelper.id());
|
||||
why = _why;
|
||||
rest_of_name = _rest_of_name;
|
||||
} // ctor
|
||||
|
||||
|
||||
public NotFound (String $reason, org.omg.CosNaming.NamingContextPackage.NotFoundReason _why, org.omg.CosNaming.NameComponent[] _rest_of_name)
|
||||
{
|
||||
super(NotFoundHelper.id() + " " + $reason);
|
||||
why = _why;
|
||||
rest_of_name = _rest_of_name;
|
||||
} // ctor
|
||||
|
||||
} // class NotFound
|
||||
@@ -0,0 +1,88 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotFoundHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
abstract public class NotFoundHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext/NotFound:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotFound that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotFound extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
private static boolean __active = false;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
synchronized (org.omg.CORBA.TypeCode.class)
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
if (__active)
|
||||
{
|
||||
return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
|
||||
}
|
||||
__active = true;
|
||||
org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [2];
|
||||
org.omg.CORBA.TypeCode _tcOf_members0 = null;
|
||||
_tcOf_members0 = org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.type ();
|
||||
_members0[0] = new org.omg.CORBA.StructMember (
|
||||
"why",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
_tcOf_members0 = org.omg.CosNaming.NameComponentHelper.type ();
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0);
|
||||
_tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.CosNaming.NameHelper.id (), "Name", _tcOf_members0);
|
||||
_members0[1] = new org.omg.CORBA.StructMember (
|
||||
"rest_of_name",
|
||||
_tcOf_members0,
|
||||
null);
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_exception_tc (org.omg.CosNaming.NamingContextPackage.NotFoundHelper.id (), "NotFound", _members0);
|
||||
__active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotFound read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.NotFound value = new org.omg.CosNaming.NamingContextPackage.NotFound ();
|
||||
// read and discard the repository ID
|
||||
istream.read_string ();
|
||||
value.why = org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read (istream);
|
||||
value.rest_of_name = org.omg.CosNaming.NameHelper.read (istream);
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.NotFound value)
|
||||
{
|
||||
// write the repository ID
|
||||
ostream.write_string (id ());
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.write (ostream, value.why);
|
||||
org.omg.CosNaming.NameHelper.write (ostream, value.rest_of_name);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotFoundHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
public final class NotFoundHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.NotFound value = null;
|
||||
|
||||
public NotFoundHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NotFoundHolder (org.omg.CosNaming.NamingContextPackage.NotFound initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.NotFoundHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotFoundReason.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Indicates the reason for not able to resolve.
|
||||
*/
|
||||
public class NotFoundReason implements org.omg.CORBA.portable.IDLEntity
|
||||
{
|
||||
private int __value;
|
||||
private static int __size = 3;
|
||||
private static org.omg.CosNaming.NamingContextPackage.NotFoundReason[] __array = new org.omg.CosNaming.NamingContextPackage.NotFoundReason [__size];
|
||||
|
||||
public static final int _missing_node = 0;
|
||||
public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason missing_node = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_missing_node);
|
||||
public static final int _not_context = 1;
|
||||
public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_context = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_not_context);
|
||||
public static final int _not_object = 2;
|
||||
public static final org.omg.CosNaming.NamingContextPackage.NotFoundReason not_object = new org.omg.CosNaming.NamingContextPackage.NotFoundReason(_not_object);
|
||||
|
||||
public int value ()
|
||||
{
|
||||
return __value;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotFoundReason from_int (int value)
|
||||
{
|
||||
if (value >= 0 && value < __size)
|
||||
return __array[value];
|
||||
else
|
||||
throw new org.omg.CORBA.BAD_PARAM ();
|
||||
}
|
||||
|
||||
protected NotFoundReason (int value)
|
||||
{
|
||||
__value = value;
|
||||
__array[__value] = this;
|
||||
}
|
||||
} // class NotFoundReason
|
||||
@@ -0,0 +1,57 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotFoundReasonHelper.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Indicates the reason for not able to resolve.
|
||||
*/
|
||||
abstract public class NotFoundReasonHelper
|
||||
{
|
||||
private static String _id = "IDL:omg.org/CosNaming/NamingContext/NotFoundReason:1.0";
|
||||
|
||||
public static void insert (org.omg.CORBA.Any a, org.omg.CosNaming.NamingContextPackage.NotFoundReason that)
|
||||
{
|
||||
org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
|
||||
a.type (type ());
|
||||
write (out, that);
|
||||
a.read_value (out.create_input_stream (), type ());
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotFoundReason extract (org.omg.CORBA.Any a)
|
||||
{
|
||||
return read (a.create_input_stream ());
|
||||
}
|
||||
|
||||
private static org.omg.CORBA.TypeCode __typeCode = null;
|
||||
synchronized public static org.omg.CORBA.TypeCode type ()
|
||||
{
|
||||
if (__typeCode == null)
|
||||
{
|
||||
__typeCode = org.omg.CORBA.ORB.init ().create_enum_tc (org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.id (), "NotFoundReason", new String[] { "missing_node", "not_context", "not_object"} );
|
||||
}
|
||||
return __typeCode;
|
||||
}
|
||||
|
||||
public static String id ()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public static org.omg.CosNaming.NamingContextPackage.NotFoundReason read (org.omg.CORBA.portable.InputStream istream)
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.NotFoundReason.from_int (istream.read_long ());
|
||||
}
|
||||
|
||||
public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.CosNaming.NamingContextPackage.NotFoundReason value)
|
||||
{
|
||||
ostream.write_long (value.value ());
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package org.omg.CosNaming.NamingContextPackage;
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/NamingContextPackage/NotFoundReasonHolder.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Indicates the reason for not able to resolve.
|
||||
*/
|
||||
public final class NotFoundReasonHolder implements org.omg.CORBA.portable.Streamable
|
||||
{
|
||||
public org.omg.CosNaming.NamingContextPackage.NotFoundReason value = null;
|
||||
|
||||
public NotFoundReasonHolder ()
|
||||
{
|
||||
}
|
||||
|
||||
public NotFoundReasonHolder (org.omg.CosNaming.NamingContextPackage.NotFoundReason initialValue)
|
||||
{
|
||||
value = initialValue;
|
||||
}
|
||||
|
||||
public void _read (org.omg.CORBA.portable.InputStream i)
|
||||
{
|
||||
value = org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.read (i);
|
||||
}
|
||||
|
||||
public void _write (org.omg.CORBA.portable.OutputStream o)
|
||||
{
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.write (o, value);
|
||||
}
|
||||
|
||||
public org.omg.CORBA.TypeCode _type ()
|
||||
{
|
||||
return org.omg.CosNaming.NamingContextPackage.NotFoundReasonHelper.type ();
|
||||
}
|
||||
|
||||
}
|
||||
108
jdkSrc/jdk8/org/omg/CosNaming/_BindingIteratorImplBase.java
Normal file
108
jdkSrc/jdk8/org/omg/CosNaming/_BindingIteratorImplBase.java
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
* File: ./org/omg/CosNaming/_BindingIteratorImplBase.java
|
||||
* From: nameservice.idl
|
||||
* Date: Tue Aug 11 03:12:09 1998
|
||||
* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
|
||||
* @deprecated Deprecated in JDK 1.4.
|
||||
*/
|
||||
|
||||
package org.omg.CosNaming;
|
||||
public abstract class _BindingIteratorImplBase extends org.omg.CORBA.DynamicImplementation implements org.omg.CosNaming.BindingIterator {
|
||||
// Constructor
|
||||
public _BindingIteratorImplBase() {
|
||||
super();
|
||||
}
|
||||
// Type strings for this class and its superclases
|
||||
private static final String _type_ids[] = {
|
||||
"IDL:omg.org/CosNaming/BindingIterator:1.0"
|
||||
};
|
||||
|
||||
public String[] _ids() { return (String[]) _type_ids.clone(); }
|
||||
|
||||
private static java.util.Dictionary _methods = new java.util.Hashtable();
|
||||
static {
|
||||
_methods.put("next_one", new java.lang.Integer(0));
|
||||
_methods.put("next_n", new java.lang.Integer(1));
|
||||
_methods.put("destroy", new java.lang.Integer(2));
|
||||
}
|
||||
// DSI Dispatch call
|
||||
public void invoke(org.omg.CORBA.ServerRequest r) {
|
||||
switch (((java.lang.Integer) _methods.get(r.op_name())).intValue()) {
|
||||
case 0: // org.omg.CosNaming.BindingIterator.next_one
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _b = _orb().create_any();
|
||||
_b.type(org.omg.CosNaming.BindingHelper.type());
|
||||
_list.add_value("b", _b, org.omg.CORBA.ARG_OUT.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.BindingHolder b;
|
||||
b = new org.omg.CosNaming.BindingHolder();
|
||||
boolean ___result;
|
||||
___result = this.next_one(b);
|
||||
org.omg.CosNaming.BindingHelper.insert(_b, b.value);
|
||||
org.omg.CORBA.Any __result = _orb().create_any();
|
||||
__result.insert_boolean(___result);
|
||||
r.result(__result);
|
||||
}
|
||||
break;
|
||||
case 1: // org.omg.CosNaming.BindingIterator.next_n
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _how_many = _orb().create_any();
|
||||
_how_many.type(org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong));
|
||||
_list.add_value("how_many", _how_many, org.omg.CORBA.ARG_IN.value);
|
||||
org.omg.CORBA.Any _bl = _orb().create_any();
|
||||
_bl.type(org.omg.CosNaming.BindingListHelper.type());
|
||||
_list.add_value("bl", _bl, org.omg.CORBA.ARG_OUT.value);
|
||||
r.params(_list);
|
||||
int how_many;
|
||||
how_many = _how_many.extract_ulong();
|
||||
org.omg.CosNaming.BindingListHolder bl;
|
||||
bl = new org.omg.CosNaming.BindingListHolder();
|
||||
boolean ___result;
|
||||
___result = this.next_n(how_many, bl);
|
||||
org.omg.CosNaming.BindingListHelper.insert(_bl, bl.value);
|
||||
org.omg.CORBA.Any __result = _orb().create_any();
|
||||
__result.insert_boolean(___result);
|
||||
r.result(__result);
|
||||
}
|
||||
break;
|
||||
case 2: // org.omg.CosNaming.BindingIterator.destroy
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
r.params(_list);
|
||||
this.destroy();
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new org.omg.CORBA.BAD_OPERATION(0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
|
||||
}
|
||||
}
|
||||
}
|
||||
138
jdkSrc/jdk8/org/omg/CosNaming/_BindingIteratorStub.java
Normal file
138
jdkSrc/jdk8/org/omg/CosNaming/_BindingIteratorStub.java
Normal file
@@ -0,0 +1,138 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/_BindingIteratorStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* The BindingIterator interface allows a client to iterate through
|
||||
* the bindings using the next_one or next_n operations.
|
||||
*
|
||||
* The bindings iterator is obtained by using the <tt>list</tt>
|
||||
* method on the <tt>NamingContext</tt>.
|
||||
* @see org.omg.CosNaming.NamingContext#list
|
||||
*/
|
||||
public class _BindingIteratorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosNaming.BindingIterator
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns the next binding. If there are no more
|
||||
* bindings, false is returned.
|
||||
*
|
||||
* @param b the returned binding
|
||||
*/
|
||||
public boolean next_one (org.omg.CosNaming.BindingHolder b)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("next_one", true);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
b.value = org.omg.CosNaming.BindingHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return next_one (b );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // next_one
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns at most the requested number of bindings.
|
||||
*
|
||||
* @param how_many the maximum number of bindings tro return <p>
|
||||
*
|
||||
* @param bl the returned bindings
|
||||
*/
|
||||
public boolean next_n (int how_many, org.omg.CosNaming.BindingListHolder bl)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("next_n", true);
|
||||
$out.write_ulong (how_many);
|
||||
$in = _invoke ($out);
|
||||
boolean $result = $in.read_boolean ();
|
||||
bl.value = org.omg.CosNaming.BindingListHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return next_n (how_many, bl );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // next_n
|
||||
|
||||
|
||||
/**
|
||||
* This operation destroys the iterator.
|
||||
*/
|
||||
public void destroy ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("destroy", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
destroy ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // destroy
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:omg.org/CosNaming/BindingIterator:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
com.sun.corba.se.impl.orbutil.IORCheckImpl.check(str, "org.omg.CosNaming._BindingIteratorStub");
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
org.omg.CORBA.Object obj = orb.string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
String str = orb.object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
} // class _BindingIteratorStub
|
||||
643
jdkSrc/jdk8/org/omg/CosNaming/_NamingContextExtStub.java
Normal file
643
jdkSrc/jdk8/org/omg/CosNaming/_NamingContextExtStub.java
Normal file
@@ -0,0 +1,643 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/_NamingContextExtStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
|
||||
* which
|
||||
* contains a set of name bindings in which each name is unique and is
|
||||
* part of Interoperable Naming Service.
|
||||
* Different names can be bound to an object in the same or different
|
||||
* contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
|
||||
* URL-based names to bind and resolve. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public class _NamingContextExtStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosNaming.NamingContextExt
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a stringified name from the array of Name
|
||||
* components.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
public String to_string (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("to_string", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
String $result = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return to_string (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // to_string
|
||||
|
||||
|
||||
/**
|
||||
* This operation converts a Stringified Name into an equivalent array
|
||||
* of Name Components.
|
||||
*
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
public org.omg.CosNaming.NameComponent[] to_name (String sn) throws org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("to_name", true);
|
||||
org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.write ($out, sn);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CosNaming.NameComponent $result[] = org.omg.CosNaming.NameHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return to_name (sn );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // to_name
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a URL based "iiopname://" format name
|
||||
* from the Stringified Name of the object.
|
||||
*
|
||||
* @param addr internet based address of the host machine where Name Service is running <p>
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
|
||||
* Indicates the internet based address of the host machine is
|
||||
* incorrect <p>
|
||||
*
|
||||
*/
|
||||
public String to_url (String addr, String sn) throws org.omg.CosNaming.NamingContextExtPackage.InvalidAddress, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("to_url", true);
|
||||
org.omg.CosNaming.NamingContextExtPackage.AddressHelper.write ($out, addr);
|
||||
org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.write ($out, sn);
|
||||
$in = _invoke ($out);
|
||||
String $result = org.omg.CosNaming.NamingContextExtPackage.URLStringHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContextExt/InvalidAddress:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return to_url (addr, sn );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // to_url
|
||||
|
||||
|
||||
/**
|
||||
* This operation resolves the Stringified name into the object
|
||||
* reference.
|
||||
*
|
||||
* @param sn Stringified Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound
|
||||
* Indicates there is no object reference for the given name. <p>
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the given compound name is incorrect <p>
|
||||
* @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
|
||||
* Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
*/
|
||||
public org.omg.CORBA.Object resolve_str (String sn) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("resolve_str", true);
|
||||
org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.write ($out, sn);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CORBA.Object $result = org.omg.CORBA.ObjectHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return resolve_str (sn );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // resolve_str
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context.
|
||||
* Naming contexts that are bound using bind do not participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to bind with the given name<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
|
||||
* the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the implementation has given up for some reason.
|
||||
* The client, however, may be able to continue the operation
|
||||
* at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
* Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
* Indicates an object is already bound to the specified name.<p>
|
||||
*/
|
||||
public void bind (org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("bind", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CORBA.ObjectHelper.write ($out, obj);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
bind (n, obj );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // bind
|
||||
|
||||
|
||||
/**
|
||||
* Names an object that is a naming context. Naming contexts that
|
||||
* are bound using bind_context() participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to bind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*/
|
||||
public void bind_context (org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("bind_context", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CosNaming.NamingContextHelper.write ($out, nc);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
bind_context (n, nc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // bind_context
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context
|
||||
* even if the name is already bound in the context. Naming contexts
|
||||
* that are bound using rebind do not participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public void rebind (org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("rebind", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CORBA.ObjectHelper.write ($out, obj);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
rebind (n, obj );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // rebind
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and a naming context in the naming
|
||||
* context even if the name is already bound in the context. Naming
|
||||
* contexts that are bound using rebind_context() participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public void rebind_context (org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("rebind_context", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CosNaming.NamingContextHelper.write ($out, nc);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
rebind_context (n, nc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // rebind_context
|
||||
|
||||
|
||||
/**
|
||||
* The resolve operation is the process of retrieving an object
|
||||
* bound to a name in a given context. The given name must exactly
|
||||
* match the bound name. The naming service does not return the type
|
||||
* of the object. Clients are responsible for "narrowing" the object
|
||||
* to the appropriate type. That is, clients typically cast the returned
|
||||
* object from Object to a more specialized interface.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public org.omg.CORBA.Object resolve (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("resolve", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CORBA.Object $result = org.omg.CORBA.ObjectHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return resolve (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // resolve
|
||||
|
||||
|
||||
/**
|
||||
* The unbind operation removes a name binding from a context.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public void unbind (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("unbind", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
unbind (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // unbind
|
||||
|
||||
|
||||
/**
|
||||
* The list operation allows a client to iterate through a set of
|
||||
* bindings in a naming context. <p>
|
||||
*
|
||||
* The list operation returns at most the requested number of
|
||||
* bindings in BindingList bl.
|
||||
* <ul>
|
||||
* <li>If the naming context contains additional
|
||||
* bindings, the list operation returns a BindingIterator with the
|
||||
* additional bindings.
|
||||
* <li>If the naming context does not contain additional
|
||||
* bindings, the binding iterator is a nil object reference.
|
||||
* </ul>
|
||||
*
|
||||
* @param how_many the maximum number of bindings to return <p>
|
||||
*
|
||||
* @param bl the returned list of bindings <p>
|
||||
*
|
||||
* @param bi the returned binding iterator <p>
|
||||
*/
|
||||
public void list (int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("list", true);
|
||||
$out.write_ulong (how_many);
|
||||
$in = _invoke ($out);
|
||||
bl.value = org.omg.CosNaming.BindingListHelper.read ($in);
|
||||
bi.value = org.omg.CosNaming.BindingIteratorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
list (how_many, bl, bi );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // list
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns a naming context implemented by the same
|
||||
* naming server as the context on which the operation was invoked.
|
||||
* The new context is not bound to any name.
|
||||
*/
|
||||
public org.omg.CosNaming.NamingContext new_context ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("new_context", true);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CosNaming.NamingContext $result = org.omg.CosNaming.NamingContextHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return new_context ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // new_context
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a new context and binds it to the name
|
||||
* supplied as an argument. The newly-created context is implemented
|
||||
* by the same naming server as the context in which it was bound (that
|
||||
* is, the naming server that implements the context denoted by the
|
||||
* name argument excluding the last component).
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public org.omg.CosNaming.NamingContext bind_new_context (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.AlreadyBound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("bind_new_context", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CosNaming.NamingContext $result = org.omg.CosNaming.NamingContextHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return bind_new_context (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // bind_new_context
|
||||
|
||||
|
||||
/**
|
||||
* The destroy operation deletes a naming context. If the naming
|
||||
* context contains bindings, the NotEmpty exception is raised.
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
|
||||
*/
|
||||
public void destroy () throws org.omg.CosNaming.NamingContextPackage.NotEmpty
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("destroy", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
destroy ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // destroy
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:omg.org/CosNaming/NamingContextExt:1.0",
|
||||
"IDL:omg.org/CosNaming/NamingContext:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
com.sun.corba.se.impl.orbutil.IORCheckImpl.check(str, "org.omg.CosNaming._NamingContextExtStub");
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
org.omg.CORBA.Object obj = orb.string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
String str = orb.object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
} // class _NamingContextExtStub
|
||||
407
jdkSrc/jdk8/org/omg/CosNaming/_NamingContextImplBase.java
Normal file
407
jdkSrc/jdk8/org/omg/CosNaming/_NamingContextImplBase.java
Normal file
@@ -0,0 +1,407 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2000, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License version 2 only, as
|
||||
* published by the Free Software Foundation. Oracle designates this
|
||||
* particular file as subject to the "Classpath" exception as provided
|
||||
* by Oracle in the LICENSE file that accompanied this code.
|
||||
*
|
||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* version 2 for more details (a copy is included in the LICENSE file that
|
||||
* accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version
|
||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*
|
||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
||||
* or visit www.oracle.com if you need additional information or have any
|
||||
* questions.
|
||||
*/
|
||||
/*
|
||||
* File: ./org/omg/CosNaming/_NamingContextImplBase.java
|
||||
* From: nameservice.idl
|
||||
* Date: Tue Aug 11 03:12:09 1998
|
||||
* By: idltojava Java IDL 1.2 Aug 11 1998 02:00:18
|
||||
* @deprecated Deprecated in JDK 1.4.
|
||||
*/
|
||||
|
||||
package org.omg.CosNaming;
|
||||
public abstract class _NamingContextImplBase extends org.omg.CORBA.DynamicImplementation implements org.omg.CosNaming.NamingContext {
|
||||
// Constructor
|
||||
public _NamingContextImplBase() {
|
||||
super();
|
||||
}
|
||||
// Type strings for this class and its superclases
|
||||
private static final String _type_ids[] = {
|
||||
"IDL:omg.org/CosNaming/NamingContext:1.0"
|
||||
};
|
||||
|
||||
public String[] _ids() { return (String[]) _type_ids.clone(); }
|
||||
|
||||
private static java.util.Dictionary _methods = new java.util.Hashtable();
|
||||
static {
|
||||
_methods.put("bind", new java.lang.Integer(0));
|
||||
_methods.put("bind_context", new java.lang.Integer(1));
|
||||
_methods.put("rebind", new java.lang.Integer(2));
|
||||
_methods.put("rebind_context", new java.lang.Integer(3));
|
||||
_methods.put("resolve", new java.lang.Integer(4));
|
||||
_methods.put("unbind", new java.lang.Integer(5));
|
||||
_methods.put("list", new java.lang.Integer(6));
|
||||
_methods.put("new_context", new java.lang.Integer(7));
|
||||
_methods.put("bind_new_context", new java.lang.Integer(8));
|
||||
_methods.put("destroy", new java.lang.Integer(9));
|
||||
}
|
||||
// DSI Dispatch call
|
||||
public void invoke(org.omg.CORBA.ServerRequest r) {
|
||||
switch (((java.lang.Integer) _methods.get(r.op_name())).intValue()) {
|
||||
case 0: // org.omg.CosNaming.NamingContext.bind
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
org.omg.CORBA.Any _obj = _orb().create_any();
|
||||
_obj.type(org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_objref));
|
||||
_list.add_value("obj", _obj, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
org.omg.CORBA.Object obj;
|
||||
obj = _obj.extract_Object();
|
||||
try {
|
||||
this.bind(n, obj);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e3) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.insert(_except, e3);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
case 1: // org.omg.CosNaming.NamingContext.bind_context
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
org.omg.CORBA.Any _nc = _orb().create_any();
|
||||
_nc.type(org.omg.CosNaming.NamingContextHelper.type());
|
||||
_list.add_value("nc", _nc, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
org.omg.CosNaming.NamingContext nc;
|
||||
nc = org.omg.CosNaming.NamingContextHelper.extract(_nc);
|
||||
try {
|
||||
this.bind_context(n, nc);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e3) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.insert(_except, e3);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
case 2: // org.omg.CosNaming.NamingContext.rebind
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
org.omg.CORBA.Any _obj = _orb().create_any();
|
||||
_obj.type(org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_objref));
|
||||
_list.add_value("obj", _obj, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
org.omg.CORBA.Object obj;
|
||||
obj = _obj.extract_Object();
|
||||
try {
|
||||
this.rebind(n, obj);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
case 3: // org.omg.CosNaming.NamingContext.rebind_context
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
org.omg.CORBA.Any _nc = _orb().create_any();
|
||||
_nc.type(org.omg.CosNaming.NamingContextHelper.type());
|
||||
_list.add_value("nc", _nc, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
org.omg.CosNaming.NamingContext nc;
|
||||
nc = org.omg.CosNaming.NamingContextHelper.extract(_nc);
|
||||
try {
|
||||
this.rebind_context(n, nc);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
case 4: // org.omg.CosNaming.NamingContext.resolve
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
org.omg.CORBA.Object ___result;
|
||||
try {
|
||||
___result = this.resolve(n);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __result = _orb().create_any();
|
||||
__result.insert_Object(___result);
|
||||
r.result(__result);
|
||||
}
|
||||
break;
|
||||
case 5: // org.omg.CosNaming.NamingContext.unbind
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
try {
|
||||
this.unbind(n);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
case 6: // org.omg.CosNaming.NamingContext.list
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _how_many = _orb().create_any();
|
||||
_how_many.type(org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.tk_ulong));
|
||||
_list.add_value("how_many", _how_many, org.omg.CORBA.ARG_IN.value);
|
||||
org.omg.CORBA.Any _bl = _orb().create_any();
|
||||
_bl.type(org.omg.CosNaming.BindingListHelper.type());
|
||||
_list.add_value("bl", _bl, org.omg.CORBA.ARG_OUT.value);
|
||||
org.omg.CORBA.Any _bi = _orb().create_any();
|
||||
_bi.type(org.omg.CosNaming.BindingIteratorHelper.type());
|
||||
_list.add_value("bi", _bi, org.omg.CORBA.ARG_OUT.value);
|
||||
r.params(_list);
|
||||
int how_many;
|
||||
how_many = _how_many.extract_ulong();
|
||||
org.omg.CosNaming.BindingListHolder bl;
|
||||
bl = new org.omg.CosNaming.BindingListHolder();
|
||||
org.omg.CosNaming.BindingIteratorHolder bi;
|
||||
bi = new org.omg.CosNaming.BindingIteratorHolder();
|
||||
this.list(how_many, bl, bi);
|
||||
org.omg.CosNaming.BindingListHelper.insert(_bl, bl.value);
|
||||
org.omg.CosNaming.BindingIteratorHelper.insert(_bi, bi.value);
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
case 7: // org.omg.CosNaming.NamingContext.new_context
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NamingContext ___result;
|
||||
___result = this.new_context();
|
||||
org.omg.CORBA.Any __result = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextHelper.insert(__result, ___result);
|
||||
r.result(__result);
|
||||
}
|
||||
break;
|
||||
case 8: // org.omg.CosNaming.NamingContext.bind_new_context
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
org.omg.CORBA.Any _n = _orb().create_any();
|
||||
_n.type(org.omg.CosNaming.NameHelper.type());
|
||||
_list.add_value("n", _n, org.omg.CORBA.ARG_IN.value);
|
||||
r.params(_list);
|
||||
org.omg.CosNaming.NameComponent[] n;
|
||||
n = org.omg.CosNaming.NameHelper.extract(_n);
|
||||
org.omg.CosNaming.NamingContext ___result;
|
||||
try {
|
||||
___result = this.bind_new_context(n);
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotFound e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotFoundHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e1) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.insert(_except, e1);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.CannotProceed e2) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.insert(_except, e2);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.InvalidName e3) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.insert(_except, e3);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __result = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextHelper.insert(__result, ___result);
|
||||
r.result(__result);
|
||||
}
|
||||
break;
|
||||
case 9: // org.omg.CosNaming.NamingContext.destroy
|
||||
{
|
||||
org.omg.CORBA.NVList _list = _orb().create_list(0);
|
||||
r.params(_list);
|
||||
try {
|
||||
this.destroy();
|
||||
}
|
||||
catch (org.omg.CosNaming.NamingContextPackage.NotEmpty e0) {
|
||||
org.omg.CORBA.Any _except = _orb().create_any();
|
||||
org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.insert(_except, e0);
|
||||
r.except(_except);
|
||||
return;
|
||||
}
|
||||
org.omg.CORBA.Any __return = _orb().create_any();
|
||||
__return.type(_orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_void));
|
||||
r.result(__return);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new org.omg.CORBA.BAD_OPERATION(0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
|
||||
}
|
||||
}
|
||||
}
|
||||
487
jdkSrc/jdk8/org/omg/CosNaming/_NamingContextStub.java
Normal file
487
jdkSrc/jdk8/org/omg/CosNaming/_NamingContextStub.java
Normal file
@@ -0,0 +1,487 @@
|
||||
package org.omg.CosNaming;
|
||||
|
||||
|
||||
/**
|
||||
* org/omg/CosNaming/_NamingContextStub.java .
|
||||
* Generated by the IDL-to-Java compiler (portable), version "3.2"
|
||||
* from c:/wsjdk/Corretto8Src/installers/windows/zip/corretto-build/buildRoot/corba/src/share/classes/org/omg/CosNaming/nameservice.idl
|
||||
* Thursday, July 10, 2025 9:33:00 PM UTC
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A naming context is an object that contains a set of name bindings in
|
||||
* which each name is unique. Different names can be bound to an object
|
||||
* in the same or different contexts at the same time. <p>
|
||||
*
|
||||
* See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
|
||||
* CORBA COS
|
||||
* Naming Specification.</a>
|
||||
*/
|
||||
public class _NamingContextStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.CosNaming.NamingContext
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context.
|
||||
* Naming contexts that are bound using bind do not participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to bind with the given name<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
|
||||
* the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
|
||||
* Indicates that the implementation has given up for some reason.
|
||||
* The client, however, may be able to continue the operation
|
||||
* at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
* Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
* Indicates an object is already bound to the specified name.<p>
|
||||
*/
|
||||
public void bind (org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("bind", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CORBA.ObjectHelper.write ($out, obj);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
bind (n, obj );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // bind
|
||||
|
||||
|
||||
/**
|
||||
* Names an object that is a naming context. Naming contexts that
|
||||
* are bound using bind_context() participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to bind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*/
|
||||
public void bind_context (org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName, org.omg.CosNaming.NamingContextPackage.AlreadyBound
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("bind_context", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CosNaming.NamingContextHelper.write ($out, nc);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
bind_context (n, nc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // bind_context
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and an object in the naming context
|
||||
* even if the name is already bound in the context. Naming contexts
|
||||
* that are bound using rebind do not participate in name resolution
|
||||
* when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param obj The Object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public void rebind (org.omg.CosNaming.NameComponent[] n, org.omg.CORBA.Object obj) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("rebind", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CORBA.ObjectHelper.write ($out, obj);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
rebind (n, obj );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // rebind
|
||||
|
||||
|
||||
/**
|
||||
* Creates a binding of a name and a naming context in the naming
|
||||
* context even if the name is already bound in the context. Naming
|
||||
* contexts that are bound using rebind_context() participate in name
|
||||
* resolution when compound names are passed to be resolved.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @param nc NamingContect object to rebind with the given name <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public void rebind_context (org.omg.CosNaming.NameComponent[] n, org.omg.CosNaming.NamingContext nc) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("rebind_context", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
org.omg.CosNaming.NamingContextHelper.write ($out, nc);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
rebind_context (n, nc );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // rebind_context
|
||||
|
||||
|
||||
/**
|
||||
* The resolve operation is the process of retrieving an object
|
||||
* bound to a name in a given context. The given name must exactly
|
||||
* match the bound name. The naming service does not return the type
|
||||
* of the object. Clients are responsible for "narrowing" the object
|
||||
* to the appropriate type. That is, clients typically cast the returned
|
||||
* object from Object to a more specialized interface.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public org.omg.CORBA.Object resolve (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("resolve", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CORBA.Object $result = org.omg.CORBA.ObjectHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return resolve (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // resolve
|
||||
|
||||
|
||||
/**
|
||||
* The unbind operation removes a name binding from a context.
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public void unbind (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("unbind", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
unbind (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // unbind
|
||||
|
||||
|
||||
/**
|
||||
* The list operation allows a client to iterate through a set of
|
||||
* bindings in a naming context. <p>
|
||||
*
|
||||
* The list operation returns at most the requested number of
|
||||
* bindings in BindingList bl.
|
||||
* <ul>
|
||||
* <li>If the naming context contains additional
|
||||
* bindings, the list operation returns a BindingIterator with the
|
||||
* additional bindings.
|
||||
* <li>If the naming context does not contain additional
|
||||
* bindings, the binding iterator is a nil object reference.
|
||||
* </ul>
|
||||
*
|
||||
* @param how_many the maximum number of bindings to return <p>
|
||||
*
|
||||
* @param bl the returned list of bindings <p>
|
||||
*
|
||||
* @param bi the returned binding iterator <p>
|
||||
*/
|
||||
public void list (int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi)
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("list", true);
|
||||
$out.write_ulong (how_many);
|
||||
$in = _invoke ($out);
|
||||
bl.value = org.omg.CosNaming.BindingListHelper.read ($in);
|
||||
bi.value = org.omg.CosNaming.BindingIteratorHelper.read ($in);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
list (how_many, bl, bi );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // list
|
||||
|
||||
|
||||
/**
|
||||
* This operation returns a naming context implemented by the same
|
||||
* naming server as the context on which the operation was invoked.
|
||||
* The new context is not bound to any name.
|
||||
*/
|
||||
public org.omg.CosNaming.NamingContext new_context ()
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("new_context", true);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CosNaming.NamingContext $result = org.omg.CosNaming.NamingContextHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return new_context ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // new_context
|
||||
|
||||
|
||||
/**
|
||||
* This operation creates a new context and binds it to the name
|
||||
* supplied as an argument. The newly-created context is implemented
|
||||
* by the same naming server as the context in which it was bound (that
|
||||
* is, the naming server that implements the context denoted by the
|
||||
* name argument excluding the last component).
|
||||
*
|
||||
* @param n Name of the object <p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
|
||||
* bound to the specified name.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
|
||||
* given up for some reason. The client, however, may be able to
|
||||
* continue the operation at the returned naming context.<p>
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
|
||||
*/
|
||||
public org.omg.CosNaming.NamingContext bind_new_context (org.omg.CosNaming.NameComponent[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound, org.omg.CosNaming.NamingContextPackage.AlreadyBound, org.omg.CosNaming.NamingContextPackage.CannotProceed, org.omg.CosNaming.NamingContextPackage.InvalidName
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("bind_new_context", true);
|
||||
org.omg.CosNaming.NameHelper.write ($out, n);
|
||||
$in = _invoke ($out);
|
||||
org.omg.CosNaming.NamingContext $result = org.omg.CosNaming.NamingContextHelper.read ($in);
|
||||
return $result;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
|
||||
else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
return bind_new_context (n );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // bind_new_context
|
||||
|
||||
|
||||
/**
|
||||
* The destroy operation deletes a naming context. If the naming
|
||||
* context contains bindings, the NotEmpty exception is raised.
|
||||
*
|
||||
* @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
|
||||
*/
|
||||
public void destroy () throws org.omg.CosNaming.NamingContextPackage.NotEmpty
|
||||
{
|
||||
org.omg.CORBA.portable.InputStream $in = null;
|
||||
try {
|
||||
org.omg.CORBA.portable.OutputStream $out = _request ("destroy", true);
|
||||
$in = _invoke ($out);
|
||||
return;
|
||||
} catch (org.omg.CORBA.portable.ApplicationException $ex) {
|
||||
$in = $ex.getInputStream ();
|
||||
String _id = $ex.getId ();
|
||||
if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"))
|
||||
throw org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.read ($in);
|
||||
else
|
||||
throw new org.omg.CORBA.MARSHAL (_id);
|
||||
} catch (org.omg.CORBA.portable.RemarshalException $rm) {
|
||||
destroy ( );
|
||||
} finally {
|
||||
_releaseReply ($in);
|
||||
}
|
||||
} // destroy
|
||||
|
||||
// Type-specific CORBA::Object operations
|
||||
private static String[] __ids = {
|
||||
"IDL:omg.org/CosNaming/NamingContext:1.0"};
|
||||
|
||||
public String[] _ids ()
|
||||
{
|
||||
return (String[])__ids.clone ();
|
||||
}
|
||||
|
||||
private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
|
||||
{
|
||||
String str = s.readUTF ();
|
||||
com.sun.corba.se.impl.orbutil.IORCheckImpl.check(str, "org.omg.CosNaming._NamingContextStub");
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
org.omg.CORBA.Object obj = orb.string_to_object (str);
|
||||
org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
|
||||
_set_delegate (delegate);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
|
||||
private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
|
||||
{
|
||||
String[] args = null;
|
||||
java.util.Properties props = null;
|
||||
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
|
||||
try {
|
||||
String str = orb.object_to_string (this);
|
||||
s.writeUTF (str);
|
||||
} finally {
|
||||
orb.destroy() ;
|
||||
}
|
||||
}
|
||||
} // class _NamingContextStub
|
||||
Reference in New Issue
Block a user