private HttpServletRequest getHttpServletRequest ( ) { RequestContext context = getInstance ( RequestContext . class ) ; HttpServletRequest request = context . getRequest ( ) ; if ( request == null ) { throw new BugError ( "Attempt to use not initialized HTTP request." ) ; } return request ; }
Get HTTP request from current request context .