|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectstockDataRetrieval.WebConnectionEngine
Class implements the functionality for connecting to a web page by URL address and downlading the web page text to the local machine (without downloading any pictures or other graphics).
This web page is suitable for passing to the parsing function to extract interesting information.
| Constructor Summary | |
WebConnectionEngine()
|
|
| Method Summary | |
static java.lang.String |
grabWebPage(java.lang.String targetURL)
Retrieves the web page source code of a page that contains ticker and company name info. |
private static java.net.URL |
initializeRobot(java.lang.String targetURL)
Initializes the robot that will go and download the target webpage. |
private static java.lang.String |
ripWebPage(java.lang.String targetURL,
java.net.URL urlRobot)
Responsible for performing a buffered download of the webpage and returning the web page text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WebConnectionEngine()
| Method Detail |
public static java.lang.String grabWebPage(java.lang.String targetURL)
The return string is null if the web page could not be harvested
targetURL - the target web page to return
private static java.net.URL initializeRobot(java.lang.String targetURL)
If the initialization fails, the robot returned is null.
targetURL - target URL which to access
private static java.lang.String ripWebPage(java.lang.String targetURL,
java.net.URL urlRobot)
If the ripping fails, the return value is null.
targetURL - the source URL - used in error messges (if any)urlRobot - the robot which grabs the page
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||