summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0332/stanza
diff options
context:
space:
mode:
authorSangeeth Saravanaraj <sangeeth@riptideio.com>2015-01-27 15:13:57 +0530
committerSangeeth Saravanaraj <sangeeth@riptideio.com>2015-01-27 15:13:57 +0530
commit0fe057b5c3f462275cf8dbf321c2ebec61de1bfe (patch)
tree2b675d6ec822b3899ce245ac77773b9e8f1b63a0 /sleekxmpp/plugins/xep_0332/stanza
parentbe76dda21d93fdca8629d4b6d926d1ddd5c396af (diff)
downloadslixmpp-0fe057b5c3f462275cf8dbf321c2ebec61de1bfe.tar.gz
slixmpp-0fe057b5c3f462275cf8dbf321c2ebec61de1bfe.tar.bz2
slixmpp-0fe057b5c3f462275cf8dbf321c2ebec61de1bfe.tar.xz
slixmpp-0fe057b5c3f462275cf8dbf321c2ebec61de1bfe.zip
Boilerplate for Stanzas - request and response
Diffstat (limited to 'sleekxmpp/plugins/xep_0332/stanza')
-rw-r--r--sleekxmpp/plugins/xep_0332/stanza/__init__.py12
-rw-r--r--sleekxmpp/plugins/xep_0332/stanza/request.py21
-rw-r--r--sleekxmpp/plugins/xep_0332/stanza/response.py21
3 files changed, 54 insertions, 0 deletions
diff --git a/sleekxmpp/plugins/xep_0332/stanza/__init__.py b/sleekxmpp/plugins/xep_0332/stanza/__init__.py
new file mode 100644
index 00000000..5d686710
--- /dev/null
+++ b/sleekxmpp/plugins/xep_0332/stanza/__init__.py
@@ -0,0 +1,12 @@
+"""
+ SleekXMPP: The Sleek XMPP Library
+ Implementation of HTTP over XMPP transport
+ http://xmpp.org/extensions/xep-0332.html
+ Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
+ This file is part of SleekXMPP.
+
+ See the file LICENSE for copying permission.
+"""
+
+from sleekxmpp.plugins.xep_0332.stanza.request import *
+from sleekxmpp.plugins.xep_0332.stanza.response import *
diff --git a/sleekxmpp/plugins/xep_0332/stanza/request.py b/sleekxmpp/plugins/xep_0332/stanza/request.py
new file mode 100644
index 00000000..3d75b534
--- /dev/null
+++ b/sleekxmpp/plugins/xep_0332/stanza/request.py
@@ -0,0 +1,21 @@
+"""
+ SleekXMPP: The Sleek XMPP Library
+ Implementation of HTTP over XMPP transport
+ http://xmpp.org/extensions/xep-0332.html
+ Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
+ This file is part of SleekXMPP.
+
+ See the file LICENSE for copying permission.
+"""
+
+from sleekxmpp import Iq
+from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin
+from sleekxmpp.plugins.xep_0131.stanza import Headers
+
+
+class Request(ElementBase):
+ pass
+
+
+register_stanza_plugin(Iq, Request)
+register_stanza_plugin(Request, Headers)
diff --git a/sleekxmpp/plugins/xep_0332/stanza/response.py b/sleekxmpp/plugins/xep_0332/stanza/response.py
new file mode 100644
index 00000000..7f8180bb
--- /dev/null
+++ b/sleekxmpp/plugins/xep_0332/stanza/response.py
@@ -0,0 +1,21 @@
+"""
+ SleekXMPP: The Sleek XMPP Library
+ Implementation of HTTP over XMPP transport
+ http://xmpp.org/extensions/xep-0332.html
+ Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
+ This file is part of SleekXMPP.
+
+ See the file LICENSE for copying permission.
+"""
+
+from sleekxmpp import Iq
+from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin
+from sleekxmpp.plugins.xep_0131.stanza import Headers
+
+
+class Response(ElementBase):
+ pass
+
+
+register_stanza_plugin(Iq, Response)
+register_stanza_plugin(Response, Headers)