|
| WSWebServiceProtocol (HttpReader &httpReader, const URL &url, WSServices &services, const Host &host, bool allowCORS, bool keepAlive, bool suppressHttpStatus) |
|
RequestInfo | process () override |
| Process virtual method - to be implemented in derived classes. More...
|
|
void | generateFault (Buffer &output, HttpResponseStatus &httpStatus, String &contentType, const HTTPException &e, bool jsonOutput) const override |
|
| BaseWebServiceProtocol (TCPSocket *socket, const HttpHeaders &headers, sptk::WSServices &services, const URL &url) |
|
| 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...
|
|
|
std::shared_ptr< HttpAuthentication > | getAuthentication () override |
|
virtual std::shared_ptr< HttpAuthentication > | getAuthentication ()=0 |
|
virtual void | generateFault (Buffer &output, HttpResponseStatus &httpStatus, String &contentType, const HTTPException &e, bool jsonOutput) const =0 |
|
xdoc::SNode | processXmlContent (const char *startOfMessage, const xdoc::SNode &xmlContent) const |
|
void | processJsonContent (const char *startOfMessage, const xdoc::SNode &jsonContent, RequestInfo &requestInfo, HttpResponseStatus &httpStatus, String &contentType) const |
|
String | processMessage (Buffer &output, const xdoc::SNode &xmlContent, const xdoc::SNode &jsonContent, const SHttpAuthentication &authentication, bool requestIsJSON, HttpResponseStatus &httpResponseStatus, String &contentType) const |
|
TCPSocket & | socket () |
|
HttpHeaders & | headers () |
|
String | header (const sptk::String &name) |
|
WebService connection handler
Uses WSRequest service object to parse WS request and reply, then closes connection.