The main purpose of this class is to retrieve a document from an HTTP server.
For many purposes the Java URLInputStream is good for this, but if you want to have full control over the HTTP headers (both request and response headers), HttpTool is the answer.
Also it defines a callback interface to inform a client about the state of the current download operation.
It is possible to abort a download after getting the HTTP response headers from the server (e.g. if a document of this Content-Type is useless for your application or the document is to big or whatever you like)
HttpTool is reusuable. You should initializes it once and use it for every download operation.
@author Daniel Matuschek @version $Id: HttpTool.java,v 1.28 2004/03/26 20:28:44 matuschd Exp $
|
|