Examples of insert_string()


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

        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);

        try
          {
View Full Code Here

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

            case TCKind._tk_string:
                // the empty string for string and wstring
                // Make sure that type code for bounded strings gets respected
                returnValue.type(typeCode);
                // Doesn't erase the type of bounded string
                returnValue.insert_string("");
                break;
            case TCKind._tk_wstring:
                // the empty string for string and wstring
                // Make sure that type code for bounded strings gets respected
                returnValue.type(typeCode);
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()

            case TCKind._tk_string:
                // the empty string for string and wstring
                // Make sure that type code for bounded strings gets respected
                returnValue.type(typeCode);
                // Doesn't erase the type of bounded string
                returnValue.insert_string("");
                break;
            case TCKind._tk_wstring:
                // the empty string for string and wstring
                // Make sure that type code for bounded strings gets respected
                returnValue.type(typeCode);
View Full Code Here

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

            // get codebase string from CodebasePolicy.
            String codebase = codebasePolicy.getCodebase();

            // encapsulate codebase string into TaggedComponent.
            Any any = ORB.init().create_any();
            any.insert_string(codebase);
            byte[] taggedComponentData;
            try {
                taggedComponentData = this.codec.encode_value(any);
            } catch (InvalidTypeForEncoding e) {
                throw new RuntimeException("Exception establishing Java codebase component:" + e);
View Full Code Here

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

     
      // setup a codebase policy, the CodebaseInterceptor will translate this to a TAG_JAVA_CODEBASE
      String codebaseString = wcl.getCodebaseString();
      log.debug("codebase = " + codebaseString);
      Any codebase = orb.create_any();
      codebase.insert_string(codebaseString);
      Policy codebasePolicy;
      codebasePolicy = orb.create_policy(CodebasePolicy.TYPE, codebase);
     
      // Create csiv2Policy for both home and remote containing
      // IorSecurityConfigMetadata
View Full Code Here

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

      // the first struct member is a string,
            // the member name is "first"

      NameValuePair[]  nvp_seq = new NameValuePair[2];
      Any first_member_any = orb.create_any();
      first_member_any.insert_string("first");
      nvp_seq[0] = new NameValuePair("first", first_member_any );

      /*
       the second member is a recursive sequence, ie. the element
             type of the sequence is that of the enclosing  struct, the
View Full Code Here

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

    for(int i=0; i < 30; i++)
    {
      try
      {
        Any any = orb.create_any();
        any.insert_string("Test the channel!" + i);
        System.out.println("Pushing event # " + (i) );
        proxyPushConsumer.push( any );
      }
      catch(Disconnected d)
      {
View Full Code Here

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

    Any jobAny = orb.create_any();
    jobAny.insert_long( job.jobId );
    cancelEvent.filterable_data[0] = new Property("job_id ", jobAny );

    Any userAny = orb.create_any();
    userAny.insert_string( job.userId );
    cancelEvent.filterable_data[1] = new Property("user_id ", userAny );

    Any urgentAny = orb.create_any();
    urgentAny.insert_boolean( true );
    cancelEvent.filterable_data[2] = new Property( "urgent", urgentAny );
View Full Code Here

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

        Any jobAny = orb.create_any();
        jobAny.insert_long( job.jobId );
        printedEvent.filterable_data[0] = new Property("job_id", jobAny );

        Any userAny = orb.create_any();
        userAny.insert_string( job.userId );
        printedEvent.filterable_data[1] = new Property("user_id", userAny );

                    Any urgentAny = orb.create_any();
                    urgentAny.insert_boolean( false );
                    printedEvent.filterable_data[2] = new Property( "urgent", urgentAny );
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.