| java.lang.Object net.matuschek.html.FormHandler
FormHandler | public class FormHandler (Code) | | This class implements a stores settings for web forms.
It is used by the WebRobot to fill form field with
predefined values.
FormHandler is not thread safe. That means you can't
use the same formHandler in different tasks with different addValue() calls,
because there is only one internal array to store those values.
author: Daniel Matuschek version: $Id $ |
FormHandler | public FormHandler()(Code) | | initializes a new FormHandler without any settings
|
addDefault | public void addDefault(String fieldname, String value)(Code) | | add a new default value for this form handler
|
addValue | public void addValue(String fieldname, String value)(Code) | | add a new value for this form handler
|
clearValues | public void clearValues()(Code) | | if we have added values before, this function removed all
values (e.g. to retrieve a new document with a different
set of values)
|
getDefaults | public Vector getDefaults()(Code) | | Get the value of defaults.
Value of defaults. |
getMethod | public int getMethod()(Code) | | |
getParamString | public String getParamString()(Code) | | construct an encoded string of all attributes and their values
to process this form
|
getValues | public Vector getValues()(Code) | | Get the value of values.
Value of values. |
hasValue | protected boolean hasValue(String attrib)(Code) | | look, if we have a value for this attribute or if
we should use the default
|
setDefaults | public void setDefaults(Vector<FormField> v)(Code) | | Set the value of defaults.
Parameters: v - Value to assign to defaults. |
setMethod | public void setMethod(int method)(Code) | | |
setValues | public void setValues(Vector<FormField> v)(Code) | | Set the value of values.
Parameters: v - Value to assign to values. |
|
|