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

#include <rest_server.h>

Collaboration diagram for RestServer:

Classes

class  HandlerSpecifier
 
struct  RESTData
 

Public Member Functions

 RestServer (Agent *agent)
 
virtual ~RestServer ()
 
void InitDone ()
 
void HandleRequest (HttpSession *session, const HttpRequest *request)
 
void Shutdown ()
 

Protected Member Functions

void VmPortDeleteHandler (const struct RESTData &)
 
void VmPortGetHandler (const struct RESTData &)
 
void VmPortPostHandler (const struct RESTData &)
 
void VmPortSyncHandler (const struct RESTData &data)
 
void GatewayPostHandler (const struct RESTData &data)
 
void GatewayDeleteHandler (const struct RESTData &data)
 
void VmPortEnableHandler (const struct RESTData &data)
 
void VmPortDisableHandler (const struct RESTData &data)
 
void VmVnPortPostHandler (const struct RESTData &)
 
void VmVnPortGetHandler (const struct RESTData &)
 
void VmVnPortDeleteHandler (const struct RESTData &)
 
void VmVnPortCfgGetHandler (const struct RESTData &data)
 

Static Protected Attributes

static const std::vector
< HandlerSpecifier
RESTHandlers_
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (RestServer)
 

Private Attributes

Agentagent_
 
HttpServerhttp_server_
 

Friends

class RestServerGetVmCfgTask
 

Detailed Description

Definition at line 15 of file rest_server.h.

Constructor & Destructor Documentation

RestServer::RestServer ( Agent agent)
explicit

Definition at line 305 of file rest_server.cc.

Here is the call graph for this function:

RestServer::~RestServer ( )
virtual

Definition at line 351 of file rest_server.cc.

Member Function Documentation

RestServer::DISALLOW_COPY_AND_ASSIGN ( RestServer  )
private
void RestServer::GatewayDeleteHandler ( const struct RESTData data)
protected

Definition at line 129 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::GatewayPostHandler ( const struct RESTData data)
protected

Definition at line 115 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::HandleRequest ( HttpSession session,
const HttpRequest request 
)

Definition at line 319 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::InitDone ( )

Definition at line 311 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::Shutdown ( )

Definition at line 343 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmPortDeleteHandler ( const struct RESTData data)
protected

Definition at line 85 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmPortDisableHandler ( const struct RESTData data)
protected

Definition at line 227 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmPortEnableHandler ( const struct RESTData data)
protected

Definition at line 212 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmPortGetHandler ( const struct RESTData data)
protected

Definition at line 100 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmPortPostHandler ( const struct RESTData data)
protected

Definition at line 61 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmPortSyncHandler ( const struct RESTData data)
protected

Definition at line 75 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmVnPortCfgGetHandler ( const struct RESTData data)
protected

Definition at line 200 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmVnPortDeleteHandler ( const struct RESTData data)
protected

Definition at line 158 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmVnPortGetHandler ( const struct RESTData data)
protected

Definition at line 173 of file rest_server.cc.

Here is the call graph for this function:

void RestServer::VmVnPortPostHandler ( const struct RESTData data)
protected

Definition at line 144 of file rest_server.cc.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class RestServerGetVmCfgTask
friend

Definition at line 67 of file rest_server.h.

Member Data Documentation

Agent* RestServer::agent_
private

Definition at line 69 of file rest_server.h.

HttpServer* RestServer::http_server_
private

Definition at line 70 of file rest_server.h.

const std::vector< RestServer::HandlerSpecifier > RestServer::RESTHandlers_
staticprotected

Definition at line 49 of file rest_server.h.


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