|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ciagent.CIAgent | +--infofilter.URLReaderAgent
The URLReaderAgent
class implements an agent that reads
web pages and optionally pass parameters to the page.
Field Summary | |
(package private) java.lang.String |
contents
|
(package private) java.lang.String |
paramString
|
(package private) java.net.URL |
url
|
Fields inherited from class ciagent.CIAgent |
agentPlatform,
children,
DEFAULT_ASYNCTIME,
DEFAULT_SLEEPTIME,
name,
parent,
traceLevel |
Constructor Summary | |
URLReaderAgent()
Creates a URLReaderAgent object. |
|
URLReaderAgent(java.lang.String name)
Creates a URLReaderAgent object with the given name. |
Method Summary | |
java.lang.String |
getContents()
Retrieves the contents of the web page. |
java.lang.String |
getParamString()
Retrieves the web page parameter string. |
java.lang.String |
getTaskDescription()
Retrieves the task description for this agent. |
java.net.URL |
getURL()
Retrieves the URL of the web page. |
protected java.lang.String |
getURLText()
Reads a single URl and optionally passes a paramString to it (if it is a CGI bin). |
void |
initialize()
Initializes the agent by setting the sleep time to 5 seconds. |
void |
process()
Does nothing. |
void |
processCIAgentEvent(CIAgentEvent event)
Processes a CIAgentEvent (trace or getURLText). |
void |
processTimerPop()
Does nothing. |
protected void |
sendArticleToListeners(NewsArticle article)
Sends the URL text to anyone listening for it. |
void |
setParamString(java.lang.String paramString)
Sets the parameter string to be sent to the web page . |
void |
setURL(java.net.URL url)
Sets the URL of the web page. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.net.URL url
java.lang.String paramString
java.lang.String contents
Constructor Detail |
public URLReaderAgent()
URLReaderAgent
object.public URLReaderAgent(java.lang.String name)
URLReaderAgent
object with the given name.name
- the String object that contains the name of the agentMethod Detail |
public void setURL(java.net.URL url)
url
- the URL object for the web pagepublic java.net.URL getURL()
public void setParamString(java.lang.String paramString)
paramString
- the String object that contains the parameterspublic java.lang.String getParamString()
public java.lang.String getContents()
public java.lang.String getTaskDescription()
public void initialize()
public void process()
public void processTimerPop()
public void processCIAgentEvent(CIAgentEvent event)
event
- the CIAgentEvent object to be processedprotected void sendArticleToListeners(NewsArticle article)
article
- the NewArticle object that contains the URL textprotected java.lang.String getURLText()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |