AGPageBaseExtractor Class Reference
Inherits from | NSObject |
Conforms to | AGPageParameterExtractor |
Declared in | AGPageBaseExtractor.h AGPageBaseExtractor.m |
Overview
Abstract base class that concrete page extractor implementations can derive for. It provides useful methods that implementation classes can use.
Instance Methods
parse:headers:next:prev:
- (NSDictionary *)parse:(id)response headers:(NSDictionary *)headers next:(NSString *)nextIdentifier prev:(NSString *)prevIdentifier
Declared In
AGPageParameterExtractor.h
transformQueryString:
Parses a query string of the form “?param1=val1¶m2=val&..” and returns a dictionary with the params encapsulated as a key/value pairs. Note: If a prefix of ‘http://..“ location is present, it is choped prior parsing.
- (NSDictionary *)transformQueryString:(NSString *)value
Return Value
an NSDictionary with the parsed key-value params.
Discussion
Parses a query string of the form “?param1=val1¶m2=val&..” and returns a dictionary with the params encapsulated as a key/value pairs. Note: If a prefix of ‘http://..“ location is present, it is choped prior parsing.
Declared In
AGPageBaseExtractor.h