Package org.robovm.apple.foundation
Class NSURLProtocol
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSURLProtocol
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSURLProtocol extends NSObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSURLProtocol.NSURLProtocolPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSURLProtocol()
protected
NSURLProtocol(NSObject.Handle h, long handle)
protected
NSURLProtocol(NSObject.SkipInit skipInit)
NSURLProtocol(NSURLRequest request, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
NSURLProtocol(NSURLSessionTask task, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSURLProtocol
public NSURLProtocol()
-
NSURLProtocol
protected NSURLProtocol(NSObject.Handle h, long handle)
-
NSURLProtocol
protected NSURLProtocol(NSObject.SkipInit skipInit)
-
NSURLProtocol
public NSURLProtocol(NSURLRequest request, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
-
NSURLProtocol
public NSURLProtocol(NSURLSessionTask task, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
- Since:
- Available in iOS 8.0 and later.
-
-
Method Detail
-
getClient
public NSURLProtocolClient getClient()
-
getRequest
public NSURLRequest getRequest()
-
getCachedResponse
public NSCachedURLResponse getCachedResponse()
-
getTask
public NSURLSessionTask getTask()
- Since:
- Available in iOS 8.0 and later.
-
setPropertyInRequest
public static void setPropertyInRequest(java.lang.String key, NSObject value, NSMutableURLRequest request)
-
init
protected long init(NSURLRequest request, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
-
startLoading
public void startLoading()
-
stopLoading
public void stopLoading()
-
canInitWithRequest
public static boolean canInitWithRequest(NSURLRequest request)
-
newCanonicalRequest
public static NSURLRequest newCanonicalRequest(NSURLRequest request)
-
requestIsCacheEquivalent
public static boolean requestIsCacheEquivalent(NSURLRequest a, NSURLRequest b)
-
getPropertyInRequest
public static NSObject getPropertyInRequest(java.lang.String key, NSURLRequest request)
-
setPropertyInRequest
protected static void setPropertyInRequest(NSObject value, java.lang.String key, NSMutableURLRequest request)
-
removePropertyInRequest
public static void removePropertyInRequest(java.lang.String key, NSMutableURLRequest request)
-
registerClass
public static boolean registerClass(java.lang.Class<? extends NSURLProtocol> protocolClass)
-
unregisterClass
public static void unregisterClass(java.lang.Class<? extends NSURLProtocol> protocolClass)
-
init
protected long init(NSURLSessionTask task, NSCachedURLResponse cachedResponse, NSURLProtocolClient client)
- Since:
- Available in iOS 8.0 and later.
-
canInitWithTask
public static boolean canInitWithTask(NSURLSessionTask task)
- Since:
- Available in iOS 8.0 and later.
-
-