|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdochelper.URLRecord
public class URLRecord
Field Summary | |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
_params
The parameters associated to this URLRecord. |
(package private) static org.apache.http.client.HttpClient |
httpClient
A Default Http Client for all instance |
protected java.lang.String |
name
Name of this record. |
protected java.net.URI |
url
String that contains the URL represented by this record. |
protected java.lang.String |
value
The HTML souce fetched from the URL. |
Constructor Summary | |
---|---|
URLRecord(java.lang.String url,
java.lang.String name)
Creates a new instance of URLRecord |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object record)
Equals operation. |
ResultNode |
execute(java.util.ArrayList<DocPattern> patterns)
Renders a record using the specified Pattern list. |
java.net.URI |
getURL()
|
java.lang.String |
getValue()
Return the string value of this record. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.net.URI url
protected java.lang.String value
protected java.lang.String name
protected java.util.HashMap<java.lang.String,java.lang.String> _params
static final org.apache.http.client.HttpClient httpClient
Constructor Detail |
---|
public URLRecord(java.lang.String url, java.lang.String name) throws InvalidValueException
fieldValues
-
InvalidValueException
Method Detail |
---|
public ResultNode execute(java.util.ArrayList<DocPattern> patterns)
execute
in interface Record
patterns
- The ArrayList
of DocPatterns
to search in this record.
public java.net.URI getURL()
public java.lang.String getValue()
getValue
in interface Record
public boolean equals(java.lang.Object record)
equals
in class java.lang.Object
record
- The URL Record to compare to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |