Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
impala::Webserver::UrlHandler Class Reference
Collaboration diagram for impala::Webserver::UrlHandler:

Public Member Functions

 UrlHandler (const UrlCallback &cb, const std::string &template_filename, bool is_on_nav_bar)
 
bool is_on_nav_bar () const
 
const UrlCallbackcallback () const
 
const std::string & template_filename () const
 

Private Attributes

bool is_on_nav_bar_
 If true, the page appears in the navigation bar. More...
 
UrlCallback template_callback_
 Callback to produce a Json document to render via a template. More...
 
std::string template_filename_
 

Detailed Description

Contains all information relevant to rendering one Url. Each Url has one callback that produces the output to render. The callback either produces a Json document which is rendered via a template file, or it produces an HTML string that is embedded directly into the output.

Definition at line 82 of file webserver.h.

Constructor & Destructor Documentation

impala::Webserver::UrlHandler::UrlHandler ( const UrlCallback cb,
const std::string &  template_filename,
bool  is_on_nav_bar 
)
inline

Definition at line 84 of file webserver.h.

Member Function Documentation

const UrlCallback& impala::Webserver::UrlHandler::callback ( ) const
inline

Definition at line 90 of file webserver.h.

References template_callback_.

Referenced by impala::Webserver::BeginRequestCallback().

bool impala::Webserver::UrlHandler::is_on_nav_bar ( ) const
inline

Definition at line 89 of file webserver.h.

References is_on_nav_bar_.

const std::string& impala::Webserver::UrlHandler::template_filename ( ) const
inline

Definition at line 91 of file webserver.h.

References template_filename_.

Referenced by impala::Webserver::BeginRequestCallback().

Member Data Documentation

bool impala::Webserver::UrlHandler::is_on_nav_bar_
private

If true, the page appears in the navigation bar.

Definition at line 95 of file webserver.h.

Referenced by is_on_nav_bar().

UrlCallback impala::Webserver::UrlHandler::template_callback_
private

Callback to produce a Json document to render via a template.

Definition at line 98 of file webserver.h.

Referenced by callback().

std::string impala::Webserver::UrlHandler::template_filename_
private

Path to the file that contains the template to render, relative to the webserver's document root.

Definition at line 102 of file webserver.h.

Referenced by template_filename().


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