Package org.omg.IOP

Examples of org.omg.IOP.CodecFactory


        catch (InvalidName e)
        {
            String message = "Unexpected error accessing Codec Factory";
            throw new INITIALIZE(message);
        }
        CodecFactory codecFactory = CodecFactoryHelper.narrow(obj);

        Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1,
                (byte) 2);
        try
        {
            return codecFactory.create_codec(encoding);
        }
        catch (UnknownEncoding e)
        {
            String message = "Unexpected error of encoding";
            throw new INITIALIZE(message);
View Full Code Here


        try
        {
            Encoding encoding =
                new Encoding(ENCODING_CDR_ENCAPS.value, (byte) 1, (byte) 0);

            CodecFactory codec_factory =
                (CodecFactory)orb.resolve_initial_references("CodecFactory");

            codec = codec_factory.create_codec(encoding);
        }
        catch (Exception e)
        {
            logger.error("Error initing SASComponentInterceptor: ",e);
        }
View Full Code Here

     *            informação do ORB
     * @return o Codec.
     */
    private Codec createCodec(ORBInitInfo info)
    {
        CodecFactory codecFactory = info.codec_factory();

        Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                ENCODING_CDR_ENCAPS_MAJOR_VERSION, ENCODING_CDR_ENCAPS_MINOR_VERSION);

        try
        {
            return codecFactory.create_codec(encoding);
        }
        catch (UnknownEncoding e)
        {
            String message = "Unexpected error creating codec";
            throw new INITIALIZE(message);
View Full Code Here

        Codec codec = null;

        fineLog( "J2EE Initializer post_init");
        fineLog( "Creating Codec for CDR encoding");

        CodecFactory cf = info.codec_factory();

        byte major_version = 1;
        byte minor_version = 2;
        Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                major_version, minor_version);
        try {
            codec = cf.create_codec(encoding);

            IIOPUtils iiopUtils = IIOPUtils.getInstance();
            Collection<IIOPInterceptorFactory> interceptorFactories =
                    iiopUtils.getAllIIOPInterceptrFactories();
View Full Code Here

     *    operations by which Interceptors can be registered.
     */
    @Override
    public void post_init(org.omg.PortableInterceptor.ORBInitInfo info) {
        Codec codec = null;
        CodecFactory cf = info.codec_factory();
 
        byte major_version = 1;
        byte minor_version = 2;
        Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                                         major_version, minor_version);
        try {
            codec = cf.create_codec(encoding);
        } catch (org.omg.IOP.CodecFactoryPackage.UnknownEncoding e) {
            _logger.log(Level.WARNING,"UnknownEncoding from " + baseMsg,e);
      }
        try {
            info.add_ior_interceptor(new IORAddrAnyInterceptor(codec));
View Full Code Here

TOP

Related Classes of org.omg.IOP.CodecFactory

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.