OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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_typeGetMap ()
 

Static Private Attributes

static map_typemap_ = NULL
 
static HttpServerhServ_ = NULL
 
static std::string index_str_
 
static HtmlInfoindex_hti_ = NULL
 

Detailed Description

Definition at line 25 of file sandesh_http.h.

Member Typedef Documentation

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

Definition at line 61 of file sandesh_http.h.

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

Definition at line 27 of file sandesh_http.h.

Constructor & Destructor Documentation

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

Definition at line 56 of file sandesh_http.h.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 47 of file sandesh_http.h.

Here is the call graph for this function:

static map_type* SandeshHttp::GetMap ( )
inlinestaticprivate

Definition at line 63 of file sandesh_http.h.

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

Definition at line 352 of file sandesh_http.cc.

Here is the call graph for this function:

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

Definition at line 307 of file sandesh_http.cc.

Here is the call graph for this function:

void SandeshHttp::Uninit ( void  )
static

Definition at line 441 of file sandesh_http.cc.

Here is the call graph for this function:

void SandeshHttp::UpdateDscp ( uint8_t  dscp)
static

Definition at line 461 of file sandesh_http.cc.

Member Data Documentation

HttpServer * SandeshHttp::hServ_ = NULL
staticprivate

Definition at line 71 of file sandesh_http.h.

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

Definition at line 73 of file sandesh_http.h.

string SandeshHttp::index_str_
staticprivate

Definition at line 72 of file sandesh_http.h.

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

Definition at line 70 of file sandesh_http.h.


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