2015-05-29 10:19:51 +02:00
|
|
|
/***************************************************************************
|
2016-02-14 03:50:23 +01:00
|
|
|
qgsserver.sip
|
2016-01-07 10:48:58 +01:00
|
|
|
QGIS Server main class.
|
|
|
|
-------------------
|
2015-05-29 10:19:51 +02:00
|
|
|
begin : 2015-05-21
|
|
|
|
copyright : (C) 2015 by Alessandro Pasotti
|
|
|
|
email : a dot pasotti at itopen dot it
|
2016-01-07 10:48:58 +01:00
|
|
|
***************************************************************************/
|
2015-05-29 10:19:51 +02:00
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
|
2016-02-14 03:50:23 +01:00
|
|
|
/** \ingroup server
|
|
|
|
* The QgsServer class provides OGC web services.
|
|
|
|
*/
|
2015-05-29 10:19:51 +02:00
|
|
|
class QgsServer
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsserver.h"
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
2016-09-25 09:43:47 +02:00
|
|
|
/** Creates the server instance
|
|
|
|
* @param captureOutput set to false for stdout output (FCGI)
|
2016-01-07 10:48:58 +01:00
|
|
|
*/
|
2017-01-04 01:13:14 +01:00
|
|
|
QgsServer();
|
2016-09-25 09:43:47 +02:00
|
|
|
~QgsServer();
|
2016-01-07 10:48:58 +01:00
|
|
|
|
|
|
|
/** Set environment variable
|
|
|
|
* @param var environment variable name
|
|
|
|
* @param val value
|
|
|
|
* @note added in 2.14
|
|
|
|
*/
|
|
|
|
void putenv( const QString &var, const QString &val );
|
|
|
|
|
2017-01-04 01:13:14 +01:00
|
|
|
/** Handles the request.
|
2016-01-07 10:48:58 +01:00
|
|
|
* The query string is normally read from environment
|
|
|
|
* but can be also passed in args and in this case overrides the environment
|
|
|
|
* variable
|
|
|
|
*
|
2017-01-04 01:13:14 +01:00
|
|
|
* @param request a QgsServerRequest holding request parameters
|
|
|
|
* @param response a QgsServerResponse for handling response I/O)
|
2016-01-07 10:48:58 +01:00
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void handleRequest( QgsServerRequest &request, QgsServerResponse &response );
|
2017-01-04 01:13:14 +01:00
|
|
|
|
2016-02-14 03:50:23 +01:00
|
|
|
|
|
|
|
/** Returns a pointer to the server interface */
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsServerInterface *serverInterface();
|
2015-05-29 10:19:51 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
QgsServer( const QgsServer& );
|
2017-05-03 07:45:22 +02:00
|
|
|
QgsServer &operator=( const QgsServer& );
|
2015-05-29 10:19:51 +02:00
|
|
|
};
|
2017-01-05 17:40:57 +01:00
|
|
|
|