[Previous] [Up] [Next]

NSURLHandle

Authors

Richard Frith-Macdonald

Version: 0.1

Date: 28 February, 2000

NSURLHandle

NSURLHandle

Declared in: Foundation/NSURLHandle.h

Inherits from: NSObject


Instance Variables

Methods


Class Methods

URLHandleClassForURL:

+ (Class) URLHandleClassForURL: (NSURL*)anURL;
Returns the most recently registered NSURLHandle subclass that responds to canInitWithURL: with YES

cachedHandleForURL:

+ (NSURLHandle*) cachedHandleForURL: (NSURL*)anURL;
Returns a previously created object that handles the specified URL (if any exists).

canInitWithURL:

+ (BOOL) canInitWithURL: (NSURL*)anURL;
Implemented by subclasses to say which URLs they can handle.

registerURLHandleClass:

+ (void) registerURLHandleClass: (Class)anURLHandleSubclass;
Used to register a subclass as being available to handle URLs.

Instances Methods

addClient:

- (void) addClient: (id<NSURLHandleClient>)client;

availableResourceData

- (NSData*) availableResourceData;

backgroundLoadDidFailWithReason:

- (void) backgroundLoadDidFailWithReason: (NSString*)reason;

beginLoadInBackground

- (void) beginLoadInBackground;

cancelLoadInBackground

- (void) cancelLoadInBackground;

didLoadBytes:loadComplete:

- (void) didLoadBytes: (NSData*)newBytes loadComplete: (BOOL)yorn;

endLoadInBackground

- (void) endLoadInBackground;

failureReason

- (NSString*) failureReason;

flushCachedData

- (void) flushCachedData;

loadInBackground

- (void) loadInBackground;

loadInForeground

- (NSData*) loadInForeground;

propertyForKey:

- (id) propertyForKey: (NSString*)propertyKey;

propertyForKeyIfAvailable:

- (id) propertyForKeyIfAvailable: (NSString*)propertyKey;

removeClient:

- (void) removeClient: (id<NSURLHandleClient>)client;

resourceData

- (NSData*) resourceData;

status

- (NSURLHandleStatus) status;

writeData:

- (BOOL) writeData: (NSData*)data;

writeProperty:

- (BOOL) writeProperty: (id)propertyValue;