API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.omg.CosNaming. _NamingContextImplBase View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389

/*
 * @(#)_NamingContextImplBase.java	1.16 05/11/17
 *
 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
/*
 * 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);
	}
    }
}

Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar