41 contentType = QStringLiteral(
"image/png" );
44 contentType = QStringLiteral(
"image/jpeg" );
47 contentType = QStringLiteral(
"image/svg+xml" );
50 contentType = QStringLiteral(
"application/pdf" );
71 response.
setHeader( QStringLiteral(
"Content-Type" ), contentType );
virtual void setHeader(const QString &key, const QString &value)=0
Set Header entry Add Header entry to the response Note that it is usually an error to set Header afte...
QByteArray getPrint()
Returns printed page as binary.
Format
Output format for the response.
Exception thrown in case of malformed request.
virtual void write(const QString &data)
Write string This is a convenient method that will write directly to the underlying I/O device...
void setFlag(Flag flag, bool on=true)
Sets or unsets a rendering flag according to the on value.
void setParameters(const QgsWmsParameters ¶meters)
Sets WMS parameters.
Provides an interface to retrieve and manipulate WMS parameters received from the client...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts, annotations, canvases, etc.
Format format() const
Returns format.
void writeGetPrint(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetPrint response.
Median cut implementation.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
Map renderer for WMS requests.
Rendering context for the WMS renderer.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...