File manager - Edit - /usr/lib/python3/dist-packages/twisted/words/xish/__pycache__/xmlstream.cpython-310.pyc
Back
o �b�# � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m Z mZ ed�Zed�Z ed �Zed �ZG dd� dejej�ZG d d� d�ZG dd� de�ZG dd� deej�ZdS )a� XML Stream processing. An XML Stream is defined as a connection over which two XML documents are exchanged during the lifetime of the connection, one for each direction. The unit of interaction is a direct child element of the root element (stanza). The most prominent use of XML Streams is Jabber, but this module is generically usable. See Twisted Words for Jabber specific protocol support. Maintainer: Ralph Meijer @var STREAM_CONNECTED_EVENT: This event signals that the connection has been established. @type STREAM_CONNECTED_EVENT: L{str}. @var STREAM_END_EVENT: This event signals that the connection has been closed. @type STREAM_END_EVENT: L{str}. @var STREAM_ERROR_EVENT: This event signals that a parse error occurred. @type STREAM_ERROR_EVENT: L{str}. @var STREAM_START_EVENT: This event signals that the root element of the XML Stream has been received. For XMPP, this would be the C{<stream:stream ...>} opening tag. @type STREAM_START_EVENT: L{str}. � )�intern)�Type)�protocol)�failure)�domish�utilityz//event/stream/connectedz//event/stream/startz//event/stream/endz//event/stream/errorc @ sh e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� ZdS )� XmlStreama< Generic Streaming XML protocol handler. This protocol handler will parse incoming data as XML and dispatch events accordingly. Incoming stanzas can be handled by registering observers using XPath-like expressions that are matched against each stanza. See L{utility.EventDispatcher} for details. c C s"