FlightGear next
flightgear::http::URIHandlerMap Class Reference

A Helper class for URI Handlers. More...

Inherits vector< SGSharedPtr< URIHandler > >.

Public Member Functions

SGSharedPtr< URIHandlerfindHandler (const std::string &uri)
 Find a URI Handler for a given URI.
 

Detailed Description

A Helper class for URI Handlers.

This class stores a list of URI Handlers and provides a lookup method for find the handler by it's URI prefix

Definition at line 57 of file httpd.cxx.

Member Function Documentation

◆ findHandler()

SGSharedPtr< URIHandler > flightgear::http::URIHandlerMap::findHandler ( const std::string & uri)
inline

Find a URI Handler for a given URI.

Look for the first handler with a uri matching the beginning of the given uri parameter.

Parameters
uriThe uri to find the handler for
Returns
a SGSharedPtr of the URIHandler or an invalid SGSharedPtr if not found

Definition at line 68 of file httpd.cxx.


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