t.p.a.IResponderLocator(Interface) : interface documentation

Part of twisted.protocols.amp View Source View In Hierarchy

Known implementations: twisted.protocols.amp.CommandLocator, twisted.protocols.amp.SimpleStringLocator

An application object which can look up appropriate responder methods for AMP commands.
Method locateResponder Locate a responder method appropriate for the named command.
def locateResponder(self, name): (source)
Locate a responder method appropriate for the named command.
Parametersnamethe wire-level name (commandName) of the AMP command to be responded to.
Returnsa 1-argument callable that takes an AmpBox with argument values for the given command, and returns an AmpBox containing argument values for the named command, or a Deferred that fires the same.
API Documentation for Twisted, generated by pydoctor at 2011-10-27 16:22:34.