| java.lang.Object java.lang.Thread com.sun.portal.portlet.rssportlet.filecache.Fetcher
Fetcher | class Fetcher extends Thread (Code) | |
This class fetches and stores the content from an arbitrary url
author: Administrator |
Inner Class :static class domainPathEntry | |
getContent | public StringBuffer getContent()(Code) | |
Return the contents of the HTML page
content exception: ProviderException - |
getContentType | String getContentType()(Code) | | Gets the contentType attribute of the Fetcher object
The contentType value |
isFinished | public boolean isFinished()(Code) | |
Check whether reading from the URL is complete
finished (true/false) |
isTerminated | public boolean isTerminated()(Code) | |
Check whether the current thread is terminated
None |
run | public void run()(Code) | |
Fetch the contents from the specified URL. Populates the "content" buffer
|
setHeaders | protected void setHeaders(URLConnection uc, HttpServletRequest request)(Code) | | pass all headers to the URL like userAgent etc. Helps in scraping sites
which are client-aware
Parameters: uc - The new headers value Parameters: request - The new headers value |
terminate | public void terminate()(Code) | |
Terminate the current thread
|
|
|