Examples of insert_string()


Examples of org.omg.CORBA.Any.insert_string()

      WebClassLoader wcl = (WebClassLoader)container.getWebClassLoader();
      String codebaseString;
      if (wcl != null && (codebaseString = wcl.getCodebaseString()) != null)
      {
         Any codebase = orb.create_any();
         codebase.insert_string(codebaseString);
         codebasePolicy = orb.create_policy(CodebasePolicy.TYPE, codebase);
         logger.debug("codebasePolicy: " + codebasePolicy);
      }
      else
      {
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

            // Create encapsulation
            //
           
            Any any = ORB.init().create_any();
           
            any.insert_string(codeBase);

            try {
                byte[] data = codec.encode(any);
                TaggedComponent component = new TaggedComponent(
                        TAG_JAVA_CODEBASE.value, data);
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

    {
        if (filterableHeader_ == null)
        {
            filterableHeader_ = new Property[parameters_.length + 1];
            Any _operationAny = sORB.create_any();
            _operationAny.insert_string(operationName_);
            filterableHeader_[0] = new Property(OPERATION_NAME, _operationAny);

            for (int x = 0; x < parameters_.length; ++x)
            {
                filterableHeader_[1 + x] = parameters_[x];
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

            Any nameAny = orb.create_any();
            if (principalName == null)
                principalName =
                    getSASContextPrincipalName(connection, client_context_id);

            nameAny.insert_string(principalName);
            ri.set_slot( SASInitializer.sasPrincipalNamePIC, nameAny);
        }
        catch (Exception e)
        {
            if (logger.isErrorEnabled())
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

    {
        try
        {
            TypeCode _tc = value.type();
            Any _ret = orb_.create_any();
            _ret.insert_string(_tc.name());

            return _ret;
        } catch (BadKind e)
        {
            throw newEvaluationException(e);
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

    {
        try
        {
            TypeCode _tc = value.type();
            Any _ret = orb_.create_any();
            _ret.insert_string(_tc.id());

            return _ret;
        } catch (BadKind e)
        {
            throw newEvaluationException(e);
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

  }

  public void testEquals()
  {
    Any other = orb.create_any();
    other.insert_string("other");
    any.insert_string("this");

    assertFalse("eq1", any.equal(other));

    any.insert_string("other");
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

      {
        Any s0 = ORB.init().create_any();
        Any s1 = ORB.init().create_any();

        s0.insert_string("Slot zero");
        s1.insert_string("Slot one");

        info.set_slot(ucInitialiser.slot_0, s0);
        info.set_slot(ucInitialiser.slot_1, s1);
      }
    catch (Exception e)
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

        Any s0 = ORB.init().create_any();
        Any s1 = ORB.init().create_any();

        s0.insert_string("Client slot zero");
        s1.insert_string("Client slot one");
      }
    catch (Exception e)
      {
        throw new RuntimeException("Client Slot problem", e);
      }
View Full Code Here

Examples of org.omg.CORBA.Any.insert_string()

        // Saying local hello.
        poa_comTester Tester = poa_comTesterHelper.narrow(object);

        Any a0 = orb.create_any();
        a0.insert_string("Initial value for slot 0");

        Any a1 = orb.create_any();
        a1.insert_string("Initial value for slot 1");

        ORB orb2 = ORB.init(new String[ 0 ], initialisers);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.