Factory method with url, cache and a cache policy.
Syntax
+
(
id< SDMRequesting >
)
requestWithURL
:
(
NSURL *
)
newURL
usingCache
:
(
id< SDMCacheDelegate >
)
cache
andCachePolicy
:
(
CachePolicy
)
policy
Parameters
-
newURL –
Object of NSURL class.
-
cache –
Object of class implementing SDMCacheDelegate protocol.
-
policy –
CachePolicy enum value.
Example 1
id<SDMRequesting> request = [SDMRequestBuilder requestWithURL:[[NSURL alloc] initWithString:"http://vmw3815.wdf.sap.corp:50009/sap/opu/odata/iwfnd/RMTSAMPLEFLIGHT/"] usingCache:cache andCachePolicy:ReloadIfDifferentCachePolicy];