DUNE: Uniform Navigational Environment
2.5.0
|
Public Member Functions | |
Task (const std::string &name, Tasks::Context &ctx) | |
void | onResourceAcquisition (void) |
void | onResourceRelease (void) |
void | onEntityResolution (void) |
void | onUpdateParameters (void) |
void | consume (const IMC::Message *msg) |
void | handleGET (TCPSocket *sock, TupleList &headers, const char *uri) |
void | handlePOST (TCPSocket *sock, TupleList &headers, const char *uri) |
void | handlePUT (TCPSocket *sock, TupleList &headers, const char *uri) |
void | sendStaticFile (TCPSocket *sock, TupleList &headers, const Path &file) |
void | getMessage (TCPSocket *sock, TupleList &headers, const char *uri) |
void | setTime (TCPSocket *sock, TupleList &headers, const char *uri) |
void | showMessages (TCPSocket *sock, TupleList &headers, const char *uri) |
void | sendVersionJSON (TCPSocket *sock, TupleList &headers, const char *uri) |
void | sendAgentJSON (TCPSocket *sock, TupleList &headers, const char *uri) |
void | handlePowerChannel (TCPSocket *sock, TupleList &headers, const char *uri) |
void | onMain (void) |
Public Member Functions inherited from Transports::HTTP::RequestHandler | |
RequestHandler (void) | |
virtual | ~RequestHandler (void) |
virtual void | handleGET (TCPSocket *sock, Utils::TupleList &headers, const char *uri) |
virtual void | handlePOST (TCPSocket *sock, Utils::TupleList &headers, const char *uri) |
virtual void | handlePUT (TCPSocket *sock, Utils::TupleList &headers, const char *uri) |
void | sendHeader (TCPSocket *sock, const char *status_line, int64_t length, HeaderFieldsMap *hdr_fields=0) |
void | sendResponse100 (TCPSocket *sock) |
void | sendResponse201 (TCPSocket *sock) |
void | sendResponse200 (TCPSocket *sock) |
void | sendResponse403 (TCPSocket *sock) |
void | sendResponse404 (TCPSocket *sock, const std::string &message) |
void | sendResponse404 (TCPSocket *sock) |
void | sendResponse416 (TCPSocket *sock) |
void | sendResponse500 (TCPSocket *sock) |
void | sendResponse503 (TCPSocket *sock) |
void | sendData (TCPSocket *sock, const char *data, int size, HeaderFieldsMap *hdr_fields=0) |
void | sendData (TCPSocket *sock, const std::string &data, HeaderFieldsMap *hdr_fields=0) |
void | sendFile (TCPSocket *sock, const std::string &file, HeaderFieldsMap &hdr_fields, int64_t off_beg=-1, int64_t off_end=-1) |
void | handleRequest (TCPSocket *sock) |
Static Public Member Functions | |
static bool | isSpecialURI (const char *uri) |
static bool | matchURL (const char *url, const char *str, bool fragment=false) |
Public Attributes | |
Server * | m_server |
std::string | m_cfg_dir |
std::string | m_agent |
MessageMonitor | m_msg_mon |
Arguments | m_args |
Additional Inherited Members | |
Public Types inherited from Transports::HTTP::RequestHandler | |
typedef std::map< std::string, std::string > | HeaderFieldsMap |
|
inline |
|
inline |
References m_msg_mon, and Transports::HTTP::MessageMonitor::updateMessage().
|
inline |
References Transports::HTTP::RequestHandler::sendData().
Referenced by handlePOST().
|
inline |
|
inline |
References getMessage(), isSpecialURI(), matchURL(), and Transports::HTTP::RequestHandler::sendResponse403().
|
inline |
References Transports::HTTP::RequestHandler::sendResponse200(), and Transports::HTTP::RequestHandler::sendResponse500().
Referenced by handleGET().
|
inline |
References isSpecialURI(), and Transports::HTTP::RequestHandler::sendResponse403().
|
inlinestatic |
Referenced by handleGET(), handlePOST(), and handlePUT().
|
inlinestatic |
Referenced by handleGET(), and handlePOST().
|
inline |
References m_msg_mon, and Transports::HTTP::MessageMonitor::setEntities().
|
inline |
References m_server, and Transports::HTTP::Server::poll().
|
inline |
References m_args, m_server, Transports::HTTP::Arguments::port, and Transports::HTTP::Arguments::threads.
|
inline |
References m_server.
|
inline |
References m_args, and Transports::HTTP::Arguments::messages.
|
inline |
References m_agent, and Transports::HTTP::RequestHandler::sendData().
Referenced by handleGET().
|
inline |
References Transports::HTTP::RequestHandler::sendFile().
Referenced by handleGET().
|
inline |
References Transports::HTTP::RequestHandler::sendData().
Referenced by handleGET().
|
inline |
References Transports::HTTP::RequestHandler::sendResponse200(), and Transports::HTTP::RequestHandler::sendResponse500().
Referenced by handleGET().
|
inline |
References m_msg_mon, Transports::HTTP::MessageMonitor::messagesJSON(), and Transports::HTTP::RequestHandler::sendData().
Referenced by handleGET().
std::string Transports::HTTP::Task::m_agent |
Agent name.
Referenced by sendAgentJSON(), and Task().
Arguments Transports::HTTP::Task::m_args |
Task arguments.
Referenced by onResourceAcquisition(), onUpdateParameters(), and Task().
std::string Transports::HTTP::Task::m_cfg_dir |
Configuration directory.
Referenced by Task().
MessageMonitor Transports::HTTP::Task::m_msg_mon |
Message Monitor.
Referenced by consume(), onEntityResolution(), and showMessages().
Server* Transports::HTTP::Task::m_server |
HTTP server.
Referenced by onMain(), onResourceAcquisition(), and onResourceRelease().