passing httpservletrequest to method
<p>I am having a servlet class which takes the HttpServletRequest, i need to pass the request to another method. How can i get the request in another method.</p>

<p>Servlet:</p>

<pre><code>     public void doPost(final HttpServletRequest request,
                               final HttpServletResponse response)
      XmlParser xmlParser = new XmlParser();
      xmlParser.getRequest(request);
</code></pre>

<p>XmlParser class:</p>

<pre><code>public class XmlParser{
    public void getRequest () //How can i get the request parameter from the servlet. 
    {
    }
}
</code></pre>
