File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlets method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets method" Watch "servlets method" New topic

servlets method

Vandiyadevan senthan
Ranch Hand

Joined: Nov 11, 2003
Posts: 37
Goodday to all,

I have one ques with me abt the functionality of few methods in servletRequest interface.

When we will we use doTrace() & doOptions() methods in real time application?

Appreciate your valuable feedback on this.

Best Regards,
Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Probably never...

The TRACE HTTP method is asking for a trace of the actual request, so the client can see exactly what is being recieved by the server. This is used only for testing and troubleshooting.

OPTIONS asks for a list of the http methods to which the requested resource can respond. For example, "Allow: OPTIONS, TRACE, GET, HEAD, POST".

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
I agree. Here's the link:
subject: servlets method
It's not a secret anymore!