Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d957ff81f7
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (40 sloc) 0.98 kb
//
// RDLinkedInHTTPURLConnection.m
// LinkedInClientLibrary
//
// Created by Sixten Otto on 12/30/09.
// Copyright 2010 Results Direct. All rights reserved.
//
#import "RDLinkedInHTTPURLConnection.h"
@implementation RDLinkedInHTTPURLConnection
@synthesize request = rdRequest;
- (id)initWithRequest:(NSURLRequest *)request delegate:(id)delegate {
self = [super initWithRequest:request delegate:delegate];
if( self != nil ) {
rdRequest = [request retain];
rdData = [[NSMutableData alloc] init];
}
return self;
}
- (void)dealloc {
[rdRequest release];
[rdData release];
[rdIdentifier release];
[super dealloc];
}
- (RDLinkedInConnectionID *)identifier {
if( !rdIdentifier ) {
rdIdentifier = [[[NSProcessInfo processInfo] globallyUniqueString] retain];
}
return rdIdentifier;
}
- (NSData *)data {
return rdData;
}
- (void)appendData:(NSData *)data {
[rdData appendData:data];
}
- (void)resetData {
[rdData setLength:0];
}
@end
Jump to Line
Something went wrong with that request. Please try again.