Package org.apache.qpid.proton.codec.jni

Examples of org.apache.qpid.proton.codec.jni.JNIData


    }

    private void encodeApplicationProperies()
    {
        JNIData data = new JNIData(Proton.pn_message_properties(_impl));
        data.clear();
        Map appProperties;
        if(_applicationProperties != null
           && (appProperties = _applicationProperties.getValue()) != null
           && !appProperties.isEmpty())
        {
            data.putJavaMap(appProperties);
        }
    }
View Full Code Here


        }
    }

    private void encodeBody()
    {
        JNIData data = new JNIData(Proton.pn_message_body(_impl));
        data.clear();
        if(_body instanceof Data)
        {
            Proton.pn_message_set_inferred(_impl, true);
            data.putBinary(((Data) _body).getValue());
        }
        else if(_body instanceof AmqpSequence)
        {
            Proton.pn_message_set_inferred(_impl, true);
            data.putJavaList(((AmqpSequence)_body).getValue());
        }
        else if(_body instanceof AmqpValue)
        {
            Proton.pn_message_set_inferred(_impl, false);
            data.putObject(((AmqpValue) _body).getValue());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.proton.codec.jni.JNIData

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.