This is because GuiceFilter is only intended to work in HttpServlet environments. If there was a HttpFilter I would have used that instead (it's quite a pain to downcast ServletRequest every time as it is). IMO Servlet should be deprecated.
Dhanji. On Sat, Feb 14, 2009 at 3:29 AM, Rex Sheng <[email protected]> wrote: > > Hi, Dhanji, > warp-servlet move to google-servlet, so, I post my question here: > > The FilterKeyBindingBuilder uses javax.servlet.Filter in 'through's, > but why ServletKeyBindingBuilder uses javax.servlet.http.HttpServlet? > > I think it should be javax.servlet.Servlet cause web.xml will work on > a javax.servlet.Servlet which not required to be HttpServlet. > > Thanks, > Rex > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~----------~----~----~----~------~----~------~--~---
