Package org.kquiet.browser.action
Class PostForm
java.lang.Object
org.kquiet.browser.action.MultiPhaseAction
org.kquiet.browser.action.SinglePhaseAction
org.kquiet.browser.action.PostForm
- All Implemented Interfaces:
Composable
,MultiPhased
PostForm
is a subclass of SinglePhaseAction
which creates a form and submits it
through http post. Currently only supports enctype 'application/x-www-form-urlencoded'.- Author:
- Kimberly
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Perform single-phased browser action.toString()
Methods inherited from class org.kquiet.browser.action.SinglePhaseAction
performMultiPhase
Methods inherited from class org.kquiet.browser.action.MultiPhaseAction
getActionState, getComposer, getCostTime, getErrors, hasNextPhase, isDone, isFail, noNextPhase, perform, setActionState, setComposer, switchToTopForFirefox
-
Constructor Details
-
PostForm
Create an action representing posting form.- Parameters:
url
- the address where to submit the formformData
- the form data to submit
-
PostForm
public PostForm(String url, List<AbstractMap.SimpleImmutableEntry<String, String>> formData, String acceptCharset) Create an action representing posting form.- Parameters:
url
- the address where to submit the formformData
- the form data to submitacceptCharset
- the charset used in the submitted form
-
-
Method Details
-
performSinglePhase
protected void performSinglePhase()Description copied from class:SinglePhaseAction
Perform single-phased browser action.- Specified by:
performSinglePhase
in classSinglePhaseAction
-
toString
- Overrides:
toString
in classMultiPhaseAction
-