Using Filters

2009-06-10 Thread eags
I'd like to use Filter to implement all my security checks as a gateway to each gwt rpc call. I'm going to include a sessionID from the client as an argument to each RPC call. I'd like my filter in doFilter to be able to pull off that argument and check if the user is logged in and see what thei

Re: Using Filters

2009-06-11 Thread eags
Anyone have any idea about this or know where I can look/read to find out more? I'm totally at a loss here. It looks like there are a bunch of interesting methods for the ServletRequest class but HttpServletRequest doesn't have much I can do with it. On Jun 10, 3:31 pm, eags wrote: > I'd like

Re: Using Filters

2009-06-11 Thread olivier nouguier
Hi, You can take a look at http://code.google.com/p/net-orcades-spring/source/browse/trunk/orcades-spring-gwt/src/main/java/net/orcades/spring/gwt/component/GWTPayloadHelper.java And see how it's not so difficult to unmarshall the GWT RPC request. This code works for GWT 1.5 but is not optimal in

Re: Using Filters

2009-06-11 Thread Jamie
I have implemented something similar using a filter. In the doFilter, you can cast the ServletRequest parameter to an HttpServletRequest. You will then have access to cookies and the container's session. For example, HttpServletRequest hRequest = (HttpServletRequest)request; Cookie[] cookies =