PPL7-Icon Patrick's Programming Library Version 7.0.0 - Dokumentation
ppl7::Webserver Klassenreferenz

Klassen

class  Request
 

Öffentliche Methoden

 Webserver ()
 
virtual ~Webserver ()
 
virtual int authenticate (const String &username, const String &password, Request &req)
 
void bind (const String &adr, int port)
 
void enableSSL (bool enable)
 
virtual String getDenyMessage ()
 
void loadCertificate (const String &certificate, const String &privatekey, const String &password)
 
 PPL7EXCEPTION (CouldNotBindToSocket, Exception)
 
 PPL7EXCEPTION (InvalidSSLCertificate, Exception)
 
 PPL7EXCEPTION (NoAddressSpecified, Exception)
 
 PPL7EXCEPTION (CouldNotStartDaemon, Exception)
 
 PPL7EXCEPTION (SSLInitializationFailed, Exception)
 
int queueBasicAuthFailedResponse (const Request &req)
 
int queueResponse (const Request &req, const String &text, int httpStatus=200)
 
virtual int request (Request &req)
 
void requireBasicAuthentication (bool enable, const String &realm)
 
bool sslEnabled () const
 
void start ()
 
void stop ()
 
bool useBasicAuthentication () const
 

Private Attribute

bool basicAuthentication
 
void * daemon
 
int port
 
String realm
 
AssocArray res
 
TCPSocket Socket
 
SSLContext SSL
 
String sslcert
 
bool SSLEnabled
 
String sslkey
 

Beschreibung der Konstruktoren und Destruktoren

ppl7::Webserver::Webserver ( )
virtual ppl7::Webserver::~Webserver ( )
virtual

Dokumentation der Elementfunktionen

virtual int ppl7::Webserver::authenticate ( const String username,
const String password,
Request req 
)
virtual
void ppl7::Webserver::bind ( const String adr,
int  port 
)
void ppl7::Webserver::enableSSL ( bool  enable)
virtual String ppl7::Webserver::getDenyMessage ( )
virtual
void ppl7::Webserver::loadCertificate ( const String certificate,
const String privatekey,
const String password 
)
ppl7::Webserver::PPL7EXCEPTION ( CouldNotBindToSocket  ,
Exception   
)
ppl7::Webserver::PPL7EXCEPTION ( InvalidSSLCertificate  ,
Exception   
)
ppl7::Webserver::PPL7EXCEPTION ( NoAddressSpecified  ,
Exception   
)
ppl7::Webserver::PPL7EXCEPTION ( CouldNotStartDaemon  ,
Exception   
)
ppl7::Webserver::PPL7EXCEPTION ( SSLInitializationFailed  ,
Exception   
)
int ppl7::Webserver::queueBasicAuthFailedResponse ( const Request req)
int ppl7::Webserver::queueResponse ( const Request req,
const String text,
int  httpStatus = 200 
)
virtual int ppl7::Webserver::request ( Request req)
virtual
void ppl7::Webserver::requireBasicAuthentication ( bool  enable,
const String realm 
)
bool ppl7::Webserver::sslEnabled ( ) const
void ppl7::Webserver::start ( )
void ppl7::Webserver::stop ( )
bool ppl7::Webserver::useBasicAuthentication ( ) const

Dokumentation der Datenelemente

bool ppl7::Webserver::basicAuthentication
private
void* ppl7::Webserver::daemon
private
int ppl7::Webserver::port
private
String ppl7::Webserver::realm
private
AssocArray ppl7::Webserver::res
private
TCPSocket ppl7::Webserver::Socket
private
SSLContext ppl7::Webserver::SSL
private
String ppl7::Webserver::sslcert
private
bool ppl7::Webserver::SSLEnabled
private
String ppl7::Webserver::sslkey
private

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: