org.rococoa.cocoa.foundation.categories
Interface NSURLDownloadDelegate
- All Superinterfaces:
- ObjCObject
public interface NSURLDownloadDelegate
- extends ObjCObject
Method Summary |
boolean |
download_canAuthenticateAgainstProtectionSpace(NSURLDownload connection,
NSURLProtectionSpace protectionSpace)
|
void |
download_decideDestinationWithSuggestedFilename(NSURLDownload download,
NSString filename)
|
void |
download_didCancelAuthenticationChallenge(NSURLDownload download,
NSURLAuthenticationChallenge challenge)
|
void |
download_didCreateDestination(NSURLDownload download,
NSString path)
|
void |
download_didFailWithError(NSURLDownload download,
NSError error)
|
void |
download_didReceiveAuthenticationChallenge(NSURLDownload download,
NSURLAuthenticationChallenge challenge)
|
void |
download_didReceiveDataOfLength(NSURLDownload download,
NSUInteger length)
|
void |
download_didReceiveResponse(NSURLDownload download,
NSURLResponse response)
|
boolean |
download_shouldDecodeSourceDataOfMIMEType(NSURLDownload download,
NSString encodingType)
|
void |
download_willResumeWithResponse_fromByte(NSURLDownload download,
NSURLResponse response,
long startingByte)
|
NSURLRequest |
download_willSendRequest_redirectResponse(NSURLDownload download,
NSURLRequest request,
NSURLResponse redirectResponse)
|
void |
downloadDidBegin(NSURLDownload download)
|
void |
downloadDidFinish(NSURLDownload download)
|
boolean |
downloadShouldUseCredentialStorage(NSURLDownload download)
|
downloadDidBegin
void downloadDidBegin(NSURLDownload download)
- Parameters:
download
- The download that just started downloading.
Original signature : -(void)downloadDidBegin:(NSURLDownload*)
from NSURLDownloadDelegate native declaration : NSURLDownload.h:133
download_willSendRequest_redirectResponse
NSURLRequest download_willSendRequest_redirectResponse(NSURLDownload download,
NSURLRequest request,
NSURLResponse redirectResponse)
- Parameters:
download
- The download that will send the request.
request
- The request that will be used to continue loading.
download_canAuthenticateAgainstProtectionSpace
boolean download_canAuthenticateAgainstProtectionSpace(NSURLDownload connection,
NSURLProtectionSpace protectionSpace)
- Parameters:
connection
- an NSURLConnection that has an NSURLProtectionSpace ready for inspection
protectionSpace
- an NSURLProtectionSpace that will be used to generate an authentication challenge
download_didReceiveAuthenticationChallenge
void download_didReceiveAuthenticationChallenge(NSURLDownload download,
NSURLAuthenticationChallenge challenge)
- Parameters:
download
- The download that needs authentication.
challenge
- The NSURLAuthenticationChallenge for which to start authentication.
download_didCancelAuthenticationChallenge
void download_didCancelAuthenticationChallenge(NSURLDownload download,
NSURLAuthenticationChallenge challenge)
- Parameters:
download
- The download that's cancelling
challenge
- The NSURLAuthenticationChallenge to cancel authentication for
Original signature : -(void)download:(NSURLDownload*) didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge*)
from NSURLDownloadDelegate native declaration : NSURLDownload.h:181
downloadShouldUseCredentialStorage
boolean downloadShouldUseCredentialStorage(NSURLDownload download)
- Parameters:
download
- the NSURLDownload object asking if it should consult the credential storage.
download_didReceiveResponse
void download_didReceiveResponse(NSURLDownload download,
NSURLResponse response)
- Parameters:
download
- The download that now has a NSURLResponse available for inspection.
response
- The NSURLResponse object for the given download.
download_willResumeWithResponse_fromByte
void download_willResumeWithResponse_fromByte(NSURLDownload download,
NSURLResponse response,
long startingByte)
- Parameters:
download
- The download that now has a NSURLResponse available for inspection.
response
- The NSURLResponse object for the given download.
startingByte
- The number of bytes from where the download will resume. 0 indicates that the download will
restart from the beginning.
download_didReceiveDataOfLength
void download_didReceiveDataOfLength(NSURLDownload download,
NSUInteger length)
- Parameters:
download
- The download that has received data.
length
- The length of the received data.
download_shouldDecodeSourceDataOfMIMEType
boolean download_shouldDecodeSourceDataOfMIMEType(NSURLDownload download,
NSString encodingType)
- Parameters:
download
- The download that has detected that the downloading file is encoded.
mimeType
- A MIME type expressing the encoding type.
download_decideDestinationWithSuggestedFilename
void download_decideDestinationWithSuggestedFilename(NSURLDownload download,
NSString filename)
- Parameters:
download
- The download that requests the download path.
filename
- The suggested filename for deciding the path of the downloaded file. The filename is either
derived from the last path component of the URL and the MIME type or if the download was encoded,
it is the filename specified in the encoding.
download_didCreateDestination
void download_didCreateDestination(NSURLDownload download,
NSString path)
- Parameters:
download
- The download that created the downloaded file.
path
- The path of the downloaded file.
Original signature : -(void)download:(NSURLDownload*) didCreateDestination:(NSString*)
from NSURLDownloadDelegate native declaration : NSURLDownload.h:265
downloadDidFinish
void downloadDidFinish(NSURLDownload download)
- Parameters:
download
- The download that has finished downloading.
download_didFailWithError
void download_didFailWithError(NSURLDownload download,
NSError error)
- Parameters:
download
- The download that ended in error.
error
- The error caused the download to fail.
Copyright © 2009. All Rights Reserved.