OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VncApi Class Reference

#include <vncapi.h>

Inheritance diagram for VncApi:
Collaboration diagram for VncApi:

Public Member Functions

 VncApi (EventManager *evm, VncApiConfig *cfg)
 
virtual ~VncApi ()
 
void Stop ()
 
void GetConfig (std::string type, std::vector< std::string > ids, std::vector< std::string > filters, std::vector< std::string > parents, std::vector< std::string > refs, std::vector< std::string > fields, boost::function< void(contrail_rapidjson::Document &, boost::system::error_code &ec, std::string version, int status, std::string reason, std::map< std::string, std::string > *headers)> cb)
 
void RespHandler (RespBlock *rb, std::string &str, boost::system::error_code &ec)
 
std::string GetToken (RespBlock *rb) const
 

Private Member Functions

void hex_dump (std::string s)
 
void Reauthenticate (RespBlock *orb)
 
void Add2URI (std::ostringstream &uri, std::string &qadded, std::string key, std::vector< std::string > data)
 
std::string MakeUri (std::string type, std::vector< std::string > ids, std::vector< std::string > filters, std::vector< std::string > parents, std::vector< std::string > refs, std::vector< std::string > fields)
 
void KsRespHandler (RespBlock *rb, RespBlock *orb, std::string &str, boost::system::error_code &ec)
 
bool CondTest (std::string s)
 

Private Attributes

EventManagerevm_
 
VncApiConfigcfg_
 
HttpClientclient_
 
std::vector< std::string > hdr_
 
std::vector< std::string > kshdr_
 

Detailed Description

Definition at line 60 of file vncapi.h.

Constructor & Destructor Documentation

VncApi::VncApi ( EventManager evm,
VncApiConfig cfg 
)

Definition at line 239 of file vncapi.cc.

Here is the call graph for this function:

virtual VncApi::~VncApi ( )
inlinevirtual

Definition at line 80 of file vncapi.h.

Here is the call graph for this function:

Member Function Documentation

void VncApi::Add2URI ( std::ostringstream &  uri,
std::string &  qadded,
std::string  key,
std::vector< std::string >  data 
)
private

Definition at line 207 of file vncapi.cc.

bool VncApi::CondTest ( std::string  s)
private

Definition at line 140 of file vncapi.cc.

void VncApi::GetConfig ( std::string  type,
std::vector< std::string >  ids,
std::vector< std::string >  filters,
std::vector< std::string >  parents,
std::vector< std::string >  refs,
std::vector< std::string >  fields,
boost::function< void(contrail_rapidjson::Document &, boost::system::error_code &ec, std::string version, int status, std::string reason, std::map< std::string, std::string > *headers)>  cb 
)

Definition at line 279 of file vncapi.cc.

Here is the call graph for this function:

std::string VncApi::GetToken ( RespBlock rb) const

Definition at line 146 of file vncapi.cc.

Here is the call graph for this function:

void VncApi::hex_dump ( std::string  s)
private

Definition at line 83 of file vncapi.cc.

void VncApi::KsRespHandler ( RespBlock rb,
RespBlock orb,
std::string &  str,
boost::system::error_code &  ec 
)
private

Definition at line 169 of file vncapi.cc.

Here is the call graph for this function:

std::string VncApi::MakeUri ( std::string  type,
std::vector< std::string >  ids,
std::vector< std::string >  filters,
std::vector< std::string >  parents,
std::vector< std::string >  refs,
std::vector< std::string >  fields 
)
private

Definition at line 223 of file vncapi.cc.

Here is the call graph for this function:

void VncApi::Reauthenticate ( RespBlock orb)
private

Definition at line 116 of file vncapi.cc.

Here is the call graph for this function:

void VncApi::RespHandler ( RespBlock rb,
std::string &  str,
boost::system::error_code &  ec 
)

Definition at line 306 of file vncapi.cc.

Here is the call graph for this function:

void VncApi::Stop ( )

Definition at line 267 of file vncapi.cc.

Here is the call graph for this function:

Member Data Documentation

VncApiConfig* VncApi::cfg_
private

Definition at line 63 of file vncapi.h.

HttpClient* VncApi::client_
private

Definition at line 64 of file vncapi.h.

EventManager* VncApi::evm_
private

Definition at line 62 of file vncapi.h.

std::vector<std::string> VncApi::hdr_
private

Definition at line 65 of file vncapi.h.

std::vector<std::string> VncApi::kshdr_
private

Definition at line 66 of file vncapi.h.


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