;T&gt;&nbsp;T&nbsp;getRequest&#8203;(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang" class="externalLink">Class</a>&lt;T&gt;&nbsp;type)</pre>
<div class="block">Returns the HTTP request object from the container. The type of the request object
 depends on the environment. In a servlet environment you can use this method to get
 the <code>HttpServletRequest</code> object.</div>
<dl>
<dt><span class="paramLabel">Type Parameters: