Search bar offers the following options:
Term presence. The below example searches for documents that
must contain “foo”, might contain “bar” and must not contain “baz”:
+foo bar -baz
Wildcards. The below example searches for documents with words beginning with “foo”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “search”:
Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.
Fuzzy matches. The following search matches all documents
that have a word within 1 edit distance of “foo”:
Results provided by Lunr.js
class Authenticator: (source)
Base class for business logic of initializing an XmlStream
Subclass this object to enable an XmlStream to initialize and authenticate to different types of stream hosts (such as clients, components, etc.).
- The Authenticator MUST dispatch a
STREAM_AUTHD_EVENTwhen the stream has been completely initialized.
- The Authenticator SHOULD reset all state information when
- The Authenticator SHOULD override
streamStarted, and start initialization there.
|the term authenticator is historical. Authenticators perform all steps required to prepare the stream for the exchange of XML stanzas.|
||Called by the XmlStreamFactory when a connection has been made to the requested peer, and an XmlStream object has been instantiated.|
||Called by the XmlStream when the underlying socket connection is in place.|
||Called by the XmlStream when the stream has started.|
||The XmlStream that needs authentication|
Called by the XmlStreamFactory when a connection has been made to the requested peer, and an XmlStream object has been instantiated.
The default implementation just saves a handle to the new XmlStream.
|xmlstream:||The XmlStream that will be passing events to this Authenticator.|
Called by the XmlStream when the underlying socket connection is in place.
This allows the Authenticator to send an initial root element, if it's connecting, or wait for an inbound root from the peer if it's accepting the connection.
Subclasses can use self.xmlstream.send() to send any initial data to the peer.
Called by the XmlStream when the stream has started.
A stream is considered to have started when the start tag of the root element has been received.
This examines rootElement to see if there is a version attribute. If absent, 0.0 is assumed per RFC 3920. Subsequently, the minimum of the version from the received stream header and the value stored in
xmlstream is taken and put back in
Extensions of this method can extract more information from the stream header and perform checks on them, optionally sending stream errors and closing the stream.