Re: [Geoserver-users] Retrieving custom params from a Geoserver request

2013-10-23 Thread Andrea Aime
On Wed, Oct 23, 2013 at 10:04 PM, beldar15  wrote:

> Hi,
>
> I published a WFS and created a WFS Data Store on Geoserver. Everything
> working well until this point.
> The problem is that I feed the WFS with data contained in a session. To
> retrieve the data of this session I need to send, at least the 'session
> id'.
> Is there a way, (please feel free to suggest any other possible solution)
> to
> manipulate the params that Geoserver send to the WFS, in order to send as
> well the session id.
>

Get the org.geoserver.ows.Dispatcher.REQUEST thraed local, get it, if you're
running inside a HTTP request it will contain the HTTPServletRequest, I
believe
you can get cookies and request params out of it, the session id should be
there.

Cheers
Andrea


-- 
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it 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

---
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


[Geoserver-users] Retrieving custom params from a Geoserver request

2013-10-23 Thread beldar15
Hi,

I published a WFS and created a WFS Data Store on Geoserver. Everything
working well until this point.
The problem is that I feed the WFS with data contained in a session. To
retrieve the data of this session I need to send, at least the 'session id'.
Is there a way, (please feel free to suggest any other possible solution) to
manipulate the params that Geoserver send to the WFS, in order to send as
well the session id.

I was reading about filter and cql_filter params, It gave me the idea but I
couldn't make it work using them.

As I said, any suggestion is accepted, I have to many time working on this
and I am very near to become crazy. Please Help S.O.S.

If you need more directions or have any doubt, don't hesitate on asking!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Retrieving-custom-params-from-a-Geoserver-request-tp5085438.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
___
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users