xmltooling 3.2.4
|
Interface to generic protocol responses that transport XML messages. More...
#include <xmltooling/io/GenericResponse.h>
Public Member Functions | |
virtual void | setContentType (const char *type=0)=0 |
Sets or clears the MIME type of the response. | |
virtual long | sendResponse (std::istream &inputStream)=0 |
Sends a completed response to the client along with a transport-specific "OK" indication. | |
virtual long | sendError (std::istream &inputStream)=0 |
Sends an "error" response to the client along with a transport-specific error indication. | |
virtual long | sendResponse (std::istream &inputStream, long status)=0 |
Sends a completed response to the client. | |
Interface to generic protocol responses that transport XML messages.
This interface need not be threadsafe.
|
pure virtual |
Sends an "error" response to the client along with a transport-specific error indication.
inputStream | reference to source of response data |
Implemented in xmltooling::HTTPResponse.
|
pure virtual |
Sends a completed response to the client along with a transport-specific "OK" indication.
Used for "normal" responses.
inputStream | reference to source of response data |
Implemented in xmltooling::HTTPResponse.
|
pure virtual |
Sends a completed response to the client.
inputStream | reference to source of response data |
status | transport-specific status to return |
Implemented in xmltooling::HTTPResponse.
|
pure virtual |
Sets or clears the MIME type of the response.
type | the MIME type, or nullptr to clear |
Implemented in xmltooling::HTTPResponse.