XEP-0363: HTTP File Upload#
Stanza elements#
- class slixmpp.plugins.xep_0363.stanza.Get(xml=None, parent=None)[source]#
- interfaces: ClassVar[Set[str]] = {'url'}#
The set of keys that the stanza provides for accessing and manipulating the underlying XML object. This set may be augmented with the
plugin_attribvalue of any registered stanza plugins.
- iterables: List[ElementBase]#
A list of child stanzas whose class is included in
plugin_iterables.
- name: ClassVar[str] = 'get'#
The XML tag name of the element, not including any namespace prefixes. For example, an
ElementBaseobject for<message />would usename = 'message'.
- namespace: str = 'urn:xmpp:http:upload:0'#
The XML namespace for the element. Given
<foo xmlns="bar" />, thennamespace = "bar"should be used. The default namespace isjabber:clientsince this is being used in an XMPP library.
- parent: Optional[ReferenceType[ElementBase]]#
A
weakref.weakrefto the parent stanza, if there is one. If not, thenparentisNone.
- plugin_attrib: ClassVar[str] = 'get'#
For
ElementBasesubclasses which are intended to be used as plugins, theplugin_attribvalue defines the plugin name. Plugins may be accessed by using theplugin_attribvalue as the interface. An example usingplugin_attrib = 'foo':register_stanza_plugin(Message, FooPlugin) msg = Message() msg['foo']['an_interface_from_the_foo_plugin']
- plugins: Dict[Tuple[str, Optional[str]], ElementBase]#
An ordered dictionary of plugin stanzas, mapped by their
plugin_attribvalue.
- tag: str#
The name of the tag for the stanza’s root element. It is the same as calling
tag_name()and is formatted as'{namespace}elementname'.
- xml: ET.Element#
The underlying XML object for the stanza. It is a standard
xml.etree.ElementTreeobject.
- class slixmpp.plugins.xep_0363.stanza.Header(xml=None, parent=None)[source]#
-
- interfaces: ClassVar[Set[str]] = {'name', 'value'}#
The set of keys that the stanza provides for accessing and manipulating the underlying XML object. This set may be augmented with the
plugin_attribvalue of any registered stanza plugins.
- iterables: List[ElementBase]#
A list of child stanzas whose class is included in
plugin_iterables.
- name: ClassVar[str] = 'header'#
The XML tag name of the element, not including any namespace prefixes. For example, an
ElementBaseobject for<message />would usename = 'message'.
- namespace: str = 'urn:xmpp:http:upload:0'#
The XML namespace for the element. Given
<foo xmlns="bar" />, thennamespace = "bar"should be used. The default namespace isjabber:clientsince this is being used in an XMPP library.
- parent: Optional[ReferenceType[ElementBase]]#
A
weakref.weakrefto the parent stanza, if there is one. If not, thenparentisNone.
- plugin_attrib: ClassVar[str] = 'header'#
For
ElementBasesubclasses which are intended to be used as plugins, theplugin_attribvalue defines the plugin name. Plugins may be accessed by using theplugin_attribvalue as the interface. An example usingplugin_attrib = 'foo':register_stanza_plugin(Message, FooPlugin) msg = Message() msg['foo']['an_interface_from_the_foo_plugin']
- plugin_multi_attrib: ClassVar[str] = 'headers'#
For
ElementBasesubclasses that are intended to be an iterable group of items, theplugin_multi_attribvalue defines an interface for the parent stanza which returns the entire group of matching substanzas. So the following are equivalent:# Given stanza class Foo, with plugin_multi_attrib = 'foos' parent['foos'] filter(isinstance(item, Foo), parent['substanzas'])
- plugins: Dict[Tuple[str, Optional[str]], ElementBase]#
An ordered dictionary of plugin stanzas, mapped by their
plugin_attribvalue.
- tag: str#
The name of the tag for the stanza’s root element. It is the same as calling
tag_name()and is formatted as'{namespace}elementname'.
- xml: ET.Element#
The underlying XML object for the stanza. It is a standard
xml.etree.ElementTreeobject.
- class slixmpp.plugins.xep_0363.stanza.Put(xml=None, parent=None)[source]#
- interfaces: ClassVar[Set[str]] = {'url'}#
The set of keys that the stanza provides for accessing and manipulating the underlying XML object. This set may be augmented with the
plugin_attribvalue of any registered stanza plugins.
- iterables: List[ElementBase]#
A list of child stanzas whose class is included in
plugin_iterables.
- name: ClassVar[str] = 'put'#
The XML tag name of the element, not including any namespace prefixes. For example, an
ElementBaseobject for<message />would usename = 'message'.
- namespace: str = 'urn:xmpp:http:upload:0'#
The XML namespace for the element. Given
<foo xmlns="bar" />, thennamespace = "bar"should be used. The default namespace isjabber:clientsince this is being used in an XMPP library.
- parent: Optional[ReferenceType[ElementBase]]#
A
weakref.weakrefto the parent stanza, if there is one. If not, thenparentisNone.
- plugin_attrib: ClassVar[str] = 'put'#
For
ElementBasesubclasses which are intended to be used as plugins, theplugin_attribvalue defines the plugin name. Plugins may be accessed by using theplugin_attribvalue as the interface. An example usingplugin_attrib = 'foo':register_stanza_plugin(Message, FooPlugin) msg = Message() msg['foo']['an_interface_from_the_foo_plugin']
- plugins: Dict[Tuple[str, Optional[str]], ElementBase]#
An ordered dictionary of plugin stanzas, mapped by their
plugin_attribvalue.
- tag: str#
The name of the tag for the stanza’s root element. It is the same as calling
tag_name()and is formatted as'{namespace}elementname'.
- xml: ET.Element#
The underlying XML object for the stanza. It is a standard
xml.etree.ElementTreeobject.
- class slixmpp.plugins.xep_0363.stanza.Request(xml=None, parent=None)[source]#
- interfaces: ClassVar[Set[str]] = {'content-type', 'filename', 'size'}#
The set of keys that the stanza provides for accessing and manipulating the underlying XML object. This set may be augmented with the
plugin_attribvalue of any registered stanza plugins.
- iterables: List[ElementBase]#
A list of child stanzas whose class is included in
plugin_iterables.
- name: ClassVar[str] = 'request'#
The XML tag name of the element, not including any namespace prefixes. For example, an
ElementBaseobject for<message />would usename = 'message'.
- namespace: str = 'urn:xmpp:http:upload:0'#
The XML namespace for the element. Given
<foo xmlns="bar" />, thennamespace = "bar"should be used. The default namespace isjabber:clientsince this is being used in an XMPP library.
- parent: Optional[ReferenceType[ElementBase]]#
A
weakref.weakrefto the parent stanza, if there is one. If not, thenparentisNone.
- plugin_attrib: ClassVar[str] = 'http_upload_request'#
For
ElementBasesubclasses which are intended to be used as plugins, theplugin_attribvalue defines the plugin name. Plugins may be accessed by using theplugin_attribvalue as the interface. An example usingplugin_attrib = 'foo':register_stanza_plugin(Message, FooPlugin) msg = Message() msg['foo']['an_interface_from_the_foo_plugin']
- plugins: Dict[Tuple[str, Optional[str]], ElementBase]#
An ordered dictionary of plugin stanzas, mapped by their
plugin_attribvalue.
- tag: str#
The name of the tag for the stanza’s root element. It is the same as calling
tag_name()and is formatted as'{namespace}elementname'.
- xml: ET.Element#
The underlying XML object for the stanza. It is a standard
xml.etree.ElementTreeobject.
- class slixmpp.plugins.xep_0363.stanza.Slot(xml=None, parent=None)[source]#
- iterables: List[ElementBase]#
A list of child stanzas whose class is included in
plugin_iterables.
- name: ClassVar[str] = 'slot'#
The XML tag name of the element, not including any namespace prefixes. For example, an
ElementBaseobject for<message />would usename = 'message'.
- namespace: str = 'urn:xmpp:http:upload:0'#
The XML namespace for the element. Given
<foo xmlns="bar" />, thennamespace = "bar"should be used. The default namespace isjabber:clientsince this is being used in an XMPP library.
- parent: Optional[ReferenceType[ElementBase]]#
A
weakref.weakrefto the parent stanza, if there is one. If not, thenparentisNone.
- plugin_attrib: ClassVar[str] = 'http_upload_slot'#
For
ElementBasesubclasses which are intended to be used as plugins, theplugin_attribvalue defines the plugin name. Plugins may be accessed by using theplugin_attribvalue as the interface. An example usingplugin_attrib = 'foo':register_stanza_plugin(Message, FooPlugin) msg = Message() msg['foo']['an_interface_from_the_foo_plugin']
- plugins: Dict[Tuple[str, Optional[str]], ElementBase]#
An ordered dictionary of plugin stanzas, mapped by their
plugin_attribvalue.
- tag: str#
The name of the tag for the stanza’s root element. It is the same as calling
tag_name()and is formatted as'{namespace}elementname'.
- xml: ET.Element#
The underlying XML object for the stanza. It is a standard
xml.etree.ElementTreeobject.