Examples of EncapsulationInputStream


Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

  public InvocationProfile[] getInvocationProfiles(InternalIOR ior) {
    return getConnectionManager().getInvocationProfiles(ior);
  }

  public InputStreamBase getEncapsulationInputStream(byte[] component_data) {
    return new EncapsulationInputStream(this, component_data);
  }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    }
    return msg;
  }

  private String decodeMessage() {
    EncapsulationInputStream ein = new EncapsulationInputStream(in.__orb(),
        in.getGIOPVersion(), in.__get_char_converter(), in
            .__get_wchar_converter(), ctx.context_data, 0,
        ctx.context_data.length);

    return ein.read_wstring();
  }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    return components_cache[idx];
  }

  public static Profile read(AbstractORB orb, byte[] data) {

    EncapsulationInputStream ein = new EncapsulationInputStream(orb, data);
    IIOPProfile result = new IIOPProfile(orb);
    result.body = ProfileBody_1_0Helper.read(ein);
    if (result.body.iiop_version.major == 1
        && result.body.iiop_version.minor >= 1) {
      result.tagged_components = TaggedComponentSeqHelper.read(ein);
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    public int tag() {
        return TAG_CODE_SETS.value;
    }

    public static Component read(AbstractORB orb, byte[] data) {
        InputStream eis = new EncapsulationInputStream(orb, data);
        return new CodeSetsComponent(CodeSetComponentInfoHelper.read(eis));
    }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

                                                                                               trans.target_supports, mechanism);

    }

    public static IIOPTransportSpec[] read(AbstractORB orb, byte[] component_data, CompoundSecurityMechanism mechanism) {
        InputStream in = new EncapsulationInputStream(orb, component_data);
        org.omg.CSIIOP.TLS_SEC_TRANS trans = org.omg.CSIIOP.TLS_SEC_TRANSHelper
                .read(in);

        List list = new ArrayList();
        for (int i = 0; i < trans.addresses.length; i++) {
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    }


    public static Profile read(AbstractORB orb, byte[] data) {

        EncapsulationInputStream ein2 = new EncapsulationInputStream(orb, data);
        MultiComponentProfile result = new MultiComponentProfile(orb, data);
        result.tagged_components = TaggedComponentSeqHelper.read(ein2);
        return result;
    }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    private int getPort() {
        return port;
    }

    public static Component read(AbstractORB orb, byte[] data) {
        EncapsulationInputStream in = new EncapsulationInputStream(orb, data);
        String host = in.read_string();
        int port = in.read_short() & 0xffff;
        return new AlternateIIOPComponent(orb, host, port);
    }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    public static SecureInetTransport read(AbstractORB orb, InetAddress profile,
                                           Version version, byte[] component_data, CompoundSecurityMechanism mechanism)
    {

        InputStream is = new EncapsulationInputStream(orb, component_data);
        org.omg.SSLIOP.SSL ssl = org.omg.SSLIOP.SSLHelper.read(is);

        InetSocketAddress addr = new InetSocketAddress(profile, ssl.port & 0xffff);
        SSLSecureTransport trans = new SSLSecureTransport(version, addr,
                                                          ssl.target_requires, ssl.target_supports, mechanism);
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    public int tag() {
        return TAG_ORB_TYPE.value;
    }

    public static Component read(AbstractORB orb, byte[] data) {
        InputStream is = new EncapsulationInputStream(orb, data);
        return new ORBTypeComponent(is.read_long());
    }
View Full Code Here

Examples of org.apache.geronimo.corba.io.EncapsulationInputStream

    public int getTransportMechanismTag(int j) {
        return mech_list.mechanism_list[j].transport_mech.tag;
    }

    public static Component read(AbstractORB orb, byte[] data) {
        EncapsulationInputStream ein = new EncapsulationInputStream(orb, data);
        CompoundSecMechList mech_list = CompoundSecMechListHelper.read(ein);
        return new SecurityMechanismListComponent(orb, mech_list);
    }
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.