[Geoserver-devel] [jira] (GEOS-6457) Make the dispatched Operation available in Dispatcher.REQUEST thread local

Andrea Aime created an issue

GeoServer / ImprovementGEOS-6457

Make the dispatched Operation available in Dispatcher.REQUEST thread local

Issue Type:

ImprovementImprovement

Affects Versions:

2.6-beta

Assignee:

Andrea Aime

Created:

22/Apr/14 5:08 AM

Priority:

MajorMajor

Reporter:

Andrea Aime

From the mailing list:

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?

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo