public abstract class NavigationActionDoer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
NavigationActionDoer() |
Modifier and Type | Method and Description |
---|---|
abstract com.gargoylesoftware.htmlunit.html.HtmlPage |
doAction(ScrapingSessionState scrapingSessionState,
boolean enableJavaScript)
Causes the navigation action to be carried out, such as
clicking a link or submitting a form.
|
protected java.util.HashSet<FormParameter> |
getFormParametersToSet()
Gets any form parameters to be set when the action occurs.
|
com.gargoylesoftware.htmlunit.html.HtmlElement |
getHtmlElement()
Gets the element to be clicked to submit the form.
|
java.lang.String |
getNavigationActionName()
Gets the name of the corresponding navigation action.
|
void |
reset()
Cleans up the doer.
|
protected void |
setFormParametersToSet(java.util.HashSet<FormParameter> formParametersToSet)
Sets any form parameters to be set when the action occurs.
|
void |
setHtmlElement(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
Sets the element to be clicked to submit the form.
|
void |
setNavigationActionName(java.lang.String navigationActionName)
Sets the name of the corresponding navigation action.
|
public abstract com.gargoylesoftware.htmlunit.html.HtmlPage doAction(ScrapingSessionState scrapingSessionState, boolean enableJavaScript) throws java.io.IOException
scrapingSessionState
- A ScrapingSessionState
used to resolve
variables.enableJavaScript
- Indicates whether or not JavaScript should be processed
when the action occurs.HtmlPage
.java.io.IOException
public com.gargoylesoftware.htmlunit.html.HtmlElement getHtmlElement()
HtmlElement
.public void setHtmlElement(com.gargoylesoftware.htmlunit.html.HtmlElement htmlElement)
htmlElement
- A HtmlElement
.protected java.util.HashSet<FormParameter> getFormParametersToSet()
HashSet
of FormParameter
objects.protected void setFormParametersToSet(java.util.HashSet<FormParameter> formParametersToSet)
formParametersToSet
- A HashSet
of FormParameter
objects.public java.lang.String getNavigationActionName()
public void setNavigationActionName(java.lang.String navigationActionName)
navigationActionName
- The name of the action.public void reset()