| java.lang.Object websphinx.Region websphinx.Element websphinx.Link websphinx.Form
Form | public class Form extends Link (Code) | | <FORM> element in an HTML page.
|
Constructor Summary | |
public | Form(Tag startTag, Tag endTag, URL base) Make a LinkElement from a start tag and end tag and a base URL (for relative references). |
Method Summary | |
public int | getMethod() Get the method used to access this link. | public URL | makeQuery() Construct the query that would be submitted if the form's SUBMIT button were pressed. | public URL | makeQuery(FormButton button) Construct the query that would be submitted if the specified button were pressed.
Parameters: button - form button that triggers the submission. | protected URL | urlFromHref(Tag tag, URL base) Construct the URL for this form, from its start tag and a base URL (for relative references). |
Form | public Form(Tag startTag, Tag endTag, URL base) throws MalformedURLException(Code) | | Make a LinkElement from a start tag and end tag and a base URL (for relative references).
The tags must be on the same page.
Parameters: startTag - Start tag of element Parameters: endTag - End tag of element Parameters: base - Base URL used for relative references |
getMethod | public int getMethod()(Code) | | Get the method used to access this link.
GET or POST. |
makeQuery | public URL makeQuery()(Code) | | Construct the query that would be submitted if the form's SUBMIT button were pressed.
a URL representing the submitted form, or null if the form cannot be represented as a URL. |
makeQuery | public URL makeQuery(FormButton button)(Code) | | Construct the query that would be submitted if the specified button were pressed.
Parameters: button - form button that triggers the submission. a URL representing the submitted form, or null if the form cannot be represented as a URL. |
urlFromHref | protected URL urlFromHref(Tag tag, URL base) throws MalformedURLException(Code) | | Construct the URL for this form, from its start tag and a base URL (for relative references).
Parameters: tag - Start tag of form. Parameters: base - Base URL used for relative references URL to which the button points |
|
|