On Thu, Apr 28, 2011 at 7:15 PM, Justin Deoliveira <[email protected]> wrote: > Well the query bands being requested are pretty specific, and not arbitrary > or supplied on the fly. The client has requested the following: > Application - By default "GeoTools", but overridden to "GeoServer" or "uDig" > when run from those applications > ClientUser - The authenticated user (in geoserver) if applicable. > ClientHostName - Same as above > Layer - The layer name being (possibly the geoserver layer name) being > queried, etc... > The Application qb is session local and the rest are statement local. The > former will be specified as a datastore connection param. The latter I was > thinking I would make use of EnvFunction to set some thread local values. > And then add a filter to the geoserver teradata function to set them.
I see. The only drawback I see using EnvFunction is that any user can also set the values in the wms query string. So you should protect from that... ideas: - reserve some identifiers to internal usage, throw an exception if the request contains anything that is reversed (e.g., anything starting with RESERVED_...) - decide on some params and make sure you are the last to update the env function so that whatever value the user set is overwritten Or, probably better, roll your own thread local system Cheers Andrea -- ------------------------------------------------------- Ing. Andrea Aime GeoSolutions S.A.S. Tech lead Via Poggio alle Viti 1187 55054 Massarosa (LU) Italy phone: +39 0584 962313 fax: +39 0584 962313 http://www.geo-solutions.it http://geo-solutions.blogspot.com/ http://www.youtube.com/user/GeoSolutionsIT http://www.linkedin.com/in/andreaaime http://twitter.com/geowolf ------------------------------------------------------- ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
