Yes,
I moved down the RestEasyRequest handler into the RequestFilter chain and now I
can even inject my SessionStateObjects. Great.
I want to use those SessionStateObjects to forward authentication information
for the REST services. Within the single request. To be able to authenticate
either
You are right, the Request is not yet available. The RESTEasy filter
is a HttpServletRequestFilter not a RequestFilter, so you need to
inject the HttpServletRequest to make it work.
Try this:
@Inject
private HttpServletRequest request;
BTW, remember that sessions should be irrelev
> ?? I don't understand your question. I beleive that tapestry-resteasy does
> this for me.
Hm. RESTEasy is a jboss project, I assumed you were rolling your own
tapestry integration since you didn't mention anything about using a
third party library for doing that integration.
> Could it be that
?? I don't understand your question. I beleive that tapestry-resteasy does this
for me.
Could it be that since the tapestry-resteasy HttpServletRequestHandler is
placed before:GZIP, tapestry has not yet initialized its RequestGlobals and
thus the session information is not yet available where r
> I'd like to get access to the current session from inside my resteasy handler
> methods.
How are you creating your resteasy handler?
On Mon, Oct 25, 2010 at 3:06 AM, Moritz Gmelin wrote:
> Hi,
>
> I'd like to get access to the current session from inside my resteasy handler
> methods. But whe
Hi,
I'd like to get access to the current session from inside my resteasy handler
methods. But when I inject the request and call getSession() on it, I get a
NullPointerException.
My original goal was to get access to SessionState objects from tapestry by
calling the ApplicationStateManager.ge