| net.matuschek.http.HttpToolCallback
All known Subclasses: net.matuschek.jobo.JoBoSwing, net.matuschek.http.SystemOutHttpToolCallback,
HttpToolCallback | public interface HttpToolCallback (Code) | | Callback interface to inform a frontend about the state of the
current HttpTool download operation
author: Daniel Matuschek version: $Id $ |
setHttpToolDocCurrentSize | void setHttpToolDocCurrentSize(int size)(Code) | | after a block of bytes was read (default after every 1024 bytes,
this method will be called
Parameters: size - the number of bytes that where retrieved |
setHttpToolDocSize | void setHttpToolDocSize(int size)(Code) | | After HttpTool got a Content-Length header
this method will be called to inform about the size of
the document to retrieve
Parameters: size - document size in |
setHttpToolDocUrl | void setHttpToolDocUrl(String url)(Code) | | After initiating a download, this method will be called to
inform about the URL that will be retrieved
Parameters: URL - url that will be retrieved now |
setHttpToolStatus | void setHttpToolStatus(int status)(Code) | | informs about the current status of the HttpTool
Parameters: status - an integer describing the current statusconstants defined in HttpTool See Also: HttpTool |
|
|