Hi all,
I created a new branch on ObjectiveCMIS svn repo to implement changes that
allow the "drop-in" of custom network providers.
Summary of changes are at the bottom of this mail.
If there are no objections I would like to merge these changes with the
trunk tomorrow.
Kind regards
Peter Schmidt
=========== Summary of changes ==============
. CMISHTTPResponse - added new method
Reason: can't use NSURLResponse when overriding Apple network API
+ (CMISHttpResponse *)responseWithStatusCode:(int)statusCode
statusMessage:(NSString *)message
headers:(NSDictionary *)headers
responseData:(NSData *)data;
2. CMISHTTPUtil - renamed into
CMISDefaultNetworkProvider
3. CMISDefaultNetworkProvider implements CMISNetworkProvider protocol
4. CMISNetworkProvider protocol defines invoke methods as instance, not as
class methods. This was to deal with a problem in Good MDM API
5. CMISSessionParameters - added property
@property (nonatomic, strong) id<CMISNetworkProvider> networkProvider;
6. CMISBindingSession - added property
@property (nonatomic, strong) id<CMISNetworkProvider> networkProvider;
7. ObjectiveCMISTests - change one evaluation in testGetRootFolder
This was to do with an issue whereby we had to reset the properties of the
root folder manually. Therefore the following condition would have failed
STAssertTrue([modifiedBy isEqualToString:@"System"], @"root
folder should be modified by System");
This has been changed to
STAssertNotNil([modifiedBy, @"modifiedBy should not be nil");
8. CMISFolder added method
- (void)createDocumentFromInputStream:(NSInputStream *)inputStream
withMimeType:(NSString *)mimeType
withProperties:(NSDictionary *)properties
bytesExpected:(unsigned long long)bytesExpected
completionBlock:(void (^)(NSString *objectId,
NSError*error))completionBlock
progressBlock:(void (^)(unsigned long
longbytesUploaded,
unsigned long long bytesTotal))progressBlock;
9. CMISDocument added method
- (CMISRequest*)downloadContentToOutputStream:(NSOutputStream *)outputStream
completionBlock:(void
(^)(NSError*error))completionBlock
progressBlock:(void (^)(unsigned long
longbytesDownloaded,
unsigned long long bytesTotal))progressBlock;
--
Kind regards
Peter
-----------
*Peter Schmidt*
*Alfresco Software Ltd.*
*UK: 07748 185496*
*Int.: 0044 7748 185496*
*Skype: pweschmidt*