19 #ifndef QGSSERVERRESPONSE_H 20 #define QGSSERVERRESPONSE_H 22 #include "qgis_server.h" 58 virtual void setHeader(
const QString &key,
const QString &value ) = 0;
64 virtual void removeHeader(
const QString &key ) = 0;
69 virtual QString header(
const QString &key )
const = 0;
74 virtual QMap<QString, QString> headers()
const = 0;
79 virtual bool headersSent()
const = 0;
86 virtual void setStatusCode(
int code ) = 0;
91 virtual int statusCode()
const = 0;
102 virtual void sendError(
int code,
const QString &message ) = 0;
109 virtual void write(
const QString &data );
117 virtual qint64 write(
const QByteArray &byteArray );
128 virtual qint64 write(
const char *data, qint64 maxsize )
SIP_SKIP;
139 virtual qint64 write(
const char *data )
SIP_SKIP;
150 virtual qint64 write( std::string data )
SIP_SKIP;
160 virtual QIODevice *io() = 0;
179 virtual void clear() = 0;
190 virtual QByteArray data()
const = 0;
197 virtual void truncate() = 0;
#define SIP_VIRTUALERRORHANDLER(name)
Exception base class for server exceptions.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...