Home | Trees | Indices | Help |
---|
|
This module is a ad-hoc command processor for xmpppy. It uses the plug-in mechanism like most of the core library. It depends on a DISCO browser manager. There are 3 classes here, a command processor Commands like the Browser, and a command template plugin Command, and an example command. To use this module: Instansiate the module with the parent transport and disco browser manager as parameters. 'Plug in' commands using the command template. The command feature must be added to existing disco replies where neccessary. What it supplies: Automatic command registration with the disco browser manager. Automatic listing of commands in the public command list. A means of handling requests, by redirection though the command manager.
|
|||
Commands Commands is an ancestor of PlugIn and can be attached to any session. |
|||
Command_Handler_Prototype This is a prototype command handler, as each command uses a disco method and execute method you can implement it any way you like, however this is my first attempt at making a generic handler that you can hang process stages on too. |
|||
TestCommand Example class. |
|
|||
ERRORS =
|
|||
ERR_BAD_REQUEST =
|
|||
ERR_CONFLICT =
|
|||
ERR_FEATURE_NOT_IMPLEMENTED =
|
|||
ERR_FORBIDDEN =
|
|||
ERR_GONE =
|
|||
ERR_INTERNAL_SERVER_ERROR =
|
|||
ERR_ITEM_NOT_FOUND =
|
|||
ERR_JID_MALFORMED =
|
|||
ERR_NOT_ACCEPTABLE =
|
|||
ERR_NOT_ALLOWED =
|
|||
ERR_NOT_AUTHORIZED =
|
|||
ERR_PAYMENT_REQUIRED =
|
|||
ERR_RECIPIENT_UNAVAILABLE =
|
|||
ERR_REDIRECT =
|
|||
ERR_REGISTRATION_REQUIRED =
|
|||
ERR_REMOTE_SERVER_NOT_FOUND =
|
|||
ERR_REMOTE_SERVER_TIMEOUT =
|
|||
ERR_RESOURCE_CONSTRAINT =
|
|||
ERR_SERVICE_UNAVAILABLE =
|
|||
ERR_SUBSCRIPTION_REQUIRED =
|
|||
ERR_UNDEFINED_CONDITION =
|
|||
ERR_UNEXPECTED_REQUEST =
|
|||
SASL_ABORTED =
|
|||
SASL_INCORRECT_ENCODING =
|
|||
SASL_INVALID_AUTHZID =
|
|||
SASL_INVALID_MECHANISM =
|
|||
SASL_MECHANISM_TOO_WEAK =
|
|||
SASL_NOT_AUTHORIZED =
|
|||
SASL_TEMPORARY_AUTH_FAILURE =
|
|||
STREAM_BAD_FORMAT =
|
|||
STREAM_BAD_NAMESPACE_PREFIX =
|
|||
STREAM_CONFLICT =
|
|||
STREAM_CONNECTION_TIMEOUT =
|
|||
STREAM_HOST_GONE =
|
|||
STREAM_HOST_UNKNOWN =
|
|||
STREAM_IMPROPER_ADDRESSING =
|
|||
STREAM_INTERNAL_SERVER_ERROR =
|
|||
STREAM_INVALID_FROM =
|
|||
STREAM_INVALID_ID =
|
|||
STREAM_INVALID_NAMESPACE =
|
|||
STREAM_INVALID_XML =
|
|||
STREAM_NOT_AUTHORIZED =
|
|||
STREAM_POLICY_VIOLATION =
|
|||
STREAM_REMOTE_CONNECTION_FAILED =
|
|||
STREAM_RESOURCE_CONSTRAINT =
|
|||
STREAM_RESTRICTED_XML =
|
|||
STREAM_SEE_OTHER_HOST =
|
|||
STREAM_SYSTEM_SHUTDOWN =
|
|||
STREAM_UNDEFINED_CONDITION =
|
|||
STREAM_UNSUPPORTED_ENCODING =
|
|||
STREAM_UNSUPPORTED_STANZA_TYPE =
|
|||
STREAM_UNSUPPORTED_VERSION =
|
|||
STREAM_XML_NOT_WELL_FORMED =
|
|||
name =
|
|
ERRORS
|
ERR_BAD_REQUEST
|
ERR_FEATURE_NOT_IMPLEMENTED
|
ERR_INTERNAL_SERVER_ERROR
|
ERR_ITEM_NOT_FOUND
|
ERR_JID_MALFORMED
|
ERR_NOT_ACCEPTABLE
|
ERR_NOT_ALLOWED
|
ERR_NOT_AUTHORIZED
|
ERR_PAYMENT_REQUIRED
|
ERR_RECIPIENT_UNAVAILABLE
|
ERR_REGISTRATION_REQUIRED
|
ERR_REMOTE_SERVER_NOT_FOUND
|
ERR_REMOTE_SERVER_TIMEOUT
|
ERR_RESOURCE_CONSTRAINT
|
ERR_SERVICE_UNAVAILABLE
|
ERR_SUBSCRIPTION_REQUIRED
|
ERR_UNDEFINED_CONDITION
|
ERR_UNEXPECTED_REQUEST
|
SASL_INCORRECT_ENCODING
|
SASL_INVALID_AUTHZID
|
SASL_INVALID_MECHANISM
|
SASL_MECHANISM_TOO_WEAK
|
SASL_NOT_AUTHORIZED
|
SASL_TEMPORARY_AUTH_FAILURE
|
STREAM_BAD_FORMAT
|
STREAM_BAD_NAMESPACE_PREFIX
|
STREAM_CONNECTION_TIMEOUT
|
STREAM_HOST_GONE
|
STREAM_HOST_UNKNOWN
|
STREAM_IMPROPER_ADDRESSING
|
STREAM_INTERNAL_SERVER_ERROR
|
STREAM_INVALID_FROM
|
STREAM_INVALID_ID
|
STREAM_INVALID_NAMESPACE
|
STREAM_INVALID_XML
|
STREAM_NOT_AUTHORIZED
|
STREAM_POLICY_VIOLATION
|
STREAM_REMOTE_CONNECTION_FAILED
|
STREAM_RESOURCE_CONSTRAINT
|
STREAM_RESTRICTED_XML
|
STREAM_SEE_OTHER_HOST
|
STREAM_SYSTEM_SHUTDOWN
|
STREAM_UNDEFINED_CONDITION
|
STREAM_UNSUPPORTED_ENCODING
|
STREAM_UNSUPPORTED_STANZA_TYPE
|
STREAM_UNSUPPORTED_VERSION
|
STREAM_XML_NOT_WELL_FORMED
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Sat Dec 15 22:25:09 2007 | http://epydoc.sourceforge.net |