[Texo] provide a method to get cookie/session data from JsonObjectStore.doHTTPRequest() [message #1008990] |
Thu, 14 February 2013 09:05 |
peter meyer Messages: 13 Registered: September 2012 |
Junior Member |
|
|
Hello Martin,
we are evaluating Texo for a RCP Client/Tomcat server project.
In the Tomcat Server we run one webapp for CRUD data operations with Texo jsonws, in the same Tomcat we run Birt for serverside report generation. Both webapps need authorisation. We want to use the single sign on mechanismen which tomcat provide. This mechnismen use session/cookie information and share it between webapps in the same host.
To use this cool feature we must must be able to get and store session information from the HTTP Request in the RCP Client and put it in the following requests.
The communication of our RCP Client starts with a JSONEObjectStore.doHTTPRequest.
Would it be possible to provide in the JSONEObjectStore a method
afterConnect(HttpURLConnection con)
with the established HttpURLConnection as parameter, which is called in the doHTTPRequest method after the connection is established?
We could override this method (like beforeConnect) and get information from the connection.
best regards
Peter
[Updated on: Thu, 14 February 2013 09:06] Report message to a moderator
|
|
|
Re: [Texo] provide a method to get cookie/session data from JsonObjectStore.doHTTPRequest() [message #1009006 is a reply to message #1008990] |
Thu, 14 February 2013 09:35 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Peter/Bernd,
Yes that's no problem, will add this.
Can you provide me with a diff or exact line number where to call afterConnect? (this to prevent one change-build cycle
if I accidentally choose the wrong location).
gr. Martin
On 02/14/2013 10:05 AM, peter meyer wrote:
> Hello Martin,
>
> we are evaluating Texo for a RCP Client/Tomcat server project.
>
> In the Tomcat Server we run one webapp for CRUD data operations with Texo jsonws, in the same Tomcat we run Birt for
> serverside report generation. Both webapps need authorisation. We want to use the single sign on mechanismen which
> tomcat provide. This mechnismen use session/cookie information and share it between webapps in the same host.
>
> To use this cool feature we must must be able to get and store session information from the HTTP Request in the RCP
> Client and put it in the following requests.
>
> The communication of our RCP Client starts with a JSONEObjectStore.doHTTPRequest.
>
> Would it be possible to provide in the JSONEObjectStore a method
>
> afterConnect(HttpURLConnection con)
> with the established HttpURLConnection as parameter, which is called in the doHTTPRequest method after the connection
> is established?
>
>
> We could override this method (like beforeConnect) and get information from the connection.
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03508 seconds