247248249250251252253254255256257
} private void encodeDeliveryAnnotations() { JNIData data = new JNIData(Proton.pn_message_instructions(_impl)); data.clear(); Map annotations; if(_deliveryAnnotations != null && (annotations = _deliveryAnnotations.getValue()) != null && !annotations.isEmpty()) {
260261262263264265266267268269270
} private void encodeMessageAnnotations() { JNIData data = new JNIData(Proton.pn_message_annotations(_impl)); data.clear(); Map annotations; if(_messageAnnotations != null && (annotations = _messageAnnotations.getValue()) != null && !annotations.isEmpty()) {
310311312313314315316317318319320
} 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()) {
323324325326327328329330331332333
} 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()); }
248249250251252253254255256257258
@Override @ProtonCEquivalent("pn_connection_offered_capabilities") public void setOfferedCapabilities(Symbol[] capabilities) { JNIData data = new JNIData(Proton.pn_connection_offered_capabilities(_impl)); data.clear(); if(capabilities != null) { data.putJavaArray(capabilities); } }
@Override @ProtonCEquivalent("pn_connection_desired_capabilities") public void setDesiredCapabilities(Symbol[] capabilities) { JNIData data = new JNIData(Proton.pn_connection_desired_capabilities(_impl)); data.clear(); if(capabilities != null) { data.putJavaArray(capabilities); } }
214215216217218219220221222223224
226227228229230231232233234235236