|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.bot.browse.Browser
public class Browser
The main class for web browsing. This class allows you to navigate to a specific URL. Once you navigate to one URL, you can naviage to any URL contained on the page.
Constructor Summary | |
---|---|
Browser()
|
Method Summary | |
---|---|
WebPage |
getCurrentPage()
|
void |
navigate(Form form)
Navigate to the specified form by performing a submit of that form. |
void |
navigate(Form form,
Input submit)
Navigate based on a form. |
void |
navigate(Link link)
Navigate to a new page based on a link. |
void |
navigate(String url)
Navigate based on a string URL. |
void |
navigate(URL url)
Navigate to a page based on a URL object. |
void |
navigate(URL url,
InputStream is)
Navigate to a page and post the specified data. |
void |
setCurrentPage(WebPage theCurrentPage)
Set the current page. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Browser()
Method Detail |
---|
public final WebPage getCurrentPage()
public final void navigate(Form form)
form
- The form to be submitted.public final void navigate(Form form, Input submit)
form
- The form to be posted.submit
- The submit button on the form to simulate clicking.public final void navigate(Link link)
link
- The link to navigate to.public final void navigate(String url)
url
- The URL to navigate to.public final void navigate(URL url)
url
- The URL to navigate to.public final void navigate(URL url, InputStream is)
url
- The URL to post the data to.is
- The data to post to the page.public final void setCurrentPage(WebPage theCurrentPage)
theCurrentPage
- The current page.public final String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |