Package org.apache.yoko.orb.CORBA

Examples of org.apache.yoko.orb.CORBA.InputStream


        org.apache.yoko.orb.OB.Assert._OB_assert(profile < ior.profiles.length);

        org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(
                ior.profiles[profile].profile_data,
                ior.profiles[profile].profile_data.length);
        InputStream in = new InputStream(buf, 0, false, null, 0);
        in._OB_readEndian();
        org.omg.IIOP.ProfileBody_1_0 body = org.omg.IIOP.ProfileBody_1_0Helper
                .read(in);

        org.apache.yoko.orb.OCI.ProfileInfo profileInfo = new org.apache.yoko.orb.OCI.ProfileInfo();
        profileInfo.key = key;
View Full Code Here


                // Get the IIOP profile body
                //
                byte[] data = ior.profiles[i].profile_data;
                org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(
                        data, data.length);
                InputStream in = new InputStream(buf, 0, false, null, 0);
                in._OB_readEndian();
                org.omg.IIOP.ProfileBody_1_0 body = org.omg.IIOP.ProfileBody_1_0Helper
                        .read(in);

                //
                // Read components if the IIOP version is > 1.0
                //
                org.omg.IOP.TaggedComponent[] components;
                if (body.iiop_version.major > 1 || body.iiop_version.minor > 0) {
                    int len = in.read_ulong();
                    components = new org.omg.IOP.TaggedComponent[len];
                    for (int j = 0; j < len; j++)
                        components[j] = org.omg.IOP.TaggedComponentHelper
                                .read(in);
                } else
                    components = new org.omg.IOP.TaggedComponent[0];

                if (performMatch) {
                    //
                    // Check primary host/port
                    //
                    boolean match = false;
                    if (portNo == body.port
                            && hostMatch(host, body.host, loopbackMatches)) {
                        match = true;
                    }

                    //
                    // Check alternate host/port
                    //
                    if (!match) {
                        for (int j = 0; j < components.length && !match; j++) {
                            if (components[j].tag == org.omg.IOP.TAG_ALTERNATE_IIOP_ADDRESS.value) {
                                byte[] d = components[j].component_data;
                                org.apache.yoko.orb.OCI.Buffer b = new org.apache.yoko.orb.OCI.Buffer(
                                        d, d.length);
                                InputStream s = new InputStream(b, 0, false,
                                        null, 0);
                                s._OB_readEndian();
                                String altHost = s.read_string();
                                short altPort = s.read_ushort();
                                if (portNo == altPort
                                        && hostMatch(host, altHost,
                                                loopbackMatches)) {
                                    match = true;
                                }
View Full Code Here

        for (p1 = 0, b1 = 0; p1 < ior1.profiles.length; p1++)
            if (ior1.profiles[p1].tag == org.omg.IOP.TAG_INTERNET_IOP.value) {
                byte[] data = ior1.profiles[p1].profile_data;
                org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(
                        data, data.length);
                InputStream in = new InputStream(buf, 0, false, null, 0);
                in._OB_readEndian();
                bodies1[b1++] = org.omg.IIOP.ProfileBody_1_0Helper.read(in);
            }

        if (b1 != cnt1)
            throw new InternalError();

        //
        // Create an array with all IIOP profile bodies of ior2
        //
        bodies2 = new org.omg.IIOP.ProfileBody_1_0[cnt2];
        for (p2 = 0, b2 = 0; p2 < ior2.profiles.length; p2++)
            if (ior2.profiles[p2].tag == org.omg.IOP.TAG_INTERNET_IOP.value) {
                byte[] data = ior2.profiles[p2].profile_data;
                org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(
                        data, data.length);
                InputStream in = new InputStream(buf, 0, false, null, 0);
                in._OB_readEndian();
                bodies2[b2++] = org.omg.IIOP.ProfileBody_1_0Helper.read(in);
            }

        if (b2 != cnt2)
            throw new InternalError();
View Full Code Here

                // Get the first IIOP profile body
                //
                byte[] data = ior.profiles[i].profile_data;
                org.apache.yoko.orb.OCI.Buffer buf = new org.apache.yoko.orb.OCI.Buffer(
                        data, data.length);
                InputStream in = new InputStream(buf, 0, false, null, 0);
                in._OB_readEndian();
                org.omg.IIOP.ProfileBody_1_0 body = org.omg.IIOP.ProfileBody_1_0Helper
                        .read(in);

                //
                // Add port to hash
View Full Code Here

TOP

Related Classes of org.apache.yoko.orb.CORBA.InputStream

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.