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 extend HttpServletRequestWrapper ?

843841Nov 18 2005 — edited Nov 19 2005
I'd like to create a class that extends HttpServletRequestWrapper in order to store the instances of this class, that are HttpServletRequest objects, as values on an Hashtable.

My problem is that HttpServletRequestWrapper has only one constructor, with an HttpServletRequest object as parameter.

So if I extend HttpServletRequestWrapper like this it doesn't compile:

-----------------------------------------------------------

public class MyHttpRequest extends HttpServletRequestWrapper
{
public HttpRequest(HttpServletRequest request)
{

}

}

-----------------------------------------------------------

The compiler message is that it cannot resolve constructor: HttpServletRequestWrapper()


I Hope somebody could help!

Peppe.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 17 2005
Added on Nov 18 2005
9 comments
794 views