OpenSDN source code
SandeshHttp Class Reference

#include <sandesh_http.h>

Collaboration diagram for SandeshHttp:

Classes

class  HtmlInfo
 

Public Types

typedef boost::function< int32_t(SandeshRequest *)> RequestCallbackFn
 

Public Member Functions

 SandeshHttp (std::string const &s, HtmlInfo h_info)
 

Static Public Member Functions

static void Response (Sandesh *snh, std::string context)
 
static bool Init (EventManager *evm, const std::string module, short port, RequestCallbackFn reqcb, int *hport, const SandeshConfig &config=SandeshConfig())
 
static void Uninit (void)
 
static void UpdateDscp (uint8_t dscp)
 
static HtmlInfo GetHtmlInfo (std::string const &s)
 

Private Types

typedef std::map< std::string, HtmlInfo > map_type
 

Static Private Member Functions

static map_type * GetMap ()
 

Static Private Attributes

static map_type * map_ = NULL
 
static HttpServer * hServ_ = NULL
 
static std::string index_str_
 
static HtmlInfo * index_hti_ = NULL
 

Detailed Description

Definition at line 26 of file sandesh_http.h.

Member Typedef Documentation

◆ map_type

typedef std::map<std::string, HtmlInfo> SandeshHttp::map_type
private

Definition at line 62 of file sandesh_http.h.

◆ RequestCallbackFn

typedef boost::function<int32_t(SandeshRequest *)> SandeshHttp::RequestCallbackFn

Definition at line 28 of file sandesh_http.h.

Constructor & Destructor Documentation

◆ SandeshHttp()

SandeshHttp::SandeshHttp ( std::string const &  s,
HtmlInfo  h_info 
)
inline

Definition at line 57 of file sandesh_http.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetHtmlInfo()

static HtmlInfo SandeshHttp::GetHtmlInfo ( std::string const &  s)
inlinestatic

Definition at line 48 of file sandesh_http.h.

Here is the call graph for this function:

◆ GetMap()

static map_type* SandeshHttp::GetMap ( )
inlinestaticprivate

Definition at line 64 of file sandesh_http.h.

◆ Init()

bool SandeshHttp::Init ( EventManager *  evm,
const std::string  module,
short  port,
RequestCallbackFn  reqcb,
int *  hport,
const SandeshConfig &  config = SandeshConfig() 
)
static

Definition at line 356 of file sandesh_http.cc.

Here is the call graph for this function:

◆ Response()

void SandeshHttp::Response ( Sandesh *  snh,
std::string  context 
)
static

Definition at line 311 of file sandesh_http.cc.

Here is the call graph for this function:

◆ Uninit()

void SandeshHttp::Uninit ( void  )
static

Definition at line 445 of file sandesh_http.cc.

Here is the call graph for this function:

◆ UpdateDscp()

void SandeshHttp::UpdateDscp ( uint8_t  dscp)
static

Definition at line 465 of file sandesh_http.cc.

Member Data Documentation

◆ hServ_

HttpServer * SandeshHttp::hServ_ = NULL
staticprivate

Definition at line 72 of file sandesh_http.h.

◆ index_hti_

SandeshHttp::HtmlInfo * SandeshHttp::index_hti_ = NULL
staticprivate

Definition at line 74 of file sandesh_http.h.

◆ index_str_

string SandeshHttp::index_str_
staticprivate

Definition at line 73 of file sandesh_http.h.

◆ map_

SandeshHttp::map_type * SandeshHttp::map_ = NULL
staticprivate

Definition at line 71 of file sandesh_http.h.


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