DUNE: Uniform Navigational Environment  2.3.2
DUNE::Network::HTTPRequestHandler Class Reference

Public Types

typedef std::map< std::string,
std::string > 
HeaderFieldsMap
 

Public Member Functions

 HTTPRequestHandler (void)
 
virtual ~HTTPRequestHandler (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)
 

Member Typedef Documentation

typedef std::map<std::string, std::string> DUNE::Network::HTTPRequestHandler::HeaderFieldsMap

Constructor & Destructor Documentation

DUNE::Network::HTTPRequestHandler::HTTPRequestHandler ( void  )
inline
virtual DUNE::Network::HTTPRequestHandler::~HTTPRequestHandler ( void  )
inlinevirtual

Member Function Documentation

void HTTPRequestHandler::handleGET ( TCPSocket sock,
Utils::TupleList headers,
const char *  uri 
)
virtual

References sendResponse404().

Referenced by handleRequest().

void HTTPRequestHandler::handlePOST ( TCPSocket sock,
Utils::TupleList headers,
const char *  uri 
)
virtual

References sendResponse404().

Referenced by handleRequest().

void HTTPRequestHandler::handlePUT ( TCPSocket sock,
Utils::TupleList headers,
const char *  uri 
)
virtual

References sendResponse404().

Referenced by handleRequest().

void HTTPRequestHandler::handleRequest ( TCPSocket sock)
void HTTPRequestHandler::sendData ( TCPSocket sock,
const char *  data,
int  size,
HeaderFieldsMap hdr_fields = 0 
)
void DUNE::Network::HTTPRequestHandler::sendData ( TCPSocket sock,
const std::string &  data,
HeaderFieldsMap hdr_fields = 0 
)
inline

References sendData().

void HTTPRequestHandler::sendFile ( TCPSocket sock,
const std::string &  file,
HeaderFieldsMap hdr_fields,
int64_t  off_beg = -1,
int64_t  off_end = -1 
)
void HTTPRequestHandler::sendHeader ( TCPSocket sock,
const char *  status_line,
int64_t  length,
HeaderFieldsMap hdr_fields = 0 
)
void HTTPRequestHandler::sendResponse100 ( TCPSocket sock)
void HTTPRequestHandler::sendResponse200 ( TCPSocket sock)
void HTTPRequestHandler::sendResponse201 ( TCPSocket sock)
void HTTPRequestHandler::sendResponse403 ( TCPSocket sock)
void HTTPRequestHandler::sendResponse404 ( TCPSocket sock,
const std::string &  message 
)
void DUNE::Network::HTTPRequestHandler::sendResponse404 ( TCPSocket sock)
inline

References sendResponse404().

void HTTPRequestHandler::sendResponse416 ( TCPSocket sock)
void HTTPRequestHandler::sendResponse500 ( TCPSocket sock)
void HTTPRequestHandler::sendResponse503 ( TCPSocket sock)
Collaboration diagram for DUNE::Network::HTTPRequestHandler:
Collaboration graph