de.phleisch.app.itsucks.io
Interface UrlDataRetriever

All Superinterfaces:
DataRetriever
All Known Subinterfaces:
ResumeUrlDataRetriever
All Known Implementing Classes:
AbstractUrlDataRetriever, HttpFileResumeUrlRetriever, HttpRetriever

public interface UrlDataRetriever
extends DataRetriever


Field Summary
static java.lang.Integer RESULT_RETRIEVAL_ABORTED
          This value is returned if the retrieval was aborted.
static java.lang.Integer RESULT_RETRIEVAL_FAILED
          This value is returned if the retrieval failed.
static java.lang.Integer RESULT_RETRIEVAL_FAILED_BUT_RETRYABLE
          This value is returned if the retrieval failed but it's retryable.
static java.lang.Integer RESULT_RETRIEVAL_NOT_STARTED_YET
          This value is returned if the download was not started yet.
static java.lang.Integer RESULT_RETRIEVAL_OK
          This value is returned if the retrieval finished without errors.
static java.lang.Integer RESULT_RETRIEVAL_UNKNOWN
           
 
Fields inherited from interface de.phleisch.app.itsucks.io.DataRetriever
NOTIFICATION_PROGRESS
 
Method Summary
 int getResultCode()
          Returns the internal state and result code after connecting.
 long getSuggestedTimeToWaitForRetry()
          Returns the suggested time to wait befory retry the retrieval in ms.
 java.net.URL getUrl()
          Returns the URL which is retrieved.
 void setUrl(java.net.URL pUrl)
          Sets the URL to be retrieved.
 
Methods inherited from interface de.phleisch.app.itsucks.io.DataRetriever
abort, connect, disconnect, getBytesSkipped, getContentLenght, getDataAsInputStream, getMetadata, isConnected, isDataAvailable, setBytesToSkip
 

Field Detail

RESULT_RETRIEVAL_UNKNOWN

static final java.lang.Integer RESULT_RETRIEVAL_UNKNOWN

RESULT_RETRIEVAL_NOT_STARTED_YET

static final java.lang.Integer RESULT_RETRIEVAL_NOT_STARTED_YET
This value is returned if the download was not started yet.


RESULT_RETRIEVAL_OK

static final java.lang.Integer RESULT_RETRIEVAL_OK
This value is returned if the retrieval finished without errors.


RESULT_RETRIEVAL_FAILED

static final java.lang.Integer RESULT_RETRIEVAL_FAILED
This value is returned if the retrieval failed.


RESULT_RETRIEVAL_FAILED_BUT_RETRYABLE

static final java.lang.Integer RESULT_RETRIEVAL_FAILED_BUT_RETRYABLE
This value is returned if the retrieval failed but it's retryable.


RESULT_RETRIEVAL_ABORTED

static final java.lang.Integer RESULT_RETRIEVAL_ABORTED
This value is returned if the retrieval was aborted.

Method Detail

getUrl

java.net.URL getUrl()
Returns the URL which is retrieved.

Returns:

setUrl

void setUrl(java.net.URL pUrl)
Sets the URL to be retrieved.

Parameters:
pUrl -

getResultCode

int getResultCode()
Returns the internal state and result code after connecting. Check RESULT_RETRIEVAL_* constants for possible values.

Returns:

getSuggestedTimeToWaitForRetry

long getSuggestedTimeToWaitForRetry()
Returns the suggested time to wait befory retry the retrieval in ms.

Returns:


Copyright © 2010. All Rights Reserved.