22 Commits

Author SHA1 Message Date
David Marteau
a55390e319 Restore body() accessor in QgsRequestHandler
Restore clearBody() method in QgsRequestHandler
2017-04-21 14:33:10 +02:00
David Marteau
e17a7d4e21 Move wcs as service module 2017-01-17 22:02:02 +01:00
David Marteau
56b2f08865 Move wfs as service module 2017-01-17 17:21:25 +01:00
David Marteau
8b0526d678 Revisit server exceptions
- Add server exception base class
    - Enable per service exception definition
    - Handle QgsException gracefully (error 500)
    - Handle OGC exception versioning
2017-01-14 22:17:45 +01:00
David Marteau
262969015d Add headers keys and value accessors 2017-01-10 14:34:18 +01:00
David Marteau
12f3b5fae7 QgsRequestHandler is now a concrete class
I/O transactions are now abstracted with QgsServerRequest/QgsServerResponse
    So there is no need for another abstraction layer
2017-01-10 14:34:17 +01:00
David Marteau
64fc56c808 Implement QgsFcgiRequest and QgsFcgiResponse 2017-01-10 14:34:17 +01:00
Nyall Dawson
44289084e9 Optimise passing of variables by ref/value 2016-10-24 10:36:23 +10:00
Juergen E. Fischer
f4cb295e65 server sip sync 2016-10-01 13:23:36 +02:00
Juergen E. Fischer
a90be95f7b sip sync 2016-02-14 03:50:49 +01:00
Stéphane Brunner
c9f0d83aaf The plugin define the following methods:
* layerFilterExpression
  Return an additional filter, used in
  WMS/GetMap, WMS/GetFeatureInfo, WFS/GetFeature to filter the features
* layerFilterSubsetString
  Return an additional the subset string (typically SQL) filter.
  Faster than the layerFilterExpression but not supported on all the
  type of layer
* layerPermissions
  Change the rights on the layer per user (known by the plugin)
  Concern rights: publish, insert, update, delete.
  Mostly used in WFS/Transaction, and the publish in all requests.
* authorizedLayerAttributes
  Be able to show some attributes only for a subset of user
  Used in: WMS/GetFeatureInfo, WFS/GetFeature
* allowToEdit
  Be able to don't allow to edit a particular feature, in our case base
  on the Geometry
  Used in: WFS/Transaction
* cacheKey
  Cache key to used to create the capabilities cache, "" for no cache,
  shouldn't contains any "-", default to ""
2015-11-18 14:49:43 +01:00
elpaso
e930d696fa [server] setFilters implementation, bindings and test
* moved type conversion to conversions.sip (template)
* added setFilters() to QgsServerInterface
* added tests
2015-08-06 17:51:26 +02:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
elpaso
c126592272 Clear the request handler when done
also added some comments and docs strings
2015-07-10 12:03:55 +02:00
Marco Hugentobler
153deba2fc Update python bindings for qgsrequesthandler 2015-07-07 14:57:18 +02:00
Juergen E. Fischer
6e8d19c2ed fix windows 32bit build 2015-02-04 07:15:49 +01:00
Juergen E. Fischer
6d4f444237 sip fix: remove duplicate method and private methods from server request
handler (followup abd4a043)
2015-02-04 01:39:29 +01:00
Juergen E. Fischer
abd4a04399 sip update 2015-02-03 02:21:52 +01:00
elpaso
33f1e35333 body() now return QByteArray
Funded by ItOpen - http://www.itopen.it
2014-11-26 16:07:51 +01:00
elpaso
856e4dede6 Set exception moved to public 2014-11-26 16:03:57 +01:00
elpaso
ca8e0c3991 Added comments for bindings. 2014-11-26 16:03:57 +01:00
elpaso
5f44cc5719 Added serve python plugins 2014-11-26 16:02:32 +01:00