Class FormDataAccumulator
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.FormDataAccumulator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classFormDataAccumulator.FormItemIteratorIterator over FormItems
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringactionURIThe form's action URIprotected static intELEMENTCATEGORY_FIXEDEXCLUSIVEprotected static intELEMENTCATEGORY_FIXEDINCLUSIVEprotected static intELEMENTCATEGORY_FREEFORMprotected java.util.ArrayListelementListThe set of elementsprotected intsubmitMethodThe form's submit method-
Fields inherited from interface org.apache.manifoldcf.crawler.connectors.webcrawler.FormData
_rcsid, SUBMITMETHOD_GET, SUBMITMETHOD_POST
-
-
Constructor Summary
Constructors Constructor Description FormDataAccumulator(java.lang.String actionURI, int submitMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(java.util.Map attributes)voidapplyOverrides(LoginParameters lp)java.lang.StringgetActionURI()Get the full action URI for this form.java.util.IteratorgetElementIterator()Iterate over the active form data elements.intgetSubmitMethod()Get the submit method for this form.voidoverrideActionURI(java.lang.String overrideURI)
-
-
-
Field Detail
-
ELEMENTCATEGORY_FREEFORM
protected static final int ELEMENTCATEGORY_FREEFORM
- See Also:
- Constant Field Values
-
ELEMENTCATEGORY_FIXEDEXCLUSIVE
protected static final int ELEMENTCATEGORY_FIXEDEXCLUSIVE
- See Also:
- Constant Field Values
-
ELEMENTCATEGORY_FIXEDINCLUSIVE
protected static final int ELEMENTCATEGORY_FIXEDINCLUSIVE
- See Also:
- Constant Field Values
-
actionURI
protected java.lang.String actionURI
The form's action URI
-
submitMethod
protected int submitMethod
The form's submit method
-
elementList
protected java.util.ArrayList elementList
The set of elements
-
-
Method Detail
-
addElement
public void addElement(java.util.Map attributes)
-
overrideActionURI
public void overrideActionURI(java.lang.String overrideURI)
-
applyOverrides
public void applyOverrides(LoginParameters lp)
-
getActionURI
public java.lang.String getActionURI()
Get the full action URI for this form.- Specified by:
getActionURIin interfaceFormData
-
getSubmitMethod
public int getSubmitMethod()
Get the submit method for this form.- Specified by:
getSubmitMethodin interfaceFormData
-
getElementIterator
public java.util.Iterator getElementIterator()
Iterate over the active form data elements. The returned iterator returns FormDataElement objects.- Specified by:
getElementIteratorin interfaceFormData
-
-