How does the javax.servlet.http.HttpServletRequest Interface work?

If this really is an interface, then its methods should be abstract and have no implementation. And yet when i call request.getParameters(String);
then I recieve a result. Where is the implementation for this method, or what mechanism are they using to implement it?

Blair
blairdyeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

_lychee_Commented:
an interface is a way of specifying a particular set of methods a class must have... thus, if u say that request is of the type HttpServletRequest, it just means that the object that request points to fulfills that particular contract... if u have an object at hand, it already implements all the methods it 'needs'...

so to ur qn, the implementation for this method is in the class that the object is of (which u can get at by looking at request.getClass())...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
benson031397Commented:
I still don't understand what you are talking about!

Would you give us an example?


Benson
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.