Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a new object of HttpServletRequest class manually?

843840May 2 2002 — edited May 7 2002
Dear 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2002
Added on May 2 2002
4 comments
1,495 views