Public Member Functions | |
DiscoInfoResponder (IQRouter *router) | |
void | clearDiscoInfo () |
void | setDiscoInfo (const DiscoInfo &info) |
void | setDiscoInfo (const std::string &node, const DiscoInfo &info) |
void | start () |
Starts the responder. | |
void | stop () |
Stops the responder. | |
Protected Member Functions | |
void | sendResponse (const JID &to, const std::string &id, boost::shared_ptr< DiscoInfo > payload) |
Convenience function for sending an IQ response. | |
void | sendResponse (const JID &to, const JID &from, const std::string &id, boost::shared_ptr< DiscoInfo > payload) |
Convenience function for sending an IQ response, with a specific from address. | |
void | sendError (const JID &to, const std::string &id, ErrorPayload::Condition condition, ErrorPayload::Type type, Payload::ref payload=Payload::ref()) |
Convenience function for responding with an error. | |
void | sendError (const JID &to, const JID &from, const std::string &id, ErrorPayload::Condition condition, ErrorPayload::Type type, Payload::ref payload=Payload::ref()) |
Convenience function for responding with an error from a specific from address. | |
IQRouter * | getIQRouter () const |
Definition at line 16 of file DiscoInfoResponder.h.
Swift::DiscoInfoResponder::DiscoInfoResponder | ( | IQRouter * | router | ) |
void Swift::DiscoInfoResponder::clearDiscoInfo | ( | ) |
IQRouter* Swift::Responder< DiscoInfo >::getIQRouter | ( | ) | const [inline, protected, inherited] |
Definition at line 97 of file Responder.h.
void Swift::Responder< DiscoInfo >::sendError | ( | const JID & | to, | |
const JID & | from, | |||
const std::string & | id, | |||
ErrorPayload::Condition | condition, | |||
ErrorPayload::Type | type, | |||
Payload::ref | payload = Payload::ref() | |||
) | [inline, protected, inherited] |
Convenience function for responding with an error from a specific from address.
Definition at line 93 of file Responder.h.
void Swift::Responder< DiscoInfo >::sendError | ( | const JID & | to, | |
const std::string & | id, | |||
ErrorPayload::Condition | condition, | |||
ErrorPayload::Type | type, | |||
Payload::ref | payload = Payload::ref() | |||
) | [inline, protected, inherited] |
Convenience function for responding with an error.
Definition at line 86 of file Responder.h.
void Swift::Responder< DiscoInfo >::sendResponse | ( | const JID & | to, | |
const JID & | from, | |||
const std::string & | id, | |||
boost::shared_ptr< DiscoInfo > | payload | |||
) | [inline, protected, inherited] |
Convenience function for sending an IQ response, with a specific from address.
Definition at line 79 of file Responder.h.
void Swift::Responder< DiscoInfo >::sendResponse | ( | const JID & | to, | |
const std::string & | id, | |||
boost::shared_ptr< DiscoInfo > | payload | |||
) | [inline, protected, inherited] |
Convenience function for sending an IQ response.
Definition at line 72 of file Responder.h.
void Swift::DiscoInfoResponder::setDiscoInfo | ( | const DiscoInfo & | info | ) |
void Swift::DiscoInfoResponder::setDiscoInfo | ( | const std::string & | node, | |
const DiscoInfo & | info | |||
) |
void Swift::Responder< DiscoInfo >::start | ( | ) | [inline, inherited] |
Starts the responder.
After the responder has started, it will start receiving and responding to requests.
Definition at line 39 of file Responder.h.
void Swift::Responder< DiscoInfo >::stop | ( | ) | [inline, inherited] |
Stops the responder.
When the responder is stopped, it will no longer receive incoming requests.
Definition at line 50 of file Responder.h.