How to create a new object of HttpServletRequest class manually?
843840May 2 2002 — edited May 7 2002Dear all,
I don't know how silly my question is, however I have no way except asking.
I know that when I send a request from the client to the server, server authomatically creates an object of
HttpServletRequest and assigns all the request information to that object, so that you can extract these information by the available methods in the HttpServletRequest class like getHeader, getMethod and so on. What I need to do in my project is doing all above process manually. My question is how I can do it?
In other words, I have the header and body part of a http request and I want to create a HttpServletRequest
object and assign the header and body data to the object so that I'll be able to extract those data by using the getHeader, getMethod and other methods available in the HttpServletRequest class.
Please Help me, I really need your help?
Your help is appreciated.
Thanks.