Package org.omg.IOP

Examples of org.omg.IOP.Codec


/*    */   {
/*    */     try
/*    */     {
/* 64 */       Encoding encoding = new Encoding(0, 1, 0);
/*    */
/* 67 */       Codec codec = info.codec_factory().create_codec(encoding);
/*    */
/* 70 */       info.add_ior_interceptor(new CSIv2IORInterceptor(codec));
/*    */
/* 73 */       info.register_policy_factory(-2023406815, new CSIv2PolicyFactory(codec));
/*    */
View Full Code Here


/*     */   {
/*     */     try
/*     */     {
/*  83 */       Encoding encoding = new Encoding(0, 1, 0);
/*     */
/*  86 */       Codec codec = info.codec_factory().create_codec(encoding);
/*     */
/*  89 */       SASClientIdentityInterceptor clientInterceptor = new SASClientIdentityInterceptor(codec);
/*     */
/*  91 */       info.add_client_request_interceptor(clientInterceptor);
/*     */
View Full Code Here

/*    */   {
/*    */     try
/*    */     {
/* 86 */       Encoding encoding = new Encoding(0, 1, 0);
/*    */
/* 89 */       Codec codec = info.codec_factory().create_codec(encoding);
/*    */
/* 92 */       Object obj = info.resolve_initial_references("SASCurrent");
/* 93 */       SASCurrentImpl sasCurrentImpl = (SASCurrentImpl)obj;
/* 94 */       SASClientInterceptor clientInterceptor = new SASClientInterceptor(codec);
/*    */
View Full Code Here

/*    */   {
/*    */     try
/*    */     {
/* 60 */       Encoding encoding = new Encoding(0, 1, 0);
/*    */
/* 63 */       Codec codec = info.codec_factory().create_codec(encoding);
/* 64 */       info.add_ior_interceptor(new TxIORInterceptor(codec));
/*    */     }
/*    */     catch (Exception e)
/*    */     {
/* 68 */       throw new NestedRuntimeException("Unexpected", e);
View Full Code Here

/*    */   {
/*    */     try
/*    */     {
/* 61 */       Encoding encoding = new Encoding(0, 1, 0);
/*    */
/* 64 */       Codec codec = info.codec_factory().create_codec(encoding);
/*    */
/* 67 */       TxServerClientInterceptor.init(codec);
/*    */
/* 70 */       TxServerClientInterceptor interceptor = new TxServerClientInterceptor();
/* 71 */       info.add_client_request_interceptor(interceptor);
View Full Code Here

        PropagationContext propagationContext;
        if (serviceContext == null) {
            propagationContext = null;
        } else {
            byte[] encoded = serviceContext.context_data;
            Codec codec = Util.getCodec();
            Any any;
            try {
                any = codec.decode_value(encoded, PropagationContextHelper.type());
            } catch (FormatMismatch formatMismatch) {
                throw (INTERNAL) new INTERNAL("Could not decode encoded propagation context").initCause(formatMismatch);
            } catch (TypeMismatch typeMismatch) {
                throw (INTERNAL) new INTERNAL("Could not decode encoded propagation context").initCause(typeMismatch);
            }
View Full Code Here

            //but, it needs an xid!
            TransIdentity transIdentity = new TransIdentity(null, null, NULL_XID);
            int timeout = 0;
            Any implementationSpecificData = Util.getORB().create_any();
            PropagationContext propagationContext = new PropagationContext(timeout, transIdentity, NO_PARENTS, implementationSpecificData);
            Codec codec = Util.getCodec();
            Any any = Util.getORB().create_any();
            PropagationContextHelper.insert(any, propagationContext);
            byte[] encodedPropagationContext;
            try {
                encodedPropagationContext = codec.encode_value(any);
            } catch (InvalidTypeForEncoding invalidTypeForEncoding) {
                throw (INTERNAL)new INTERNAL("Could not encode propagationContext").initCause(invalidTypeForEncoding);
            }
            ServiceContext otsServiceContext = new ServiceContext(TransactionService.value, encodedPropagationContext);
            ri.add_request_service_context(otsServiceContext, true);
View Full Code Here

     * @param info object that provides initialization attributes
     *            and operations by which interceptors are registered.
     */
    @Override
    public void post_init(org.omg.PortableInterceptor.ORBInitInfo info) {
        Codec codec = null;

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

        CodecFactory cf = info.codec_factory();
View Full Code Here

        {
            slot_id = info.allocate_slot_id();

            Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                                             (byte) 1, (byte) 0);
            Codec codec = info.codec_factory().create_codec(encoding);

            info.add_server_request_interceptor( new ServerInterceptor( slot_id, codec ));
        }
        catch( Exception e )
        {
View Full Code Here

        {
            slot_id = info.allocate_slot_id();

            Encoding encoding = new Encoding(ENCODING_CDR_ENCAPS.value,
                                             (byte) 1, (byte) 0);
            Codec codec = info.codec_factory().create_codec(encoding);

            info.add_client_request_interceptor( new ClientInterceptor( slot_id, codec ));
        }
        catch( Exception e )
        {
View Full Code Here

TOP

Related Classes of org.omg.IOP.Codec

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.