reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
repro::WebAdmin Class Reference

#include <WebAdmin.hxx>

Inheritance diagram for repro::WebAdmin:
[legend]

Classes

class  ConfigException
 

Public Member Functions

 WebAdmin (Proxy &proxy, resip::RegistrationPersistenceManager &regDb, resip::PublicationPersistenceManager &pubDb, const resip::Data &realm, int port=5080, resip::IpVersion version=resip::V4, const resip::Data &ipAddr=resip::Data::Empty)
 
virtual ~WebAdmin ()
 
void parseUserFile ()
 Load web admin users from a file.
 
virtual void handleStatisticsMessage (resip::StatisticsMessage &statsMessage)
 
void setApiResponse (int pageNumber, int statusCode, const resip::Data &jsonBody)
 
- Public Member Functions inherited from repro::HttpBase
 HttpBase (int port, resip::IpVersion version, const resip::Data &realm, const resip::Data &ipAddr=resip::Data::Empty)
 
virtual ~HttpBase ()
 
void buildFdSet (resip::FdSet &fdset)
 
void process (resip::FdSet &fdset)
 
bool isSane ()
 
- Public Member Functions inherited from resip::GetDnsCacheDumpHandler
 GetDnsCacheDumpHandler ()
 
virtual ~GetDnsCacheDumpHandler ()
 

Protected Member Functions

virtual void buildPage (const resip::Data &method, const resip::Data &uri, int pageNumber, const resip::Data &user, const resip::Data &password)
 
virtual void onDnsCacheDumpRetrieved (std::pair< unsigned long, unsigned long > key, const resip::Data &dnsEntryStrings)
 
- Protected Member Functions inherited from repro::HttpBase
void setPage (const resip::Data &page, int pageNumber, int response=200, const resip::Mime &pType=resip::Mime("text","html"))
 

Friends

class CommandServer
 
class RestAdmin
 

Additional Inherited Members

- Protected Attributes inherited from repro::HttpBase
const resip::Data mRealm
 

Detailed Description

Definition at line 33 of file WebAdmin.hxx.

Constructor & Destructor Documentation

◆ WebAdmin()

WebAdmin::WebAdmin ( Proxy &  proxy,
resip::RegistrationPersistenceManager &  regDb,
resip::PublicationPersistenceManager &  pubDb,
const resip::Data &  realm,
int  port = 5080,
resip::IpVersion  version = resip::V4,
const resip::Data &  ipAddr = resip::Data::Empty 
)

Definition at line 152 of file WebAdmin.cxx.

◆ ~WebAdmin()

WebAdmin::~WebAdmin ( )
virtual

Definition at line 183 of file WebAdmin.cxx.

Member Function Documentation

◆ buildPage()

void WebAdmin::buildPage ( const resip::Data &  method,
const resip::Data &  uri,
int  pageNumber,
const resip::Data &  user,
const resip::Data &  password 
)
protectedvirtual

Implements repro::HttpBase.

Definition at line 298 of file WebAdmin.cxx.

◆ handleStatisticsMessage()

void WebAdmin::handleStatisticsMessage ( resip::StatisticsMessage &  statsMessage)
virtual

Definition at line 2422 of file WebAdmin.cxx.

◆ onDnsCacheDumpRetrieved()

void WebAdmin::onDnsCacheDumpRetrieved ( std::pair< unsigned long, unsigned long >  key,
const resip::Data &  dnsEntryStrings 
)
protectedvirtual

Implements resip::GetDnsCacheDumpHandler.

Definition at line 2233 of file WebAdmin.cxx.

◆ parseUserFile()

void WebAdmin::parseUserFile ( )

Load web admin users from a file.

We use the same type of file that is generated by Apache's htdigest utility

username:realm:HA1

where HA1 can be created by:

echo -n 'user:realm:password' | md5sum

Definition at line 203 of file WebAdmin.cxx.

◆ setApiResponse()

void WebAdmin::setApiResponse ( int  pageNumber,
int  statusCode,
const resip::Data &  jsonBody 
)

Definition at line 2416 of file WebAdmin.cxx.

Friends And Related Symbol Documentation

◆ CommandServer

Definition at line 71 of file WebAdmin.hxx.

◆ RestAdmin

Definition at line 152 of file WebAdmin.hxx.


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