KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CosNaming > NamingContextExtPOA


1 package org.omg.CosNaming;
2
3
4 /**
5 * org/omg/CosNaming/NamingContextExtPOA.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
8 * Saturday, February 9, 2008 9:40:10 AM GMT
9 */

10
11
12 /**
13  * <code>NamingContextExt</code> is the extension of <code>NamingContext</code>
14  * which
15  * contains a set of name bindings in which each name is unique and is
16  * part of Interoperable Naming Service.
17  * Different names can be bound to an object in the same or different
18  * contexts at the same time. Using <tt>NamingContextExt</tt>, you can use
19  * URL-based names to bind and resolve. <p>
20  *
21  * See <a HREF="http://www.omg.org/technology/documents/formal/naming_service.htm">
22  * CORBA COS
23  * Naming Specification.</a>
24  */

25 public abstract class NamingContextExtPOA extends org.omg.PortableServer.Servant JavaDoc
26  implements org.omg.CosNaming.NamingContextExtOperations JavaDoc, org.omg.CORBA.portable.InvokeHandler JavaDoc
27 {
28
29   // Constructors
30

31   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
32   static
33   {
34     _methods.put ("to_string", new java.lang.Integer JavaDoc (0));
35     _methods.put ("to_name", new java.lang.Integer JavaDoc (1));
36     _methods.put ("to_url", new java.lang.Integer JavaDoc (2));
37     _methods.put ("resolve_str", new java.lang.Integer JavaDoc (3));
38     _methods.put ("bind", new java.lang.Integer JavaDoc (4));
39     _methods.put ("bind_context", new java.lang.Integer JavaDoc (5));
40     _methods.put ("rebind", new java.lang.Integer JavaDoc (6));
41     _methods.put ("rebind_context", new java.lang.Integer JavaDoc (7));
42     _methods.put ("resolve", new java.lang.Integer JavaDoc (8));
43     _methods.put ("unbind", new java.lang.Integer JavaDoc (9));
44     _methods.put ("list", new java.lang.Integer JavaDoc (10));
45     _methods.put ("new_context", new java.lang.Integer JavaDoc (11));
46     _methods.put ("bind_new_context", new java.lang.Integer JavaDoc (12));
47     _methods.put ("destroy", new java.lang.Integer JavaDoc (13));
48   }
49
50   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
51                                 org.omg.CORBA.portable.InputStream JavaDoc in,
52                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
53   {
54     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
55     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
56     if (__method == null)
57       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
58
59     switch (__method.intValue ())
60     {
61
62   /**
63  * This operation creates a stringified name from the array of Name
64  * components.
65  *
66  * @param n Name of the object <p>
67  *
68  * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
69  * Indicates the name does not identify a binding.<p>
70  *
71  */

72        case 0: // CosNaming/NamingContextExt/to_string
73
{
74          try {
75            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
76            String JavaDoc $result = null;
77            $result = this.to_string (n);
78            out = $rh.createReply();
79            out.write_string ($result);
80          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
81            out = $rh.createExceptionReply ();
82            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
83          }
84          break;
85        }
86
87
88   /**
89  * This operation converts a Stringified Name into an equivalent array
90  * of Name Components.
91  *
92  * @param sn Stringified Name of the object <p>
93  *
94  * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
95  * Indicates the name does not identify a binding.<p>
96  *
97  */

98        case 1: // CosNaming/NamingContextExt/to_name
99
{
100          try {
101            String JavaDoc sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
102            org.omg.CosNaming.NameComponent JavaDoc $result[] = null;
103            $result = this.to_name (sn);
104            out = $rh.createReply();
105            org.omg.CosNaming.NameHelper.write (out, $result);
106          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
107            out = $rh.createExceptionReply ();
108            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
109          }
110          break;
111        }
112
113
114   /**
115  * This operation creates a URL based "iiopname://" format name
116  * from the Stringified Name of the object.
117  *
118  * @param addr internet based address of the host machine where Name Service is running <p>
119  * @param sn Stringified Name of the object <p>
120  *
121  * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
122  * Indicates the name does not identify a binding.<p>
123  * @exception org.omg.CosNaming.NamingContextPackage.InvalidAddress
124  * Indicates the internet based address of the host machine is
125  * incorrect <p>
126  *
127  */

128        case 2: // CosNaming/NamingContextExt/to_url
129
{
130          try {
131            String JavaDoc addr = org.omg.CosNaming.NamingContextExtPackage.AddressHelper.read (in);
132            String JavaDoc sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
133            String JavaDoc $result = null;
134            $result = this.to_url (addr, sn);
135            out = $rh.createReply();
136            out.write_string ($result);
137          } catch (org.omg.CosNaming.NamingContextExtPackage.InvalidAddress JavaDoc $ex) {
138            out = $rh.createExceptionReply ();
139            org.omg.CosNaming.NamingContextExtPackage.InvalidAddressHelper.write (out, $ex);
140          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
141            out = $rh.createExceptionReply ();
142            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
143          }
144          break;
145        }
146
147
148   /**
149  * This operation resolves the Stringified name into the object
150  * reference.
151  *
152  * @param sn Stringified Name of the object <p>
153  *
154  * @exception org.omg.CosNaming.NamingContextPackage.NotFound
155  * Indicates there is no object reference for the given name. <p>
156  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
157  * Indicates that the given compound name is incorrect <p>
158  * @exception org.omg.CosNaming.NamingContextExtPackage.InvalidName
159  * Indicates the name does not identify a binding.<p>
160  *
161  */

162        case 3: // CosNaming/NamingContextExt/resolve_str
163
{
164          try {
165            String JavaDoc sn = org.omg.CosNaming.NamingContextExtPackage.StringNameHelper.read (in);
166            org.omg.CORBA.Object JavaDoc $result = null;
167            $result = this.resolve_str (sn);
168            out = $rh.createReply();
169            org.omg.CORBA.ObjectHelper.write (out, $result);
170          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
171            out = $rh.createExceptionReply ();
172            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
173          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
174            out = $rh.createExceptionReply ();
175            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
176          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
177            out = $rh.createExceptionReply ();
178            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
179          }
180          break;
181        }
182
183
184   /**
185  * Creates a binding of a name and an object in the naming context.
186  * Naming contexts that are bound using bind do not participate in name
187  * resolution when compound names are passed to be resolved.
188  *
189  * @param n Name of the object <p>
190  *
191  * @param obj The Object to bind with the given name<p>
192  *
193  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
194  * the name does not identify a binding.<p>
195  *
196  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
197  * Indicates that the implementation has given up for some reason.
198  * The client, however, may be able to continue the operation
199  * at the returned naming context.<p>
200  *
201  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName
202  * Indicates that the name is invalid. <p>
203  *
204  * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
205  * Indicates an object is already bound to the specified name.<p>
206  */

207        case 4: // CosNaming/NamingContext/bind
208
{
209          try {
210            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
211            org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ObjectHelper.read (in);
212            this.bind (n, obj);
213            out = $rh.createReply();
214          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
215            out = $rh.createExceptionReply ();
216            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
217          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
218            out = $rh.createExceptionReply ();
219            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
220          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
221            out = $rh.createExceptionReply ();
222            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
223          } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound JavaDoc $ex) {
224            out = $rh.createExceptionReply ();
225            org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
226          }
227          break;
228        }
229
230
231   /**
232  * Names an object that is a naming context. Naming contexts that
233  * are bound using bind_context() participate in name resolution
234  * when compound names are passed to be resolved.
235  *
236  * @param n Name of the object <p>
237  *
238  * @param nc NamingContect object to bind with the given name <p>
239  *
240  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
241  *
242  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
243  * given up for some reason. The client, however, may be able to
244  * continue the operation at the returned naming context.<p>
245  *
246  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
247  *
248  * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
249  * bound to the specified name.<p>
250  */

251        case 5: // CosNaming/NamingContext/bind_context
252
{
253          try {
254            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
255            org.omg.CosNaming.NamingContext JavaDoc nc = org.omg.CosNaming.NamingContextHelper.read (in);
256            this.bind_context (n, nc);
257            out = $rh.createReply();
258          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
259            out = $rh.createExceptionReply ();
260            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
261          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
262            out = $rh.createExceptionReply ();
263            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
264          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
265            out = $rh.createExceptionReply ();
266            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
267          } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound JavaDoc $ex) {
268            out = $rh.createExceptionReply ();
269            org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
270          }
271          break;
272        }
273
274
275   /**
276  * Creates a binding of a name and an object in the naming context
277  * even if the name is already bound in the context. Naming contexts
278  * that are bound using rebind do not participate in name resolution
279  * when compound names are passed to be resolved.
280  *
281  * @param n Name of the object <p>
282  *
283  * @parm obj The Object to rebind with the given name <p>
284  *
285  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
286  *
287  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
288  * given up for some reason. The client, however, may be able to
289  * continue the operation at the returned naming context.<p>
290  *
291  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
292  */

293        case 6: // CosNaming/NamingContext/rebind
294
{
295          try {
296            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
297            org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ObjectHelper.read (in);
298            this.rebind (n, obj);
299            out = $rh.createReply();
300          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
301            out = $rh.createExceptionReply ();
302            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
303          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
304            out = $rh.createExceptionReply ();
305            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
306          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
307            out = $rh.createExceptionReply ();
308            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
309          }
310          break;
311        }
312
313
314   /**
315  * Creates a binding of a name and a naming context in the naming
316  * context even if the name is already bound in the context. Naming
317  * contexts that are bound using rebind_context() participate in name
318  * resolution when compound names are passed to be resolved.
319  *
320  * @param n Name of the object <p>
321  *
322  * @param nc NamingContect object to rebind with the given name <p>
323  *
324  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
325  *
326  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
327  * given up for some reason. The client, however, may be able to
328  * continue the operation at the returned naming context.<p>
329  *
330  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
331  */

332        case 7: // CosNaming/NamingContext/rebind_context
333
{
334          try {
335            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
336            org.omg.CosNaming.NamingContext JavaDoc nc = org.omg.CosNaming.NamingContextHelper.read (in);
337            this.rebind_context (n, nc);
338            out = $rh.createReply();
339          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
340            out = $rh.createExceptionReply ();
341            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
342          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
343            out = $rh.createExceptionReply ();
344            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
345          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
346            out = $rh.createExceptionReply ();
347            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
348          }
349          break;
350        }
351
352
353   /**
354  * The resolve operation is the process of retrieving an object
355  * bound to a name in a given context. The given name must exactly
356  * match the bound name. The naming service does not return the type
357  * of the object. Clients are responsible for "narrowing" the object
358  * to the appropriate type. That is, clients typically cast the returned
359  * object from Object to a more specialized interface.
360  *
361  * @param n Name of the object <p>
362  *
363  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
364  *
365  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
366  * given up for some reason. The client, however, may be able to
367  * continue the operation at the returned naming context.<p>
368  *
369  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
370  */

371        case 8: // CosNaming/NamingContext/resolve
372
{
373          try {
374            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
375            org.omg.CORBA.Object JavaDoc $result = null;
376            $result = this.resolve (n);
377            out = $rh.createReply();
378            org.omg.CORBA.ObjectHelper.write (out, $result);
379          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
380            out = $rh.createExceptionReply ();
381            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
382          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
383            out = $rh.createExceptionReply ();
384            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
385          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
386            out = $rh.createExceptionReply ();
387            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
388          }
389          break;
390        }
391
392
393   /**
394  * The unbind operation removes a name binding from a context.
395  *
396  * @param n Name of the object <p>
397  *
398  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
399  *
400  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
401  * given up for some reason. The client, however, may be able to
402  * continue the operation at the returned naming context.<p>
403  *
404  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
405  */

406        case 9: // CosNaming/NamingContext/unbind
407
{
408          try {
409            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
410            this.unbind (n);
411            out = $rh.createReply();
412          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
413            out = $rh.createExceptionReply ();
414            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
415          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
416            out = $rh.createExceptionReply ();
417            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
418          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
419            out = $rh.createExceptionReply ();
420            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
421          }
422          break;
423        }
424
425
426   /**
427  * The list operation allows a client to iterate through a set of
428  * bindings in a naming context. <p>
429  *
430  * The list operation returns at most the requested number of
431  * bindings in BindingList bl.
432  * <ul>
433  * <li>If the naming context contains additional
434  * bindings, the list operation returns a BindingIterator with the
435  * additional bindings.
436  * <li>If the naming context does not contain additional
437  * bindings, the binding iterator is a nil object reference.
438  * </ul>
439  *
440  * @param how_many the maximum number of bindings to return <p>
441  *
442  * @param bl the returned list of bindings <p>
443  *
444  * @param bi the returned binding iterator <p>
445  */

446        case 10: // CosNaming/NamingContext/list
447
{
448          int how_many = in.read_ulong ();
449          org.omg.CosNaming.BindingListHolder JavaDoc bl = new org.omg.CosNaming.BindingListHolder JavaDoc ();
450          org.omg.CosNaming.BindingIteratorHolder JavaDoc bi = new org.omg.CosNaming.BindingIteratorHolder JavaDoc ();
451          this.list (how_many, bl, bi);
452          out = $rh.createReply();
453          org.omg.CosNaming.BindingListHelper.write (out, bl.value);
454          org.omg.CosNaming.BindingIteratorHelper.write (out, bi.value);
455          break;
456        }
457
458
459   /**
460  * This operation returns a naming context implemented by the same
461  * naming server as the context on which the operation was invoked.
462  * The new context is not bound to any name.
463  */

464        case 11: // CosNaming/NamingContext/new_context
465
{
466          org.omg.CosNaming.NamingContext JavaDoc $result = null;
467          $result = this.new_context ();
468          out = $rh.createReply();
469          org.omg.CosNaming.NamingContextHelper.write (out, $result);
470          break;
471        }
472
473
474   /**
475  * This operation creates a new context and binds it to the name
476  * supplied as an argument. The newly-created context is implemented
477  * by the same naming server as the context in which it was bound (that
478  * is, the naming server that implements the context denoted by the
479  * name argument excluding the last component).
480  *
481  * @param n Name of the object <p>
482  *
483  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
484  *
485  * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
486  * bound to the specified name.<p>
487  *
488  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
489  * given up for some reason. The client, however, may be able to
490  * continue the operation at the returned naming context.<p>
491  *
492  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
493  */

494        case 12: // CosNaming/NamingContext/bind_new_context
495
{
496          try {
497            org.omg.CosNaming.NameComponent JavaDoc n[] = org.omg.CosNaming.NameHelper.read (in);
498            org.omg.CosNaming.NamingContext JavaDoc $result = null;
499            $result = this.bind_new_context (n);
500            out = $rh.createReply();
501            org.omg.CosNaming.NamingContextHelper.write (out, $result);
502          } catch (org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc $ex) {
503            out = $rh.createExceptionReply ();
504            org.omg.CosNaming.NamingContextPackage.NotFoundHelper.write (out, $ex);
505          } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound JavaDoc $ex) {
506            out = $rh.createExceptionReply ();
507            org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.write (out, $ex);
508          } catch (org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc $ex) {
509            out = $rh.createExceptionReply ();
510            org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.write (out, $ex);
511          } catch (org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc $ex) {
512            out = $rh.createExceptionReply ();
513            org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.write (out, $ex);
514          }
515          break;
516        }
517
518
519   /**
520  * The destroy operation deletes a naming context. If the naming
521  * context contains bindings, the NotEmpty exception is raised.
522  *
523  * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
524  */

