wood burning stoves 2.0
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes SCWCD Hints #19 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "SCWCD Hints #19" Watch "SCWCD Hints #19" New topic

SCWCD Hints #19

Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
The HTTP HEAD method is a GET method, the only difference is that it returns only the header and not the body. So you can override doGET when your HTTP method is HEAD.Is this correct?We still have to override doHead right?
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

We still have to override doHead right?

Yes, you still need to override doHead. doGet will not be invoked.

[My Blog]
All roads lead to JavaRanch
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9956

I don;'t think so that we have to explicitly override doHead if we have doGet overridden...

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Sorry, my mistake. I'll remember that one.

Overriding this method to support a GET request also automatically supports
an HTTP HEAD request. A HEAD request is a GET request that returns no
body in the response, only the request header fields.
I agree. Here's the link: http://aspose.com/file-tools
subject: SCWCD Hints #19
It's not a secret anymore!