public void post_init(ORBInitInfo info) { try { // Use CDR encapsulation with GIOP 1.0 encoding Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); info.add_ior_interceptor(new TxIORInterceptor(codec)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
@Override public void post_init(ORBInitInfo info) { try { // use CDR encapsulation with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // add IOR interceptor for CSIv2. info.add_ior_interceptor(new CSIv2IORInterceptor(codec)); // register CSIv2-related policy factories. info.register_policy_factory(CSIv2Policy.TYPE, new CSIv2PolicyFactory(codec)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
public void pre_init(ORBInitInfo info) { Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte)1,(byte) 0); CodecFactory codecFactory = info.codec_factory(); try { Codec codec = codecFactory.create_codec(encoding); RMIInterceptor rmiInterceptor = new RMIInterceptor(codec); info.add_ior_interceptor(rmiInterceptor); } catch (UserException e) { logger.log(Level.FINER, "cannot register RMI Interceptor" + e.getMessage(), e); } }
info.add_ior_interceptor(new IORAddrAnyInterceptor(codec)); } catch (DuplicateName ex) { _logger.log(Level.WARNING,"DuplicateName from " + baseMsg,ex);
/** * Adds the CodeSetInfoInterceptor * to the set of IORInterceptors. * * @param info the info object. */ public void post_init(ORBInitInfo info) { final ORB orb = ((org.jacorb.orb.portableInterceptor.ORBInitInfoImpl) info).getORB(); final Configuration config = orb.getConfiguration(); final Logger logger = config.getLogger("org.jacorb.interceptors.ior_init"); try { int giop_minor = config.getAttributeAsInteger("jacorb.giop_minor_version", 2); if( giop_minor > 0 ) { info.add_ior_interceptor(new CodeSetInfoInterceptor(orb)); } } catch (Exception e) { logger.error ("Unexpected exception in IORInterceptorInitializer", e); throw new INTERNAL(e.toString()); } }
public void post_init(ORBInitInfo info) { try { // Use CDR encapsulation with GIOP 1.0 encoding Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); info.add_ior_interceptor(new TxIORInterceptor(codec)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
public void post_init(ORBInitInfo info) { try { // Use CDR encapsulation with GIOP 1.0 encoding Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); info.add_ior_interceptor(new TxIORInterceptor(codec)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
public ServerRequestInterceptor createServerRequestInterceptor(ORBInitInfo info, Codec codec) { ServerRequestInterceptor ret = null; try { if (!penv.getProcessType().isServer()) { return null; } if (altSecFactory != null || (interceptorFactory != null && createAlternateSecurityInterceptorFactory())) { ret = altSecFactory.getServerRequestInterceptor(codec); } else { ret = getServerInterceptorInstance(codec); } //also register the IOR Interceptor here if (info instanceof com.sun.corba.ee.spi.legacy.interceptor.ORBInitInfoExt) { com.sun.corba.ee.spi.legacy.interceptor.ORBInitInfoExt infoExt = (com.sun.corba.ee.spi.legacy.interceptor.ORBInitInfoExt)info; IORInterceptor secIOR = getSecIORInterceptorInstance(codec, infoExt.getORB()); info.add_ior_interceptor(secIOR); } } catch (DuplicateName ex) { _logger.log(Level.SEVERE, null, ex); throw new RuntimeException(ex); } return ret; }
info.add_ior_interceptor(new SASComponentInterceptor(info));
@Override public void post_init(ORBInitInfo info) { try { // use CDR encapsulation with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // add IOR interceptor for CSIv2. info.add_ior_interceptor(new CSIv2IORInterceptor(codec)); // register CSIv2-related policy factories. info.register_policy_factory(CSIv2Policy.TYPE, new CSIv2PolicyFactory(codec)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
@Override public void post_init(ORBInitInfo info) { try { // use CDR encapsulation with GIOP 1.0 encoding. Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, /* GIOP version */ (byte) 0 /* GIOP revision*/); Codec codec = info.codec_factory().create_codec(encoding); // add IOR interceptor for CSIv2. info.add_ior_interceptor(new CSIv2IORInterceptor(codec)); // register CSIv2-related policy factories. info.register_policy_factory(CSIv2Policy.TYPE, new CSIv2PolicyFactory(codec)); } catch (Exception e) { throw IIOPLogger.ROOT_LOGGER.unexpectedException(e); } } }
info.add_ior_interceptor(iorInterceptor);
info.add_client_request_interceptor(client_interceptor); info.add_server_request_interceptor(server_interceptor); info.add_ior_interceptor(ior_interceptor);
info.add_ior_interceptor(new IORInterceptorImpl(codec)); InterceptorImpl interceptor = new InterceptorImpl(pic, codec, slotIds, tsi);