Abstract base class for different protocols used in Web Service servers. More...
#include <WSProtocol.h>
Public Member Functions | |
WSProtocol (TCPSocket *socket, const HttpHeaders &headers) | |
WSProtocol (const WSProtocol &)=delete | |
virtual | ~WSProtocol () |
WSProtocol & | operator= (const WSProtocol &)=delete |
virtual RequestInfo | process ()=0 |
Process virtual method - to be implemented in derived classes. More... | |
Protected Member Functions | |
TCPSocket & | socket () |
HttpHeaders & | headers () |
String | header (const sptk::String &name) |
Abstract base class for different protocols used in Web Service servers.
|
inline |
Constructor Note: the socket is not owned by this class and not discarded by destructor.
socket | Connection socket |
headers | Connection HTTP headers |
|
inlinevirtual |
|
protected |
Connection HTTP headers
|
inlineprotected |
Connection HTTP headers
|
pure virtual |
Process virtual method - to be implemented in derived classes.
Implemented in sptk::WSStaticHttpProtocol, sptk::WSWebServiceProtocol, and sptk::WSWebSocketsProtocol.
|
inlineprotected |
Connection socket