File tree Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Expand file tree Collapse file tree 3 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -597,6 +597,7 @@ INPUT = @CMAKE_SOURCE_DIR@/doc \
597
597
@CMAKE_SOURCE_DIR@/src/analysis/raster \
598
598
@CMAKE_SOURCE_DIR@/src/analysis/vector \
599
599
@CMAKE_SOURCE_DIR@/src/plugins \
600
+ @CMAKE_SOURCE_DIR@/src/server/qgsserver.h \
600
601
@CMAKE_SOURCE_DIR@/src/server/qgscapabilitiescache.h \
601
602
@CMAKE_SOURCE_DIR@/src/server/qgsmapserviceexception.h \
602
603
@CMAKE_SOURCE_DIR@/src/server/qgsrequesthandler.h \
Original file line number Diff line number Diff line change @@ -65,15 +65,32 @@ class SERVER_EXPORT QgsServer
65
65
* for testing purposes.
66
66
* The query string is normally read from environment
67
67
* but can be also passed in args and in this case overrides the environment
68
- * variable */
68
+ * variable
69
+ *
70
+ * @param queryString optional QString containing the query string
71
+ * @return the response QByteArray if called from python bindings, empty otherwise
72
+ */
69
73
QByteArray handleRequest ( const QString queryString = QString( ) );
70
74
QByteArray handleRequest ( const QString queryString,
71
75
const bool returnHeaders,
72
76
const bool returnBody );
77
+ /* *
78
+ * Handles the request and returns only the body
79
+ *
80
+ * @param queryString optional QString containing the query string
81
+ * @return the response body QByteArray if called from python bindings, empty otherwise
82
+ */
73
83
QByteArray handleRequestGetBody ( const QString queryString = QString( ) );
84
+
85
+ /* *
86
+ * Handles the request and returns only the headers
87
+ *
88
+ * @param queryString optional QString containing the query string
89
+ * @return the response headers QByteArray if called from python bindings, empty otherwise
90
+ */
74
91
QByteArray handleRequestGetHeaders ( const QString queryString = QString( ) );
75
92
76
- /* * Returns the server context */
93
+ /* * Returns a pointer to the server interface */
77
94
#ifdef HAVE_SERVER_PYTHON_PLUGINS
78
95
QgsServerInterfaceImpl* serverInterface ( ) { return mServerInterface ; }
79
96
#endif
Original file line number Diff line number Diff line change @@ -71,9 +71,20 @@ class SERVER_EXPORT QgsServerInterface
71
71
* @return QgsServerFiltersMap list of QgsServerFilter
72
72
*/
73
73
virtual QgsServerFiltersMap filters ( ) = 0;
74
- // ! Pass environment variables to python
74
+
75
+ // ! Return an enrironment variable, used to pass environment variables to python
75
76
virtual QString getEnv ( const QString& name ) const = 0;
77
+
78
+ /* *
79
+ * Return the configuration file path
80
+ * @return QString containing the configuration file path
81
+ */
76
82
virtual QString configFilePath ( ) = 0;
83
+
84
+ /* *
85
+ * Set the configuration file path
86
+ * @param configFilePath QString with the configuration file path
87
+ */
77
88
virtual void setConfigFilePath ( QString configFilePath ) = 0;
78
89
79
90
private:
You can’t perform that action at this time.
0 commit comments