/** * Create the ForwardRequest typecode (structure, * named "ForwardRequest"). * The typecode states that the structure contains the * following fields: forward_reference. */ public static TypeCode type() { ORB orb = OrbRestricted.Singleton; StructMember[] members = new StructMember[ 1 ]; TypeCode field; field = ObjectHelper.type(); members [ 0 ] = new StructMember("forward_reference", field, null); return orb.create_exception_tc(id(), "ForwardRequest", members); }
/** {@inheritDoc} */ public org.omg.CORBA.Object resolve_str(String a_name_string) throws NotFound, CannotProceed, InvalidName { InputStream in = null; try { OutputStream _out = _request("resolve_str", true); StringNameHelper.write(_out, a_name_string); in = _invoke(_out); return ObjectHelper.read(in); } catch (ApplicationException ex) { in = ex.getInputStream(); String id = ex.getId(); throw4(in, id); // Should never happen. throw new InternalError(); } catch (RemarshalException _rm) { return resolve_str(a_name_string); } finally { _releaseReply(in); } }
/** {@inheritDoc} */ public void bind(NameComponent[] a_name, org.omg.CORBA.Object an_object) throws NotFound, CannotProceed, InvalidName, AlreadyBound { InputStream in = null; try { OutputStream out = _request("bind", true); NameHelper.write(out, a_name); ObjectHelper.write(out, an_object); in = _invoke(out); } catch (ApplicationException ex) { in = ex.getInputStream(); String id = ex.getId(); throw5(in, id); } catch (RemarshalException remarsh) { bind(a_name, an_object); } finally { _releaseReply(in); } }
/** {@inheritDoc} */ public void rebind(NameComponent[] a_name, org.omg.CORBA.Object an_object) throws NotFound, CannotProceed, InvalidName { InputStream in = null; try { OutputStream out = _request("rebind", true); NameHelper.write(out, a_name); ObjectHelper.write(out, an_object); in = _invoke(out); } catch (ApplicationException ex) { in = ex.getInputStream(); String id = ex.getId(); throw4(in, id); } catch (RemarshalException remarsh) { rebind(a_name, an_object); } finally { _releaseReply(in); } }
/** {@inheritDoc} */ public org.omg.CORBA.Object resolve(NameComponent[] a_name) throws NotFound, CannotProceed, InvalidName { InputStream in = null; try { OutputStream out = _request("resolve", true); NameHelper.write(out, a_name); in = _invoke(out); org.omg.CORBA.Object __result = ObjectHelper.read(in); return __result; } catch (ApplicationException ex) { in = ex.getInputStream(); String id = ex.getId(); throw4(in, id); throw new InternalError(); } catch (RemarshalException remarsh) { return resolve(a_name); } finally { _releaseReply(in); } }
/** * Create the ForwardRequest typecode (structure, named "ForwardRequest"). The * typecode states that the structure contains the following fields: forward. */ public static TypeCode type() { ORB orb = OrbRestricted.Singleton; StructMember[] members = new StructMember[1]; TypeCode field = ObjectHelper.type(); members[0] = new StructMember("forward", field, null); return orb.create_exception_tc(id(), "ForwardRequest", members); }