FlightGear next
flightgear::http::PropertyUriHandler Class Reference

#include <PropertyUriHandler.hxx>

Inherits flightgear::http::URIHandler.

Public Member Functions

 PropertyUriHandler (const std::string &uri="/prop/")
 
virtual bool handleGetRequest (const HTTPRequest &request, HTTPResponse &response, Connection *connection)
 Convenience method for GET Requests, gets called by handleRequest if not overridden.
 
- Public Member Functions inherited from flightgear::http::URIHandler
 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.
 
virtual bool poll (Connection *connection)
 This method gets called from the httpd if the preceding handleRequest() or poll() method returned false.
 
const std::string & getUri () const
 Getter for the URI this handler serves.
 

Detailed Description

Definition at line 29 of file PropertyUriHandler.hxx.

Constructor & Destructor Documentation

◆ PropertyUriHandler()

flightgear::http::PropertyUriHandler::PropertyUriHandler ( const std::string & uri = "/prop/")
inline

Definition at line 31 of file PropertyUriHandler.hxx.

Member Function Documentation

◆ handleGetRequest()

bool flightgear::http::PropertyUriHandler::handleGetRequest ( const HTTPRequest & request,
HTTPResponse & response,
Connection * connection )
virtual

Convenience method for GET Requests, gets called by handleRequest if not overridden.

Parameters
request
See also
handleRequest()
Parameters
response
See also
handleRequest()
Parameters
connection
See also
handleRequest()
Returns
See also
handleRequest()

Reimplemented from flightgear::http::URIHandler.

Definition at line 204 of file PropertyUriHandler.cxx.


The documentation for this class was generated from the following files: