aspose file tools*
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
Author

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: 9381
    
    2

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é
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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

doGet
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