users@jersey.java.net

[Jersey] HttpContext persistence - any ideas?

From: Alex Treppass <alextreppass_at_gmail.com>
Date: Mon, 13 Dec 2010 15:15:01 +0000

All,

What are the rules which govern when the HttpContext will be persisted or
recreated between requests from the same client?

I am attempting to put an object in the httpContext.getProperties() map and
return a See Other Response, and then (when the browser then requests the
'see other' page) for my Message Body Writer to get this object back out and
do something with it.

Putting the object in is successful, but when the 2nd call comes in the
httpContext object appears to have changed and the properties map is empty.

Regards,