FlightGear next
|
#include <ScreenshotUriHandler.hxx>
Inherits flightgear::http::URIHandler.
Public Member Functions | |
ScreenshotUriHandler (const std::string &uri="/screenshot/") | |
~ScreenshotUriHandler () | |
virtual bool | handleGetRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection) |
Convenience method for GET Requests, gets called by handleRequest if not overridden. | |
virtual bool | poll (Connection *connection) |
This method gets called from the httpd if the preceding handleRequest() or poll() method returned false. | |
![]() | |
URIHandler (const std::string &uri) | |
virtual | ~URIHandler () |
virtual bool | handleRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection=NULL) |
This method gets called from the httpd if a request has been detected on the connection. | |
virtual bool | handlePutRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection) |
Convenience method for PUT Requests, gets called by handleRequest if not overridden. | |
const std::string & | getUri () const |
Getter for the URI this handler serves. | |
Definition at line 29 of file ScreenshotUriHandler.hxx.
flightgear::http::ScreenshotUriHandler::ScreenshotUriHandler | ( | const std::string & | uri = "/screenshot/" | ) |
Definition at line 439 of file ScreenshotUriHandler.cxx.
flightgear::http::ScreenshotUriHandler::~ScreenshotUriHandler | ( | ) |
Definition at line 444 of file ScreenshotUriHandler.cxx.
|
virtual |
Convenience method for GET Requests, gets called by handleRequest if not overridden.
request |
response |
connection |
Reimplemented from flightgear::http::URIHandler.
Definition at line 454 of file ScreenshotUriHandler.cxx.
|
virtual |
This method gets called from the httpd if the preceding handleRequest() or poll() method returned false.
connection |
Reimplemented from flightgear::http::URIHandler.
Definition at line 512 of file ScreenshotUriHandler.cxx.