Removed dependency on HttpServletRequest and added HttpRequest interface