Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cWebAPIController Class Reference

#include <cWebAPIController.h>

Inheritance diagram for GrayLib::cWebAPIController:
GrayLib::cHttpController Gray::cRefBase IUnknown GrayLib::cPingWebAPIController

Public Member Functions

 cWebAPIController (cStringA sURLPrefix)
 
virtual ~cWebAPIController ()
 
virtual HTTPRET_TYPE OnVerb (cHttpProtocolStreamBase *pClient, const cHttpHeaderClient &request, cStringA sURLReq) override
 
 UNITTEST_FRIEND (cWebAPIController)
 
- Public Member Functions inherited from GrayLib::cHttpController
cStringA get_Name () const
 
bool isMatchRoute (const char *pszObject) const
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 

Additional Inherited Members

- Public Attributes inherited from GrayLib::cHttpController
cStringA m_sRoutePrefix
 The URL prefix/path we need to serve this type. can be "" = any/root. More...
 
- Protected Member Functions inherited from GrayLib::cHttpController
 cHttpController (cStringA sRoutePrefix)
 
virtual ~cHttpController ()
 

Detailed Description

Server side for the WebAPI. use a HTTP like RESTful API to get data from a server. NOT the same as WebService, NOT SOAP. WSDL. This is a sub plug-in for cHttpFactory

Constructor & Destructor Documentation

◆ cWebAPIController()

GrayLib::cWebAPIController::cWebAPIController ( cStringA  sURLPrefix)

◆ ~cWebAPIController()

GrayLib::cWebAPIController::~cWebAPIController ( )
virtual

Member Function Documentation

◆ OnVerb()

HTTPRET_TYPE GrayLib::cWebAPIController::OnVerb ( cHttpProtocolStreamBase pClient,
const cHttpHeaderClient request,
cStringA  sURLReq 
)
overridevirtual

Reimplemented from GrayLib::cHttpController.

◆ UNITTEST_FRIEND()

GrayLib::cWebAPIController::UNITTEST_FRIEND ( cWebAPIController  )

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