Re: How to intercept GWT RPC

2011-10-05 Thread Tomasz Gawel

If you work with spring you probably have a spring controller that
extends RemoteServiceServlet implementation. (look at this topic
comment)
you can stick interceptor on handleRequest method as normally in
Spring you would do :).

or if you need to get some piece of information from decoded payload -
you must override one of RemoteServiceServlet methods - but
interceptor would not be possible as they are called internally.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to intercept GWT RPC

2011-10-04 Thread Bruno Sandivilli
You dont need this, just use:

HttpServletRequest request = this.getThreadLocalRequest();


2011/10/4 Costa 

> Hi,
>
> I would like to encode information of the current session, such as the
> session Id, current user for each GWT RPC call, how can I add this in
> the RPC request and response?
>
> Thanks,
> Costa
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to intercept GWT RPC

2011-10-04 Thread Costa
Hi,

I would like to encode information of the current session, such as the
session Id, current user for each GWT RPC call, how can I add this in
the RPC request and response?

Thanks,
Costa

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.