Re: Why isn't the doGet and doPost methods declared as abstract ?

2015-01-11 Thread Angel Java Lopez
Hi! My first guess: in that way, you can write a Servlet WITHOUT write ALL the abstract methods. The concrete methods of HTTPServlet implements the DEFAULT and EXPECTED behavior. Angel Java Lopez @ajlopez On Sun, Jan 11, 2015 at 4:52 AM, sreya...@gmail.com wrote: I have been browsing the

Why isn't the doGet and doPost methods declared as abstract ?

2015-01-11 Thread sreyan32
I have been browsing the source code of Tomcat and would like to know why the javax.servlet.HTTPServlet class has a non abstract implementation of the doGet, doPost, etc methods. Why not just declare them abstract ? I mean HTTPServlet is an abstract class so why take the trouble to write

Re: Why isn't the doGet and doPost methods declared as abstract ?

2015-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Angel, On 1/11/15 3:43 AM, Angel Java Lopez wrote: My first guess: in that way, you can write a Servlet WITHOUT write ALL the abstract methods. The concrete methods of HTTPServlet implements the DEFAULT and EXPECTED behavior. No, the concrete