525        case 13: // CosNaming/NamingContext/destroy
526
{
527          try {
528            this.destroy ();
529            out = $rh.createReply();
530          } catch (org.omg.CosNaming.NamingContextPackage.NotEmpty JavaDoc $ex) {
531            out = $rh.createExceptionReply ();
532            org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.write (out, $ex);
533          }
534          break;
535        }
536
537        default:
538          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
539     }
540
541     return out;
542   } // _invoke
543

544   // Type-specific CORBA::Object operations
545
private static String JavaDoc[] __ids = {
546     "IDL:omg.org/CosNaming/NamingContextExt:1.0",
547     "IDL:omg.org/CosNaming/NamingContext:1.0"};
548
549   public String JavaDoc[] _all_interfaces (org.omg.PortableServer.POA JavaDoc poa, byte[] objectId)
550   {
551     return (String JavaDoc[])__ids.clone ();
552   }
553
554   public NamingContextExt JavaDoc _this()
555   {
556     return NamingContextExtHelper.narrow(
557     super._this_object());
558   }
559
560   public NamingContextExt JavaDoc _this(org.omg.CORBA.ORB JavaDoc orb)
561   {
562     return NamingContextExtHelper.narrow(
563     super._this_object(orb));
564   }
565
566
567 } // class NamingContextExtPOA
568
Popular Tags