org.rococoa.cocoa.foundation
Class NSURLProtocol

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.foundation.NSURLProtocol
All Implemented Interfaces:
NSObject, ObjCObject

public abstract class NSURLProtocol
extends NSObject
implements ObjCObject


Nested Class Summary
static class NSURLProtocol._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSURLProtocol()
           
 
Method Summary
static NSURLProtocol alloc()
           
abstract  NSCachedURLResponse cachedResponse()
           
static boolean canInitWithRequest(NSURLRequest request)
           
static NSURLRequest canonicalRequestForRequest(NSURLRequest request)
           
abstract  NSURLProtocolClient client()
           
static NSURLProtocol createWithRequest_cachedResponse_client(NSURLRequest request, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
          Factory method
static NSURLProtocol._class_ getNSClass()
           
abstract  NSURLProtocol initWithRequest_cachedResponse_client(NSURLRequest request, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
           
static NSURLProtocol new_()
           
static NSObject propertyForKey_inRequest(NSString key, NSURLRequest request)
           
static boolean registerClass(ObjCClass protocolClass)
           
static void removePropertyForKey_inRequest(NSString key, NSMutableURLRequest request)
           
abstract  NSURLRequest request()
           
static boolean requestIsCacheEquivalent_toRequest(NSURLRequest a, NSURLRequest b)
           
static void setProperty_forKey_inRequest(ObjCObject value, NSString key, NSMutableURLRequest request)
           
abstract  void startLoading()
           
abstract  void stopLoading()
           
static void unregisterClass(ObjCClass protocolClass)
           
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, create, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, init, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSURLProtocol

public NSURLProtocol()
Method Detail

initWithRequest_cachedResponse_client

public abstract NSURLProtocol initWithRequest_cachedResponse_client(NSURLRequest request,
                                                                    NSCachedURLResponse cachedResponse,
                                                                    NSURLProtocolClient client)
Parameters:
request - The request to load.
cachedResponse - A response that has been retrieved from the
cache for the given request. The protocol implementation should
apply protocol-specific validity checks if such tests are
necessary.
client - The NSURLProtocolClient object that serves as the
interface the protocol implementation can use to report results back
to the URL loading system.
Original signature : -(id)initWithRequest:(NSURLRequest*) cachedResponse:(NSCachedURLResponse*) client:(id)
native declaration : NSURLProtocol.h:181

createWithRequest_cachedResponse_client

public static NSURLProtocol createWithRequest_cachedResponse_client(NSURLRequest request,
                                                                    NSCachedURLResponse cachedResponse,
                                                                    NSURLProtocolClient client)
Factory method

See Also:
initWithRequest_cachedResponse_client(org.rococoa.cocoa.foundation.NSURLRequest, org.rococoa.cocoa.foundation.NSCachedURLResponse, org.rococoa.cocoa.foundation.protocols.NSURLProtocolClient)

client

public abstract NSURLProtocolClient client()

request

public abstract NSURLRequest request()

cachedResponse

public abstract NSCachedURLResponse cachedResponse()

canInitWithRequest

public static boolean canInitWithRequest(NSURLRequest request)
Parameters:
request - A request to inspect.

canonicalRequestForRequest

public static NSURLRequest canonicalRequestForRequest(NSURLRequest request)
Parameters:
request - A request to make canonical.

requestIsCacheEquivalent_toRequest

public static boolean requestIsCacheEquivalent_toRequest(NSURLRequest a,
                                                         NSURLRequest b)

startLoading

public abstract void startLoading()

stopLoading

public abstract void stopLoading()

propertyForKey_inRequest

public static NSObject propertyForKey_inRequest(NSString key,
                                                NSURLRequest request)
Parameters:
key - The string to use for the property lookup.
request - The request to use for the property lookup.

setProperty_forKey_inRequest

public static void setProperty_forKey_inRequest(ObjCObject value,
                                                NSString key,
                                                NSMutableURLRequest request)
Parameters:
value - The property to store.
key - The string to use for the property storage.
request - The request in which to store the property.
Original signature : +(void)setProperty:(id) forKey:(NSString*) inRequest:(NSMutableURLRequest*)
native declaration : NSURLProtocol.h:303

removePropertyForKey_inRequest

public static void removePropertyForKey_inRequest(NSString key,
                                                  NSMutableURLRequest request)
Parameters:
key - The key whose value should be removed
request - The request to be modified
Original signature : +(void)removePropertyForKey:(NSString*) inRequest:(NSMutableURLRequest*)
native declaration : NSURLProtocol.h:314

registerClass

public static boolean registerClass(ObjCClass protocolClass)
Parameters:
protocolClass - the class to register.

unregisterClass

public static void unregisterClass(ObjCClass protocolClass)
Parameters:
protocolClass - The class to unregister.
Original signature : +(void)unregisterClass:(Class)
native declaration : NSURLProtocol.h:349

alloc

public static NSURLProtocol alloc()

new_

public static NSURLProtocol new_()

getNSClass

public static NSURLProtocol._class_ getNSClass()


Copyright © 2009. All Rights Reserved.