summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0332/stanza/request.py
diff options
context:
space:
mode:
authorSangeeth Saravanaraj <sangeeth@riptideio.com>2015-01-29 08:33:40 +0530
committerSangeeth Saravanaraj <sangeeth@riptideio.com>2015-01-29 08:33:40 +0530
commita96f608469e74d39d3e7a2a86399dbb724ffadec (patch)
treeadea9c5e34b3a504fdfaa84ff6ae2ba9ee550af2 /sleekxmpp/plugins/xep_0332/stanza/request.py
parente1f25604ecbf5d6c196080cd8394191c7ea459c9 (diff)
downloadslixmpp-a96f608469e74d39d3e7a2a86399dbb724ffadec.tar.gz
slixmpp-a96f608469e74d39d3e7a2a86399dbb724ffadec.tar.bz2
slixmpp-a96f608469e74d39d3e7a2a86399dbb724ffadec.tar.xz
slixmpp-a96f608469e74d39d3e7a2a86399dbb724ffadec.zip
Composing request and response.
Diffstat (limited to 'sleekxmpp/plugins/xep_0332/stanza/request.py')
-rw-r--r--sleekxmpp/plugins/xep_0332/stanza/request.py26
1 files changed, 23 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0332/stanza/request.py b/sleekxmpp/plugins/xep_0332/stanza/request.py
index ea2650c0..51e565e5 100644
--- a/sleekxmpp/plugins/xep_0332/stanza/request.py
+++ b/sleekxmpp/plugins/xep_0332/stanza/request.py
@@ -9,7 +9,6 @@
"""
from sleekxmpp.xmlstream import ElementBase
-from sleekxmpp.plugins.xep_0332.stanza import NAMESPACE
class Request(ElementBase):
@@ -43,7 +42,28 @@ class Request(ElementBase):
"""
name = 'request'
- namespace = NAMESPACE
- interfaces = set(('method', 'resource', 'version'))
+ namespace = 'urn:xmpp:http'
+ interfaces = set(['method', 'resource', 'version'])
plugin_attrib = 'req'
+ def get_method(self):
+ print "Request:: get_method()"
+
+ def set_method(self, method):
+ print "Request:: set_method()"
+ self._set_attr('method', method)
+
+ def get_resource(self):
+ print "Request:: get_resource()"
+
+ def set_resource(self, resource):
+ print "Request:: set_resource()"
+ self._set_attr('resource', resource)
+
+ def get_version(self):
+ print "Request:: get_version()"
+
+ def set_version(self, version='1.1'):
+ print "Request:: set_version()"
+ self._set_attr('version', version)
+