For
testing and portability jForum uses it's own interface (RequestContext). This allows for some jforum code to be tested outside of the web server environment.
However, in the web environment, the class that implements this interface in the web environment is just a HTTPServletRequest wrapper. This mean you can cast the RequestContext object as a HTTPServletRequest class and get all the methods.
[originally posted on jforum.net by monroe]