public static HttpServletRequest toHttp(ServletRequest request) {
        return (HttpServletRequest) request;
    }
A convenience method that merely casts the incoming <code>ServletRequest</code> to an
<code>HttpServletRequest</code>:
<p/>
<code>return (HttpServletRequest)request;</code>
<p/>
Logic could be changed in the future for logging or throwing an meaningful exception in
non HTTP request environments (e.g. Portlet API).

@param request the incoming ServletRequest
@return the <code>request</code> argument casted to an <code>HttpServletRequest</code>.
web/src/main/java/org/apache/shiro/web/util/WebUtils.java