Is it possible to create a geoserver plugin which can intercept the ows request and response.
For example, for a given GetMap/GetFeature request, I can add extra parameters(like cql,bbox and etc) dynamically before geoserver execute the request. Just like the servlet filter mechanism.
The codebase is usually one level deeper, there are a callback for individual components that handle the request once it has been parsed.
In the specific case of WMS there is a “wms reflector” which provides an end point that fills in extra or missing parameters with good defaults and then call over to WMS.
Hi Yang,
yes there is, it’s called DispatcherCallback.
If you look at the inheritance hierarchy in a IDE, you’ll find numerous usages, both
for monitoring requests and altering them.
Cheers
Andrea
···
Regards, Andrea Aime
== GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.ithttp://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.