|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HttpListener
Interface for listening to download events, such as setting of the download content length, new data downloaded, etc.
| Method Summary | |
|---|---|
void |
onBadHeader(String header)
|
void |
onConnect(long ms)
Called when a connection is made to the remote host. |
void |
onContentLength(long contentLength)
Called when the downloader has determined the content length of the resource. |
void |
onContentRange(org.apache.commons.lang.math.LongRange range)
|
void |
onCouldNotConnect()
Called when we could not connect to the remote host. |
void |
onDownloadStarted()
Called when the download has started. |
void |
onFailure()
|
void |
onHttpException(org.apache.commons.httpclient.HttpException httpException)
Called when there's an HTTP exception while connecting to the remote host. |
void |
onMessageBodyRead()
Called when the HTTP message body has been read. |
void |
onNoTwoHundredOk(int responseCode)
Called when we receive a response code other than 200 OK. |
void |
onPermanentFailure()
|
void |
onStatusEvent(String status)
Called when the status of the the download has changed. |
| Methods inherited from interface org.littleshoot.util.WriteListener |
|---|
onBytesRead |
| Method Detail |
|---|
void onContentLength(long contentLength)
contentLength - The length of the content in bytes.void onStatusEvent(String status)
status - The status of the download.void onDownloadStarted()
void onCouldNotConnect()
void onConnect(long ms)
ms - The number of milliseconds it took to connect.void onHttpException(org.apache.commons.httpclient.HttpException httpException)
httpException - The exception from attempting the HTTP connection.void onNoTwoHundredOk(int responseCode)
responseCode - The response code received.void onMessageBodyRead()
void onBadHeader(String header)
void onContentRange(org.apache.commons.lang.math.LongRange range)
throws IOException
IOExceptionvoid onFailure()
void onPermanentFailure()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||