コード例 #1
0
 public void pre_init(ORBInitInfo info) {
     int slotId = info.allocate_slot_id();
     Codec codec = info.codec_factory.create_codec(
                       new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));
     m_requestIntercept = new TestRequestInterceptor(String.Empty, "request", codec, slotId);
     info.add_server_request_interceptor(m_requestIntercept);
 }
コード例 #2
0
        public void pre_init(ORBInitInfo info)
        {
            Codec codec = info.codec_factory.create_codec(
                new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));

            m_requestIntercept = new TestRequestInterceptor(String.Empty, "A", codec);
            info.add_client_request_interceptor(m_requestIntercept);
        }
コード例 #3
0
 public void pre_init(ORBInitInfo info) {
     Codec codec = info.codec_factory.create_codec(
                       new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));
     m_requestIntercept = new TestRequestInterceptor(String.Empty, "request", codec);
     m_iorIntercept = new TestIORInterceptor(String.Empty, "ior", codec);
     info.add_server_request_interceptor(m_requestIntercept);
     info.add_ior_interceptor(m_iorIntercept);
 }
コード例 #4
0
        public void pre_init(ORBInitInfo info)
        {
            int   slotId = info.allocate_slot_id();
            Codec codec  = info.codec_factory.create_codec(
                new Encoding(ENCODING_CDR_ENCAPS.ConstVal, 1, 2));

            m_requestIntercept = new TestRequestInterceptor(String.Empty, "request", codec, slotId);
            info.add_server_request_interceptor(m_requestIntercept);
        }