Public Member Functions | |
URLRecord (String url, String name) throws InvalidValueException | |
Creates a new instance of URLRecord. | |
ResultNode | execute (ArrayList< DocPattern > patterns) |
Renders a record using the specified Pattern list. | |
URI | getURL () |
String | getValue () |
Return the string value of this record. | |
boolean | equals (Object record) |
Equals operation. | |
Protected Attributes | |
URI | url |
String that contains the URL represented by this record. | |
String | value |
The HTML souce fetched from the URL. | |
String | name |
Name of this record. | |
HashMap< String, String > | _params |
The parameters associated to this URLRecord. | |
Static Package Attributes | |
static final HttpClient | httpClient = new DefaultHttpClient() |
A Default Http Client for all instance. |
Definition at line 28 of file URLRecord.java.
dochelper.URLRecord.URLRecord | ( | String | url, | |
String | name | |||
) | throws InvalidValueException |
Creates a new instance of URLRecord.
fieldValues |
Definition at line 49 of file URLRecord.java.
ResultNode dochelper.URLRecord.execute | ( | ArrayList< DocPattern > | patterns | ) |
Renders a record using the specified Pattern list.
This method will iterate through all patterns passed in if any, and execute the pattern passing the contents of the row this record represents.
patterns | The ArrayList of DocPatterns to search in this record. |
Implements dochelper.Record.
Definition at line 72 of file URLRecord.java.
URI dochelper.URLRecord.getURL | ( | ) |
String dochelper.URLRecord.getValue | ( | ) |
Return the string value of this record.
For URL Records this means fetching the source HTML or the page as returned by a request to the URL this Record represents.
Implements dochelper.Record.
Definition at line 100 of file URLRecord.java.
boolean dochelper.URLRecord.equals | ( | Object | record | ) |
Equals operation.
A record is deemed equal if the URL are equal.
record | The URL Record to compare to |
Definition at line 139 of file URLRecord.java.
URI dochelper.URLRecord.url [protected] |
String that contains the URL represented by this record.
Definition at line 32 of file URLRecord.java.
String dochelper.URLRecord.value [protected] |
String dochelper.URLRecord.name [protected] |
HashMap<String, String> dochelper.URLRecord._params [protected] |
final HttpClient dochelper.URLRecord.httpClient = new DefaultHttpClient() [static, package] |