Package org.omg.CORBA

Examples of org.omg.CORBA.Any


            TaggedComponent tc = ri
                    .get_effective_component(TAG_CSI_SEC_MECH_LIST.value);

            byte[] data = tc.component_data;

            Any sl_any = codec.decode_value(data, CompoundSecMechListHelper
                    .type());
            CompoundSecMechList sl = CompoundSecMechListHelper.extract(sl_any);

            if (sl.mechanism_list.length == 0) {
                log.fine("empty sec mech list");
View Full Code Here


           * Porting.open_encapsulated_input_stream( sasSC.context_data, 0,
           * sasSC.context_data.length, getOrb());
           *
           * return SASContextBodyHelper.read(in);
           */
        Any any;
        try {
            any = codec.decode_value(sasSC.context_data, SASContextBodyHelper
                    .type());
        }
        catch (FormatMismatch ex) {
View Full Code Here

           * org.omg.CORBA.portable.InputStream in = openEncapsulatedInputStream(
           * seccomp.component_data, 0, seccomp.component_data.length, getOrb());
           *
           * return CompoundSecMechListHelper.read(in);
           */
        Any any = codec.decode_value(seccomp.component_data,
                                     CompoundSecMechanismsHelper.type());
        return CompoundSecMechListHelper.extract(any);
    }
View Full Code Here

        // out.write_long(data.length);
        // out.write_octet_array(data, 0, data.length);
        //
        // return Porting.extract_data(out);

        Any a = getOrb().create_any();
        OctetSeqHelper.insert(a, data);

        try {
            return codec.encode_value(a);
        }
View Full Code Here

    }

    byte[] encodeGSSUPToken(InitialContextToken gssupToken) {

        // first, create the Any encoding of the token
        Any a = getOrb().create_any();
        InitialContextTokenHelper.insert(a, gssupToken);

        //OutputStream out = a.create_output_stream();
        //a.type(InitialContextTokenHelper.type());
        //InitialContextTokenHelper.write(out, gssupToken);
View Full Code Here

        byte[] token = new byte[data.length - idx];
        System.arraycopy(data, idx, token, 0, data.length - idx);

        try {
            Any a = codec.decode_value(data, InitialContextTokenHelper.type());
            return InitialContextTokenHelper.extract(a);
        }
        catch (UserException e) {
            MARSHAL me = new MARSHAL("cannot decode local security descriptor",
                                     0, CompletionStatus.COMPLETED_NO);
View Full Code Here

    ServiceContext encodeSASContextBody(SASContextBody sasBody) {
        //
        // Create encapsulation for SAS context body
        //

        Any a = getOrb().create_any();
        SASContextBodyHelper.insert(a, sasBody);

        // wrap the ANY in an encapsulation
        byte[] data;
        try {
View Full Code Here

        if (isTransactionActive(transactionManager)) {
            //19.6.2.1 (1) propagate an "empty" transaction context.
            //but, it needs an xid!
            TransIdentity transIdentity = new TransIdentity(null, null, NULL_XID);
            int timeout = 0;
            Any implementationSpecificData = Util.getORB().create_any();
            PropagationContext propagationContext = new PropagationContext(timeout, transIdentity, NO_PARENTS, implementationSpecificData);
            Codec codec = Util.getCodec();
            Any any = Util.getORB().create_any();
            PropagationContextHelper.insert(any, propagationContext);
            byte[] encodedPropagationContext;
            try {
                encodedPropagationContext = codec.encode_value(any);
            } catch (InvalidTypeForEncoding invalidTypeForEncoding) {
View Full Code Here

        try
        {
            in.setGIOPMinor( giopMinor );

            in.openEncapsulatedArray();
            Any result = in.read_any();

            //not necessary, since stream is never used again
            //in.closeEncapsulation();

            return result;
View Full Code Here

        try
        {
            in.setGIOPMinor( giopMinor );

            in.openEncapsulatedArray();
            Any result = orb.create_any();
            result.read_value(in, tc);

            //not necessary, since stream is never used again
            //in.closeEncasupaltion();

            return result;
View Full Code Here

TOP

Related Classes of org.omg.CORBA.Any

Copyright © 2018 www.massapicom. 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.