chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gavin Cornwell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-874) Switch to NSURLSession for networking
Date Fri, 12 Dec 2014 11:50:13 GMT

    [ https://issues.apache.org/jira/browse/CMIS-874?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14244030#comment-14244030
] 

Gavin Cornwell commented on CMIS-874:
-------------------------------------

Completed in revision 1644862.

Several new session parameters have been added to control the use of background sessions.
Setting the "kCMISSessionParameterUseBackgroundNetworkSession" key to YES will create a background
network session. 

An identifier for the session and the shared container is required when using background mode,
these can be set via the "kCMISSessionParameterBackgroundNetworkSessionId" and "kCMISSessionParameterBackgroundNetworkSessionSharedContainerId"
keys, respectively. If they are not supplied default values are used, "ObjectiveCMIS" for
the background identifier and "ObjectiveCMISContainer" for the shared container.

Two additional session parameter keys have been added to control request timeout (kCMISSessionParameterRequestTimeout)
and whether network reachability checks are performed (kCMISSessionParameterCheckNetworkReachability).

> Switch to NSURLSession for networking
> -------------------------------------
>
>                 Key: CMIS-874
>                 URL: https://issues.apache.org/jira/browse/CMIS-874
>             Project: Chemistry
>          Issue Type: Improvement
>          Components: objectivecmis
>    Affects Versions: ObjectiveCMIS 0.4
>            Reporter: Gavin Cornwell
>            Assignee: Gavin Cornwell
>             Fix For: ObjectiveCMIS 0.5
>
>
> Currently the ObjectiveCMIS library uses NSURLConnection for all networking activity.
This set of classes have now been superseded by NSURLSession.
> NSURLSession adds support for background network activity and is also a requirement for
any apps that wish to include an iOS 8 document provider extension.
> As network calls are centralised this should be fairly straight forward and a backwards
compatible change.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message