Author: rhs
Date: Mon Oct 1 15:15:27 2012
New Revision: 1392380
URL: http://svn.apache.org/viewvc?rev=1392380&view=rev
Log:
added format property to java shim
Modified:
qpid/proton/trunk/proton-j/src/main/scripts/proton.py
Modified: qpid/proton/trunk/proton-j/src/main/scripts/proton.py
URL:
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-j/src/main/scripts/proton.py?rev=1392380&r1=1392379&r2=1392380&view=diff
==============================================================================
--- qpid/proton/trunk/proton-j/src/main/scripts/proton.py (original)
+++ qpid/proton/trunk/proton-j/src/main/scripts/proton.py Mon Oct 1 15:15:27
2012
@@ -443,6 +443,12 @@ class Message(object):
self.impl.setContentEncoding(content_encoding)
content_encoding = property(_get_content_encoding, _set_content_encoding)
+ def _get_format(self):
+ return self.impl.getFormat()
+ def _set_format(self, format):
+ self.impl.setMessageFormat(format)
+ format = property(_get_format, _set_format)
+
class SASL(object):
def __init__(self, *args, **kwargs):
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]