Revision 0a4b9bd3 asi-http-request-with-pithos/Classes/Pithos/ASIPithosAccountRequest.m
b/asi-http-request-with-pithos/Classes/Pithos/ASIPithosAccountRequest.m | ||
---|---|---|
66 | 66 |
[currentContainer release]; |
67 | 67 |
[containers release]; |
68 | 68 |
[metadata release]; |
69 |
[policy release]; |
|
69 | 70 |
[groups release]; |
70 | 71 |
[super dealloc]; |
71 | 72 |
} |
... | ... | |
123 | 124 |
return groups; |
124 | 125 |
} |
125 | 126 |
|
127 |
- (NSDictionary *)policy { |
|
128 |
if (policy == nil) { |
|
129 |
policy = [self getHeadersDictionaryForPrefix:@"X-Account-Policy-"]; |
|
130 |
[policy retain]; |
|
131 |
} |
|
132 |
return policy; |
|
133 |
} |
|
134 |
|
|
126 | 135 |
- (NSDictionary *)metadata { |
127 | 136 |
if (metadata == nil) { |
128 | 137 |
metadata = [self getHeadersDictionaryForPrefix:@"X-Account-Meta-"]; |
... | ... | |
144 | 153 |
account.bytesUsed = [self bytesUsed]; |
145 | 154 |
account.untilTimestamp = [self untilTimestamp]; |
146 | 155 |
account.groups = (NSMutableDictionary *)[self groups]; |
156 |
account.policy = (NSMutableDictionary *)[self policy]; |
|
147 | 157 |
account.metadata = (NSMutableDictionary *)[self metadata]; |
148 | 158 |
account.lastModified = [self lastModified]; |
149 | 159 |
return account; |
Also available in: Unified diff