Package apple.foundation
Class NSURLSessionConfiguration
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSURLSessionConfiguration
-
public class NSURLSessionConfiguration extends NSObject implements NSCopying
Configuration options for an NSURLSession. When a session is created, a copy of the configuration object is made - you cannot modify the configuration of a session after it has been created. The shared session uses the global singleton credential, cache and cookie storage objects. An ephemeral session has no persistent disk storage for cookies, cache or credentials. A background session can be used to perform networking operations on behalf of a suspended application, within certain constraints. API-Since: 7.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSURLSessionConfiguration(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static NSURLSessionConfigurationalloc()static NSURLSessionConfigurationallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanallowsCellularAccess()allow request to route over cellular.booleanallowsConstrainedNetworkAccess()allow request to route over networks in constrained mode.booleanallowsExpensiveNetworkAccess()allow request to route over expensive networks.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static @NotNull NSURLSessionConfigurationbackgroundSessionConfiguration(@NotNull java.lang.String identifier)Deprecated.static @NotNull NSURLSessionConfigurationbackgroundSessionConfigurationWithIdentifier(@NotNull java.lang.String identifier)API-Since: 8.0static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable NSDictionary<?,?>connectionProxyDictionary()The proxy dictionary, as described by@NotNull java.lang.ObjectcopyWithZone(@Nullable org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static @NotNull NSURLSessionConfigurationdefaultSessionConfiguration()static java.lang.Stringdescription_static()static @NotNull NSURLSessionConfigurationephemeralSessionConfiguration()static longhash_static()@Nullable NSDictionary<?,?>HTTPAdditionalHeaders()Specifies additional headers which will be set on outgoing requests.longHTTPCookieAcceptPolicy()Policy for accepting cookies.@Nullable NSHTTPCookieStorageHTTPCookieStorage()The cookie storage object to use, or nil to indicate that no cookies should be handledlongHTTPMaximumConnectionsPerHost()The maximum number of simultaneous persistent connections per hostbooleanHTTPShouldSetCookies()Allow the session to set cookies on requestsbooleanHTTPShouldUsePipelining()Allow the use of HTTP pipelining@Nullable java.lang.Stringidentifier()identifier for the background session configurationNSURLSessionConfigurationinit()Deprecated.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisDiscretionary()allows background tasks to be scheduled at the discretion of the system for optimal performance.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)longmultipathServiceType()multipath service type to use for connections.longnetworkServiceType()type of service for requests.static NSURLSessionConfigurationnew_objc()Deprecated.@Nullable NSArray<? extends org.moe.natj.objc.Class>protocolClasses()An optional array of Class objects which subclass NSURLProtocol.longrequestCachePolicy()default cache policy for requestsbooleanrequiresDNSSECValidation()requires requests from the session to be made with DNSSEC validation enabled.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)booleansessionSendsLaunchEvents()Allows the app to be resumed or launched in the background when tasks in background sessions complete or when auth is required.voidsetAllowsCellularAccess(boolean value)allow request to route over cellular.voidsetAllowsConstrainedNetworkAccess(boolean value)allow request to route over networks in constrained mode.voidsetAllowsExpensiveNetworkAccess(boolean value)allow request to route over expensive networks.voidsetConnectionProxyDictionary(@Nullable NSDictionary<?,?> value)The proxy dictionary, as described byvoidsetDiscretionary(boolean value)allows background tasks to be scheduled at the discretion of the system for optimal performance.voidsetHTTPAdditionalHeaders(@Nullable NSDictionary<?,?> value)Specifies additional headers which will be set on outgoing requests.voidsetHTTPCookieAcceptPolicy(long value)Policy for accepting cookies.voidsetHTTPCookieStorage(@Nullable NSHTTPCookieStorage value)The cookie storage object to use, or nil to indicate that no cookies should be handledvoidsetHTTPMaximumConnectionsPerHost(long value)The maximum number of simultaneous persistent connections per hostvoidsetHTTPShouldSetCookies(boolean value)Allow the session to set cookies on requestsvoidsetHTTPShouldUsePipelining(boolean value)Allow the use of HTTP pipeliningvoidsetMultipathServiceType(long value)multipath service type to use for connections.voidsetNetworkServiceType(long value)type of service for requests.voidsetProtocolClasses(@Nullable NSArray<? extends org.moe.natj.objc.Class> value)An optional array of Class objects which subclass NSURLProtocol.voidsetRequestCachePolicy(long value)default cache policy for requestsvoidsetRequiresDNSSECValidation(boolean value)requires requests from the session to be made with DNSSEC validation enabled.voidsetSessionSendsLaunchEvents(boolean value)Allows the app to be resumed or launched in the background when tasks in background sessions complete or when auth is required.voidsetSharedContainerIdentifier(@Nullable java.lang.String value)The identifier of the shared data container into which files in background sessions should be downloaded.voidsetShouldUseExtendedBackgroundIdleMode(boolean value)Enable extended background idle mode for any tcp sockets created.voidsetTimeoutIntervalForRequest(double value)default timeout for requests.voidsetTimeoutIntervalForResource(double value)default timeout for requests.voidsetTLSMaximumSupportedProtocol(int value)Deprecated.voidsetTLSMaximumSupportedProtocolVersion(short value)The maximum allowable versions of the TLS protocol, fromAPI-Since: 13.0 voidsetTLSMinimumSupportedProtocol(int value)Deprecated.voidsetTLSMinimumSupportedProtocolVersion(short value)The minimum allowable versions of the TLS protocol, fromAPI-Since: 13.0 voidsetURLCache(@Nullable NSURLCache value)The URL resource cache, or nil to indicate that no caching is to be performedvoidsetURLCredentialStorage(@Nullable NSURLCredentialStorage value)The credential storage object, or nil to indicate that no credential storage is to be usedstatic voidsetVersion_static(long aVersion)voidsetWaitsForConnectivity(boolean value)Causes tasks to wait for network connectivity to become available, rather than immediately failing with an error (such as NSURLErrorNotConnectedToInternet) when it is not.@Nullable java.lang.StringsharedContainerIdentifier()The identifier of the shared data container into which files in background sessions should be downloaded.booleanshouldUseExtendedBackgroundIdleMode()Enable extended background idle mode for any tcp sockets created.static org.moe.natj.objc.Classsuperclass_static()doubletimeoutIntervalForRequest()default timeout for requests.doubletimeoutIntervalForResource()default timeout for requests.intTLSMaximumSupportedProtocol()Deprecated.shortTLSMaximumSupportedProtocolVersion()The maximum allowable versions of the TLS protocol, fromAPI-Since: 13.0 intTLSMinimumSupportedProtocol()Deprecated.shortTLSMinimumSupportedProtocolVersion()The minimum allowable versions of the TLS protocol, fromAPI-Since: 13.0 @Nullable NSURLCacheURLCache()The URL resource cache, or nil to indicate that no caching is to be performed@Nullable NSURLCredentialStorageURLCredentialStorage()The credential storage object, or nil to indicate that no credential storage is to be usedstatic booleanuseStoredAccessor()Deprecated.static longversion_static()booleanwaitsForConnectivity()Causes tasks to wait for network connectivity to become available, rather than immediately failing with an error (such as NSURLErrorNotConnectedToInternet) when it is not.-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSURLSessionConfiguration alloc()
-
allocWithZone
public static NSURLSessionConfiguration allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
backgroundSessionConfiguration
@NotNull @Deprecated public static @NotNull NSURLSessionConfiguration backgroundSessionConfiguration(@NotNull @NotNull java.lang.String identifier)
Deprecated.API-Since: 7.0 Deprecated-Since: 8.0
-
backgroundSessionConfigurationWithIdentifier
@NotNull public static @NotNull NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier(@NotNull @NotNull java.lang.String identifier)
API-Since: 8.0
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
defaultSessionConfiguration
@NotNull public static @NotNull NSURLSessionConfiguration defaultSessionConfiguration()
-
description_static
public static java.lang.String description_static()
-
ephemeralSessionConfiguration
@NotNull public static @NotNull NSURLSessionConfiguration ephemeralSessionConfiguration()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
@Deprecated public static NSURLSessionConfiguration new_objc()
Deprecated.API-Since: 7.0 Deprecated-Since: 13.0 Deprecated-Message: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
HTTPAdditionalHeaders
@Nullable public @Nullable NSDictionary<?,?> HTTPAdditionalHeaders()
Specifies additional headers which will be set on outgoing requests. Note that these headers are added to the request only if not already present.
-
HTTPCookieAcceptPolicy
public long HTTPCookieAcceptPolicy()
Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage.
-
HTTPCookieStorage
@Nullable public @Nullable NSHTTPCookieStorage HTTPCookieStorage()
The cookie storage object to use, or nil to indicate that no cookies should be handled
-
HTTPMaximumConnectionsPerHost
public long HTTPMaximumConnectionsPerHost()
The maximum number of simultaneous persistent connections per host
-
HTTPShouldSetCookies
public boolean HTTPShouldSetCookies()
Allow the session to set cookies on requests
-
HTTPShouldUsePipelining
public boolean HTTPShouldUsePipelining()
Allow the use of HTTP pipelining
-
TLSMaximumSupportedProtocol
@Deprecated public int TLSMaximumSupportedProtocol()
Deprecated.The maximum allowable versions of the TLS protocol, fromAPI-Since: 7.0 Deprecated-Since: 100000.0
-
TLSMinimumSupportedProtocol
@Deprecated public int TLSMinimumSupportedProtocol()
Deprecated.The minimum allowable versions of the TLS protocol, fromAPI-Since: 7.0 Deprecated-Since: 100000.0
-
URLCache
@Nullable public @Nullable NSURLCache URLCache()
The URL resource cache, or nil to indicate that no caching is to be performed
-
URLCredentialStorage
@Nullable public @Nullable NSURLCredentialStorage URLCredentialStorage()
The credential storage object, or nil to indicate that no credential storage is to be used
-
allowsCellularAccess
public boolean allowsCellularAccess()
allow request to route over cellular.
-
connectionProxyDictionary
@Nullable public @Nullable NSDictionary<?,?> connectionProxyDictionary()
The proxy dictionary, as described by
-
copyWithZone
@NotNull public @NotNull java.lang.Object copyWithZone(@Nullable @Nullable org.moe.natj.general.ptr.VoidPtr zone)- Specified by:
copyWithZonein interfaceNSCopying
-
identifier
@Nullable public @Nullable java.lang.String identifier()
identifier for the background session configuration
-
init
@Deprecated public NSURLSessionConfiguration init()
Deprecated.API-Since: 7.0 Deprecated-Since: 13.0 Deprecated-Message: Please use NSURLSessionConfiguration.defaultSessionConfiguration or other class methods to create instances
-
isDiscretionary
public boolean isDiscretionary()
allows background tasks to be scheduled at the discretion of the system for optimal performance. API-Since: 7.0
-
setDiscretionary
public void setDiscretionary(boolean value)
allows background tasks to be scheduled at the discretion of the system for optimal performance. API-Since: 7.0
-
networkServiceType
public long networkServiceType()
type of service for requests.
-
protocolClasses
@Nullable public @Nullable NSArray<? extends org.moe.natj.objc.Class> protocolClasses()
An optional array of Class objects which subclass NSURLProtocol. The Class will be sent +canInitWithRequest: when determining if an instance of the class can be used for a given URL scheme. You should not use +[NSURLProtocol registerClass:], as that method will register your class with the default session rather than with an instance of NSURLSession. Custom NSURLProtocol subclasses are not available to background sessions.
-
requestCachePolicy
public long requestCachePolicy()
default cache policy for requests
-
sessionSendsLaunchEvents
public boolean sessionSendsLaunchEvents()
Allows the app to be resumed or launched in the background when tasks in background sessions complete or when auth is required. This only applies to configurations created with +backgroundSessionConfigurationWithIdentifier: and the default value is YES. NOTE: macOS apps based on AppKit do not support background launch. API-Since: 7.0
-
setAllowsCellularAccess
public void setAllowsCellularAccess(boolean value)
allow request to route over cellular.
-
setConnectionProxyDictionary
public void setConnectionProxyDictionary(@Nullable @Nullable NSDictionary<?,?> value)The proxy dictionary, as described by
-
setHTTPAdditionalHeaders
public void setHTTPAdditionalHeaders(@Nullable @Nullable NSDictionary<?,?> value)Specifies additional headers which will be set on outgoing requests. Note that these headers are added to the request only if not already present.
-
setHTTPCookieAcceptPolicy
public void setHTTPCookieAcceptPolicy(long value)
Policy for accepting cookies. This overrides the policy otherwise specified by the cookie storage.
-
setHTTPCookieStorage
public void setHTTPCookieStorage(@Nullable @Nullable NSHTTPCookieStorage value)The cookie storage object to use, or nil to indicate that no cookies should be handled
-
setHTTPMaximumConnectionsPerHost
public void setHTTPMaximumConnectionsPerHost(long value)
The maximum number of simultaneous persistent connections per host
-
setHTTPShouldSetCookies
public void setHTTPShouldSetCookies(boolean value)
Allow the session to set cookies on requests
-
setHTTPShouldUsePipelining
public void setHTTPShouldUsePipelining(boolean value)
Allow the use of HTTP pipelining
-
setNetworkServiceType
public void setNetworkServiceType(long value)
type of service for requests.
-
setProtocolClasses
public void setProtocolClasses(@Nullable @Nullable NSArray<? extends org.moe.natj.objc.Class> value)An optional array of Class objects which subclass NSURLProtocol. The Class will be sent +canInitWithRequest: when determining if an instance of the class can be used for a given URL scheme. You should not use +[NSURLProtocol registerClass:], as that method will register your class with the default session rather than with an instance of NSURLSession. Custom NSURLProtocol subclasses are not available to background sessions.
-
setRequestCachePolicy
public void setRequestCachePolicy(long value)
default cache policy for requests
-
setSessionSendsLaunchEvents
public void setSessionSendsLaunchEvents(boolean value)
Allows the app to be resumed or launched in the background when tasks in background sessions complete or when auth is required. This only applies to configurations created with +backgroundSessionConfigurationWithIdentifier: and the default value is YES. NOTE: macOS apps based on AppKit do not support background launch. API-Since: 7.0
-
setSharedContainerIdentifier
public void setSharedContainerIdentifier(@Nullable @Nullable java.lang.String value)The identifier of the shared data container into which files in background sessions should be downloaded. App extensions wishing to use background sessions *must* set this property to a valid container identifier, or all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. API-Since: 8.0
-
setShouldUseExtendedBackgroundIdleMode
public void setShouldUseExtendedBackgroundIdleMode(boolean value)
Enable extended background idle mode for any tcp sockets created. Enabling this mode asks the system to keep the socket open and delay reclaiming it when the process moves to the background (see https://developer.apple.com/library/ios/technotes/tn2277/_index.html) API-Since: 9.0
-
setTLSMaximumSupportedProtocol
@Deprecated public void setTLSMaximumSupportedProtocol(int value)
Deprecated.The maximum allowable versions of the TLS protocol, fromAPI-Since: 7.0 Deprecated-Since: 100000.0
-
setTLSMinimumSupportedProtocol
@Deprecated public void setTLSMinimumSupportedProtocol(int value)
Deprecated.The minimum allowable versions of the TLS protocol, fromAPI-Since: 7.0 Deprecated-Since: 100000.0
-
setTimeoutIntervalForRequest
public void setTimeoutIntervalForRequest(double value)
default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted.
-
setTimeoutIntervalForResource
public void setTimeoutIntervalForResource(double value)
default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout.
-
setURLCache
public void setURLCache(@Nullable @Nullable NSURLCache value)The URL resource cache, or nil to indicate that no caching is to be performed
-
setURLCredentialStorage
public void setURLCredentialStorage(@Nullable @Nullable NSURLCredentialStorage value)The credential storage object, or nil to indicate that no credential storage is to be used
-
sharedContainerIdentifier
@Nullable public @Nullable java.lang.String sharedContainerIdentifier()
The identifier of the shared data container into which files in background sessions should be downloaded. App extensions wishing to use background sessions *must* set this property to a valid container identifier, or all transfers in that session will fail with NSURLErrorBackgroundSessionRequiresSharedContainer. API-Since: 8.0
-
shouldUseExtendedBackgroundIdleMode
public boolean shouldUseExtendedBackgroundIdleMode()
Enable extended background idle mode for any tcp sockets created. Enabling this mode asks the system to keep the socket open and delay reclaiming it when the process moves to the background (see https://developer.apple.com/library/ios/technotes/tn2277/_index.html) API-Since: 9.0
-
timeoutIntervalForRequest
public double timeoutIntervalForRequest()
default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted.
-
timeoutIntervalForResource
public double timeoutIntervalForResource()
default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout.
-
multipathServiceType
public long multipathServiceType()
multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone API-Since: 11.0
-
setMultipathServiceType
public void setMultipathServiceType(long value)
multipath service type to use for connections. The default is NSURLSessionMultipathServiceTypeNone API-Since: 11.0
-
setWaitsForConnectivity
public void setWaitsForConnectivity(boolean value)
Causes tasks to wait for network connectivity to become available, rather than immediately failing with an error (such as NSURLErrorNotConnectedToInternet) when it is not. When waiting for connectivity, the timeoutIntervalForRequest property does not apply, but the timeoutIntervalForResource property does. Unsatisfactory connectivity (that requires waiting) includes cases where the device has limited or insufficient connectivity for a task (e.g., only has a cellular connection but the allowsCellularAccess property is NO, or requires a VPN connection in order to reach the desired host). Default value is NO. Ignored by background sessions, as background sessions always wait for connectivity. API-Since: 11.0
-
waitsForConnectivity
public boolean waitsForConnectivity()
Causes tasks to wait for network connectivity to become available, rather than immediately failing with an error (such as NSURLErrorNotConnectedToInternet) when it is not. When waiting for connectivity, the timeoutIntervalForRequest property does not apply, but the timeoutIntervalForResource property does. Unsatisfactory connectivity (that requires waiting) includes cases where the device has limited or insufficient connectivity for a task (e.g., only has a cellular connection but the allowsCellularAccess property is NO, or requires a VPN connection in order to reach the desired host). Default value is NO. Ignored by background sessions, as background sessions always wait for connectivity. API-Since: 11.0
-
TLSMaximumSupportedProtocolVersion
public short TLSMaximumSupportedProtocolVersion()
The maximum allowable versions of the TLS protocol, fromAPI-Since: 13.0
-
TLSMinimumSupportedProtocolVersion
public short TLSMinimumSupportedProtocolVersion()
The minimum allowable versions of the TLS protocol, fromAPI-Since: 13.0
-
allowsConstrainedNetworkAccess
public boolean allowsConstrainedNetworkAccess()
allow request to route over networks in constrained mode. Defaults to YES. API-Since: 13.0
-
allowsExpensiveNetworkAccess
public boolean allowsExpensiveNetworkAccess()
allow request to route over expensive networks. Defaults to YES. API-Since: 13.0
-
setAllowsConstrainedNetworkAccess
public void setAllowsConstrainedNetworkAccess(boolean value)
allow request to route over networks in constrained mode. Defaults to YES. API-Since: 13.0
-
setAllowsExpensiveNetworkAccess
public void setAllowsExpensiveNetworkAccess(boolean value)
allow request to route over expensive networks. Defaults to YES. API-Since: 13.0
-
setTLSMaximumSupportedProtocolVersion
public void setTLSMaximumSupportedProtocolVersion(short value)
The maximum allowable versions of the TLS protocol, fromAPI-Since: 13.0
-
setTLSMinimumSupportedProtocolVersion
public void setTLSMinimumSupportedProtocolVersion(short value)
The minimum allowable versions of the TLS protocol, fromAPI-Since: 13.0
-
requiresDNSSECValidation
public boolean requiresDNSSECValidation()
requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. API-Since: 16.0
-
setRequiresDNSSECValidation
public void setRequiresDNSSECValidation(boolean value)
requires requests from the session to be made with DNSSEC validation enabled. Defaults to NO. API-Since: 16.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-