-----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 methods of HttpServlet do nothing at all except return successfully. The simplest answer is that HttpServlet is defined by the spec to have those method signatures. The more nuanced answer is that you don't always want to specify the behavior of every single HTTP method. What if you don't want to define doPut()? Should you have to put an empty doPut() in every servlet you ever write? The default method implementations are there to save you the time having to write do-nothing implementation of every HTTP verb. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJUsv4uAAoJEBzwKT+lPKRYLrYP+QFFI4F4BzZyR+xsrot6q1yG BwO6Y+sasVCkp1vWdeyALhhML4/lq6EtLpYyCvexfphwqwQ0BfzswrREZEfU8DE3 QnlBsfGWn4E3ctJf5hTBZzWskkXFj508PucuxeoBjjZBrNJJPQjkA4dyNi08a2MG aCH1RuGjbaOH5s/nZhUIromwxpeGGCMqn1+WHvXuSe3hW6KvUtzgxx26g4C1allB VajHToOI8dNBHOmN9egU8eLCIwGZcDDNMMOHY/9h4SHZHiFgVecj5wlT/7Z/eZms BLqIJMq4aO1bFny2nQu5oXzJWZIYNp4fpXG7+7n1Vt57NBvbUSrGR7MVyGZeu577 JeB9jjcxdS7rx6K/5QoOvmtA5PxIN8mBIM8Hqcj/oryk9Y9Kn0yZ98J550FKTXTB jehVVHWbVQHHXyV2fz6slr/KrqyFWz7bI9Xck8hkfbwoWi2kBbWx8UE6ovdbACUd j5eGiJ2jq128YAyP/Z5Y4wu1F7RD0G2fHJKhVBHQ+3DPmmlr0edtBfN0Gof2RUjt lbgUTl0CeQ1/45qPt1fJMUzwlo35a8KTGAWMqcCo+RTUjQcVxiGS4ZNq4pkpruN+ GEO7XDhqONn39x5FaALBGqHrdFcxvA8gRrtgQ7fnZQIRZDyNWs6KKqwisxDfkTZv kZcfXfGAnYdFgJ4Viqu9 =VqHR -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org