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