70 |
implements NamingContext |
implements NamingContext |
71 |
{ |
{ |
72 |
/** |
/** |
73 |
|
* Use serialVersionUID (v1.4) for interoperability. |
74 |
|
*/ |
75 |
|
private static final long serialVersionUID = -389233044945385889L; |
76 |
|
|
77 |
|
/** |
78 |
* Create the naming context stub. |
* Create the naming context stub. |
79 |
*/ |
*/ |
80 |
public _NamingContextStub() |
public _NamingContextStub() |
114 |
catch (ApplicationException ex) |
catch (ApplicationException ex) |
115 |
{ |
{ |
116 |
in = ex.getInputStream(); |
in = ex.getInputStream(); |
117 |
|
|
118 |
String id = ex.getId(); |
String id = ex.getId(); |
119 |
throw5(in, id); |
throw5(in, id); |
120 |
} |
} |
175 |
catch (ApplicationException ex) |
catch (ApplicationException ex) |
176 |
{ |
{ |
177 |
in = ex.getInputStream(); |
in = ex.getInputStream(); |
178 |
|
|
179 |
String id = ex.getId(); |
String id = ex.getId(); |
180 |
throw5(in, id); |
throw5(in, id); |
181 |
throw new InternalError(); |
throw new InternalError(); |
291 |
catch (ApplicationException ex) |
catch (ApplicationException ex) |
292 |
{ |
{ |
293 |
in = ex.getInputStream(); |
in = ex.getInputStream(); |
294 |
|
|
295 |
String id = ex.getId(); |
String id = ex.getId(); |
296 |
throw4(in, id); |
throw4(in, id); |
297 |
} |
} |
320 |
catch (ApplicationException ex) |
catch (ApplicationException ex) |
321 |
{ |
{ |
322 |
in = ex.getInputStream(); |
in = ex.getInputStream(); |
323 |
|
|
324 |
String id = ex.getId(); |
String id = ex.getId(); |
325 |
throw4(in, id); |
throw4(in, id); |
326 |
} |
} |
351 |
catch (ApplicationException ex) |
catch (ApplicationException ex) |
352 |
{ |
{ |
353 |
in = ex.getInputStream(); |
in = ex.getInputStream(); |
354 |
|
|
355 |
String id = ex.getId(); |
String id = ex.getId(); |
356 |
throw4(in, id); |
throw4(in, id); |
357 |
throw new InternalError(); |
throw new InternalError(); |
416 |
* @throws MARSHAL if the id does not match any of the previous 4 exceptions. |
* @throws MARSHAL if the id does not match any of the previous 4 exceptions. |
417 |
*/ |
*/ |
418 |
protected void throw4(InputStream in, String id) |
protected void throw4(InputStream in, String id) |
419 |
throws MARSHAL, InvalidName, CannotProceed, |
throws MARSHAL, InvalidName, CannotProceed, NotFound |
|
NotFound |
|
420 |
{ |
{ |
421 |
if (id.equals(NotFoundHelper.id())) |
if (id.equals(NotFoundHelper.id())) |
422 |
throw NotFoundHelper.read(in); |
throw NotFoundHelper.read(in); |
444 |
* @throws MARSHAL if the id does not match any of the previous 4 exceptions. |
* @throws MARSHAL if the id does not match any of the previous 4 exceptions. |
445 |
*/ |
*/ |
446 |
protected void throw5(InputStream in, String id) |
protected void throw5(InputStream in, String id) |
447 |
throws MARSHAL, AlreadyBound, InvalidName, CannotProceed, |
throws MARSHAL, AlreadyBound, InvalidName, CannotProceed, |
448 |
NotFound |
NotFound |
449 |
{ |
{ |
450 |
if (id.equals(AlreadyBoundHelper.id())) |
if (id.equals(AlreadyBoundHelper.id())) |
451 |
throw AlreadyBoundHelper.read(in); |
throw AlreadyBoundHelper.read(in); |
452 |
else |
else |
453 |
throw4(in, id); |
throw4(in, id); |
454 |
} |
} |
455 |
} |
} |