예제 #1
0
  public Profile demarshal_profile(
      TaggedProfileHolder tagged_profile, TaggedComponentSeqHolder components) {
    if (tagged_profile.value.tag != this.tag) {
      throw new org.omg.CORBA.BAD_PARAM(
          "wrong profile for WIOP transport, tag: " + tagged_profile.value.tag);
    } else {
      IIOPProfile result = new IIOPProfile(tagged_profile.value.profile_data);

      try {
        result.configure(configuration);
      } catch (ConfigurationException e) {
        throw new org.omg.CORBA.INTERNAL("ConfigurationException: " + e.toString());
      }

      try {
        result.configure(configuration);
      } catch (ConfigurationException e) {
        throw new org.omg.CORBA.INTERNAL("ConfigurationException: " + e.toString());
      }

      components.value = result.getComponents().asArray();

      return new WIOPProfile(result, this.tag);
    }
  }
예제 #2
0
  public Profile demarshal_profile(
      TaggedProfileHolder tagged_profile, TaggedComponentSeqHolder components) {
    if (tagged_profile.value.tag != TAG_DIOP_UDP) {
      throw new org.omg.CORBA.BAD_PARAM(
          "wrong profile for DIOP transport, tag: " + tagged_profile.value.tag);
    }

    IIOPProfile result = new IIOPProfile(tagged_profile.value.profile_data);
    components.value = result.getComponents().asArray();
    return result;
  }