1. package org.omg.CosNaming;
  2. /**
  3. * org/omg/CosNaming/NamingContextExtPOA.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
  6. * Monday, February 23, 2004 7:03:07 AM GMT
  7. */
  8. /**
  9. * <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
  10. * which
  11. * contains a set of name bindings in which each name is unique and is
  12. * part of Interoperable Naming Service.
  13. * Different names can be bound to an object in the same or different
  14. * contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
  15. * URL-based names to bind and resolve. <p>
  16. *
  17. * See <a href="http://www.omg.org/technology/documents/formal/naming_service.htm">
  18. * CORBA COS
  19. * Naming Specification.</a>
  20. */
  21. public abstract class NamingContextExtPOA extends org.omg.PortableServer.Servant
  22. implements org.omg.CosNaming.NamingContextExtOperations, org.omg.CORBA.portable.InvokeHandler
  23. {
  24. // Constructors
  25. private static java.util.Hashtable _methods = new java.util.Hashtable ();
  26. static
  27. {
  28. _methods.put ("to_string", new java.lang.Integer (0));
  29. _methods.put ("to_name", new java.lang.Integer (1));
  30. _methods.put ("to_url", new java.lang.Integer (2));
  31. _methods.put ("resolve_str", new java.lang.Integer (3));
  32. _methods.put ("bind", new java.lang.Integer (4));
  33. _methods.put ("bind_context", new java.lang.Integer (5));
  34. _methods.put ("rebind", new java.lang.Integer (6));
  35. _methods.put ("rebind_context", new java.lang.Integer (7));
  36. _methods.put ("resolve", new java.lang.Integer (8));
  37. _methods.put ("unbind", new java.lang.Integer (9));
  38. _methods.put ("list", new java.lang.Integer (10));
  39. _methods.put ("new_context", new java.lang.Integer (11));
  40. _methods.put ("bind_new_context", new java.lang.Integer (12));
  41. _methods.put ("destroy", new java.lang.Integer (13));
  42. }
  43. public org.omg.CORBA.portable.OutputStream _invoke (String $method,
  44. org.omg.CORBA.portable.InputStream in,
  45. org.omg.CORBA.portable.ResponseHandler $rh)
  46. {
  47. org.omg.CORBA.portable.OutputStream out = null;
  48. java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
  49. if (__method == null)
  50. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  51. switch (__method.intValue ())
  52. {
  53. /**
  54. * This operation creates a stringified name from the array of Name
  55. * components.
  56. *
  57. * @param n Name of the object <p>
  58. *
  59. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  60. * Indicates the name does not identify a binding.<p>
  61. *
  62. */
  63. case 0: // CosNaming/NamingContextExt/to_string
  64. {
  65. try {
  66. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  67. String $result = null;
  68. $result = this.to_string (n);
  69. out = $rh.createReply();
  70. out.write_string ($result);
  71. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  72. out = $rh.createExceptionReply ();
  73. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  74. }
  75. break;
  76. }
  77. /**
  78. * This operation converts a Stringified Name into an equivalent array
  79. * of Name Components.
  80. *
  81. * @param sn Stringified Name of the object <p>
  82. *
  83. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  84. * Indicates the name does not identify a binding.<p>
  85. *
  86. */
  87. case 1: // CosNaming/NamingContextExt/to_name
  88. {
  89. try {
  90. String sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
  91. org.omg.CosNaming.NameComponent $result[] = null;
  92. $result = this.to_name (sn);
  93. out = $rh.createReply();
  94. org.omg.CosNaming.NameHelper.write (out, $result);
  95. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  96. out = $rh.createExceptionReply ();
  97. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  98. }
  99. break;
  100. }
  101. /**
  102. * This operation creates a URL based "iiopname://" format name
  103. * from the Stringified Name of the object.
  104. *
  105. * @param addr internet based address of the host machine where Name Service is running <p>
  106. * @param sn Stringified Name of the object <p>
  107. *
  108. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  109. * Indicates the name does not identify a binding.<p>
  110. * @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
  111. * Indicates the internet based address of the host machine is
  112. * incorrect <p>
  113. *
  114. */
  115. case 2: // CosNaming/NamingContextExt/to_url
  116. {
  117. try {
  118. String addr = org.omg.CosNaming.NamingContextExtPackage.AddressHelper.read (in);
  119. String sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
  120. String $result = null;
  121. $result = this.to_url (addr, sn);
  122. out = $rh.createReply();
  123. out.write_string ($result);
  124. } catch (org.omg.CosNaming.NamingContextExtPackage.InvalidAddress $ex) {
  125. out = $rh.createExceptionReply ();
  126. org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.write (out, $ex);
  127. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  128. out = $rh.createExceptionReply ();
  129. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  130. }
  131. break;
  132. }
  133. /**
  134. * This operation resolves the Stringified name into the object
  135. * reference.
  136. *
  137. * @param sn Stringified Name of the object <p>
  138. *
  139. * @exception org.omg.CosNaming.NamingContextPackage.NotFound
  140. * Indicates there is no object reference for the given name. <p>
  141. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
  142. * Indicates that the given compound name is incorrect <p>
  143. * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
  144. * Indicates the name does not identify a binding.<p>
  145. *
  146. */
  147. case 3: // CosNaming/NamingContextExt/resolve_str
  148. {
  149. try {
  150. String sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
  151. org.omg.CORBA.Object $result = null;
  152. $result = this.resolve_str (sn);
  153. out = $rh.createReply();
  154. org.omg.CORBA.ObjectHelper.write (out, $result);
  155. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  156. out = $rh.createExceptionReply ();
  157. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  158. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  159. out = $rh.createExceptionReply ();
  160. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  161. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  162. out = $rh.createExceptionReply ();
  163. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  164. }
  165. break;
  166. }
  167. /**
  168. * Creates a binding of a name and an object in the naming context.
  169. * Naming contexts that are bound using bind do not participate in name
  170. * resolution when compound names are passed to be resolved.
  171. *
  172. * @param n Name of the object <p>
  173. *
  174. * @param obj The Object to bind with the given name<p>
  175. *
  176. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
  177. * the name does not identify a binding.<p>
  178. *
  179. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
  180. * Indicates that the implementation has given up for some reason.
  181. * The client, however, may be able to continue the operation
  182. * at the returned naming context.<p>
  183. *
  184. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName
  185. * Indicates that the name is invalid. <p>
  186. *
  187. * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
  188. * Indicates an object is already bound to the specified name.<p>
  189. */
  190. case 4: // CosNaming/NamingContext/bind
  191. {
  192. try {
  193. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  194. org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
  195. this.bind (n, obj);
  196. out = $rh.createReply();
  197. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  198. out = $rh.createExceptionReply ();
  199. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  200. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  201. out = $rh.createExceptionReply ();
  202. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  203. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  204. out = $rh.createExceptionReply ();
  205. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  206. } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
  207. out = $rh.createExceptionReply ();
  208. org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
  209. }
  210. break;
  211. }
  212. /**
  213. * Names an object that is a naming context. Naming contexts that
  214. * are bound using bind_context() participate in name resolution
  215. * when compound names are passed to be resolved.
  216. *
  217. * @param n Name of the object <p>
  218. *
  219. * @param nc NamingContect object to bind with the given name <p>
  220. *
  221. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
  222. *
  223. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
  224. * given up for some reason. The client, however, may be able to
  225. * continue the operation at the returned naming context.<p>
  226. *
  227. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
  228. *
  229. * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
  230. * bound to the specified name.<p>
  231. */
  232. case 5: // CosNaming/NamingContext/bind_context
  233. {
  234. try {
  235. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  236. org.omg.CosNaming.NamingContext nc = org.omg.CosNaming.NamingContextHelper.read (in);
  237. this.bind_context (n, nc);
  238. out = $rh.createReply();
  239. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  240. out = $rh.createExceptionReply ();
  241. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  242. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  243. out = $rh.createExceptionReply ();
  244. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  245. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  246. out = $rh.createExceptionReply ();
  247. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  248. } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
  249. out = $rh.createExceptionReply ();
  250. org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
  251. }
  252. break;
  253. }
  254. /**
  255. * Creates a binding of a name and an object in the naming context
  256. * even if the name is already bound in the context. Naming contexts
  257. * that are bound using rebind do not participate in name resolution
  258. * when compound names are passed to be resolved.
  259. *
  260. * @param n Name of the object <p>
  261. *
  262. * @parm obj The Object to rebind with the given name <p>
  263. *
  264. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
  265. *
  266. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
  267. * given up for some reason. The client, however, may be able to
  268. * continue the operation at the returned naming context.<p>
  269. *
  270. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
  271. */
  272. case 6: // CosNaming/NamingContext/rebind
  273. {
  274. try {
  275. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  276. org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
  277. this.rebind (n, obj);
  278. out = $rh.createReply();
  279. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  280. out = $rh.createExceptionReply ();
  281. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  282. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  283. out = $rh.createExceptionReply ();
  284. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  285. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  286. out = $rh.createExceptionReply ();
  287. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  288. }
  289. break;
  290. }
  291. /**
  292. * Creates a binding of a name and a naming context in the naming
  293. * context even if the name is already bound in the context. Naming
  294. * contexts that are bound using rebind_context() participate in name
  295. * resolution when compound names are passed to be resolved.
  296. *
  297. * @param n Name of the object <p>
  298. *
  299. * @param nc NamingContect object to rebind with the given name <p>
  300. *
  301. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
  302. *
  303. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
  304. * given up for some reason. The client, however, may be able to
  305. * continue the operation at the returned naming context.<p>
  306. *
  307. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
  308. */
  309. case 7: // CosNaming/NamingContext/rebind_context
  310. {
  311. try {
  312. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  313. org.omg.CosNaming.NamingContext nc = org.omg.CosNaming.NamingContextHelper.read (in);
  314. this.rebind_context (n, nc);
  315. out = $rh.createReply();
  316. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  317. out = $rh.createExceptionReply ();
  318. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  319. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  320. out = $rh.createExceptionReply ();
  321. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  322. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  323. out = $rh.createExceptionReply ();
  324. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  325. }
  326. break;
  327. }
  328. /**
  329. * The resolve operation is the process of retrieving an object
  330. * bound to a name in a given context. The given name must exactly
  331. * match the bound name. The naming service does not return the type
  332. * of the object. Clients are responsible for "narrowing" the object
  333. * to the appropriate type. That is, clients typically cast the returned
  334. * object from Object to a more specialized interface.
  335. *
  336. * @param n Name of the object <p>
  337. *
  338. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
  339. *
  340. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
  341. * given up for some reason. The client, however, may be able to
  342. * continue the operation at the returned naming context.<p>
  343. *
  344. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
  345. */
  346. case 8: // CosNaming/NamingContext/resolve
  347. {
  348. try {
  349. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  350. org.omg.CORBA.Object $result = null;
  351. $result = this.resolve (n);
  352. out = $rh.createReply();
  353. org.omg.CORBA.ObjectHelper.write (out, $result);
  354. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  355. out = $rh.createExceptionReply ();
  356. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  357. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  358. out = $rh.createExceptionReply ();
  359. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  360. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  361. out = $rh.createExceptionReply ();
  362. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  363. }
  364. break;
  365. }
  366. /**
  367. * The unbind operation removes a name binding from a context.
  368. *
  369. * @param n Name of the object <p>
  370. *
  371. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
  372. *
  373. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
  374. * given up for some reason. The client, however, may be able to
  375. * continue the operation at the returned naming context.<p>
  376. *
  377. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
  378. */
  379. case 9: // CosNaming/NamingContext/unbind
  380. {
  381. try {
  382. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  383. this.unbind (n);
  384. out = $rh.createReply();
  385. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  386. out = $rh.createExceptionReply ();
  387. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  388. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  389. out = $rh.createExceptionReply ();
  390. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  391. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  392. out = $rh.createExceptionReply ();
  393. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  394. }
  395. break;
  396. }
  397. /**
  398. * The list operation allows a client to iterate through a set of
  399. * bindings in a naming context. <p>
  400. *
  401. * The list operation returns at most the requested number of
  402. * bindings in BindingList bl.
  403. * <ul>
  404. * <li>If the naming context contains additional
  405. * bindings, the list operation returns a BindingIterator with the
  406. * additional bindings.
  407. * <li>If the naming context does not contain additional
  408. * bindings, the binding iterator is a nil object reference.
  409. * </ul>
  410. *
  411. * @param how_many the maximum number of bindings to return <p>
  412. *
  413. * @param bl the returned list of bindings <p>
  414. *
  415. * @param bi the returned binding iterator <p>
  416. */
  417. case 10: // CosNaming/NamingContext/list
  418. {
  419. int how_many = in.read_ulong ();
  420. org.omg.CosNaming.BindingListHolder bl = new org.omg.CosNaming.BindingListHolder ();
  421. org.omg.CosNaming.BindingIteratorHolder bi = new org.omg.CosNaming.BindingIteratorHolder ();
  422. this.list (how_many, bl, bi);
  423. out = $rh.createReply();
  424. org.omg.CosNaming.BindingListHelper.write (out, bl.value);
  425. org.omg.CosNaming.BindingIteratorHelper.write (out, bi.value);
  426. break;
  427. }
  428. /**
  429. * This operation returns a naming context implemented by the same
  430. * naming server as the context on which the operation was invoked.
  431. * The new context is not bound to any name.
  432. */
  433. case 11: // CosNaming/NamingContext/new_context
  434. {
  435. org.omg.CosNaming.NamingContext $result = null;
  436. $result = this.new_context ();
  437. out = $rh.createReply();
  438. org.omg.CosNaming.NamingContextHelper.write (out, $result);
  439. break;
  440. }
  441. /**
  442. * This operation creates a new context and binds it to the name
  443. * supplied as an argument. The newly-created context is implemented
  444. * by the same naming server as the context in which it was bound (that
  445. * is, the naming server that implements the context denoted by the
  446. * name argument excluding the last component).
  447. *
  448. * @param n Name of the object <p>
  449. *
  450. * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
  451. *
  452. * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
  453. * bound to the specified name.<p>
  454. *
  455. * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
  456. * given up for some reason. The client, however, may be able to
  457. * continue the operation at the returned naming context.<p>
  458. *
  459. * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
  460. */
  461. case 12: // CosNaming/NamingContext/bind_new_context
  462. {
  463. try {
  464. org.omg.CosNaming.NameComponent n[] = org.omg.CosNaming.NameHelper.read (in);
  465. org.omg.CosNaming.NamingContext $result = null;
  466. $result = this.bind_new_context (n);
  467. out = $rh.createReply();
  468. org.omg.CosNaming.NamingContextHelper.write (out, $result);
  469. } catch (org.omg.CosNaming.NamingContextPackage.NotFound $ex) {
  470. out = $rh.createExceptionReply ();
  471. org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
  472. } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound $ex) {
  473. out = $rh.createExceptionReply ();
  474. org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
  475. } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed $ex) {
  476. out = $rh.createExceptionReply ();
  477. org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
  478. } catch (org.omg.CosNaming.NamingContextPackage.InvalidName $ex) {
  479. out = $rh.createExceptionReply ();
  480. org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
  481. }
  482. break;
  483. }
  484. /**
  485. * The destroy operation deletes a naming context. If the naming
  486. * context contains bindings, the NotEmpty exception is raised.
  487. *
  488. * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
  489. */
  490. case 13: // CosNaming/NamingContext/destroy
  491. {
  492. try {
  493. this.destroy ();
  494. out = $rh.createReply();
  495. } catch (org.omg.CosNaming.NamingContextPackage.NotEmpty $ex) {
  496. out = $rh.createExceptionReply ();
  497. org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.write (out, $ex);
  498. }
  499. break;
  500. }
  501. default:
  502. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  503. }
  504. return out;
  505. } // _invoke
  506. // Type-specific CORBA::Object operations
  507. private static String[] __ids = {
  508. "IDL:omg.org/CosNaming/NamingContextExt:1.0",
  509. "IDL:omg.org/CosNaming/NamingContext:1.0"};
  510. public String[] _all_interfaces (org.omg.PortableServer.POA poa, byte[] objectId)
  511. {
  512. return (String[])__ids.clone ();
  513. }
  514. public NamingContextExt _this()
  515. {
  516. return NamingContextExtHelper.narrow(
  517. super._this_object());
  518. }
  519. public NamingContextExt _this(org.omg.CORBA.ORB orb)
  520. {
  521. return NamingContextExtHelper.narrow(
  522. super._this_object(orb));
  523. }
  524. } // class NamingContextExtPOA