GET request also automatically supports an HTTP HEAD request
1.even if we don't override doHead method can we make head request. 2. If we override doHead method and make head request wich method will be called doHead or doGet
SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Yes, because this method is implemented in the HttpServlet class (doHead)
Therefore if your servlet extends HttpServlet class (which is an abstract class) the HEAD request will be handled by the doHead() which is defined in the superclass (HttpServlet).
Slightly off-topic: so are the defalut implementations of doGet and doPost the only methods that throw a NotSupportedException? Or doPut and doDelete also?
Where can you check the source code of HttpServlet?