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

#include <cHttpController.h>

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

Public Member Functions

cStringA get_Name () const
 
bool isMatchRoute (const char *pszObject) const
 
virtual HTTPRET_TYPE OnVerb (cHttpProtocolStreamBase *pClient, const cHttpHeaderClient &request, cStringA sURLReq)
 
- 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 ()
 

Public Attributes

cStringA m_sRoutePrefix
 The URL prefix/path we need to serve this type. can be "" = any/root. More...
 

Protected Member Functions

 cHttpController (cStringA sRoutePrefix)
 
virtual ~cHttpController ()
 

Detailed Description

Base class for handling a particular HTTP page URL object subrange. This is equivalent to a controller in M$ ASP MVC. A server plug-in for generating custom/dynamic pages. Base for cHttpControllerFileDir

Constructor & Destructor Documentation

◆ cHttpController()

GrayLib::cHttpController::cHttpController ( cStringA  sRoutePrefix)
inlineprotected

◆ ~cHttpController()

virtual GrayLib::cHttpController::~cHttpController ( )
inlineprotectedvirtual

Member Function Documentation

◆ get_Name()

cStringA GrayLib::cHttpController::get_Name ( ) const
inline

For quick sorted lookups.

◆ isMatchRoute()

bool GrayLib::cHttpController::isMatchRoute ( const char *  pszObject) const

Routing info match? Prefix match ? Prefer longer (Exact matches) over shorter (partial) matches.

◆ OnVerb()

HTTPRET_TYPE GrayLib::cHttpController::OnVerb ( cHttpProtocolStreamBase pClient,
const cHttpHeaderClient request,
cStringA  sURLReq 
)
virtual

Member Data Documentation

◆ m_sRoutePrefix

cStringA GrayLib::cHttpController::m_sRoutePrefix

The URL prefix/path we need to serve this type. can be "" = any/root.


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