[Geoserver-devel] Having the parsed request object in Dispatcher.REQUEST

Hi,
the Dispatcher.REQUEST thread local has proven to be quite useful in various
integration/custom development scenarios where we needed to get some extra
information about the incoming request (like, for example, accessing to vendor parameters
in a custom store implementation).

So far, so good, but I’m finding myself repeating over and over the same workarounds
to access the parsed request object, that is, create a dispatcher callback for the sole
reason of snatching the parsed request object in the operationDispatched callback,
put it in a thread local, to access is later.

I was wondering, would you mind if we put the Operation, or maybe just the
Object parameters of it, as a new field in Request?

Cheers
Andrea

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Apr 18, 2014 at 3:03 AM, Andrea Aime
<andrea.aime@anonymised.com>wrote:

Hi,
the Dispatcher.REQUEST thread local has proven to be quite useful in
various
integration/custom development scenarios where we needed to get some extra
information about the incoming request (like, for example, accessing to
vendor parameters
in a custom store implementation).

So far, so good, but I'm finding myself repeating over and over the same
workarounds
to access the parsed request object, that is, create a dispatcher callback
for the sole
reason of snatching the parsed request object in the operationDispatched
callback,
put it in a thread local, to access is later.

I was wondering, would you mind if we put the Operation, or maybe just the
Object parameters of it, as a new field in Request?

No objection here. I don't see any downside to putting the entire

operation there.

Cheers
Andrea

--

Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

--
*Justin Deoliveira*
Vice President, Engineering | Boundless
jdeolive@anonymised.com
@j_deolive <https://twitter.com/j_deolive&gt;