public class HTMLForm extends Object
Modifier and Type | Class and Description |
---|---|
class |
HTMLForm.FormInput |
Constructor and Description |
---|
HTMLForm() |
Modifier and Type | Method and Description |
---|---|
void |
addField(String type,
String name,
String value)
Add a discovered INPUT, tracking it as potential
username/password receiver.
|
String |
asAnnotation()
Provide abbreviated annotation, of the form...
|
org.apache.commons.httpclient.NameValuePair[] |
asHttpClientDataWith(String username,
String password)
Create the NameValuePair array expected by HttpClient, merging
username and password into the appropriate value slots.
|
String |
getAction() |
boolean |
seemsLoginForm()
For now, we consider a POST form with only 1 password
field and 1 potential username field (type text or email)
to be a likely login form.
|
void |
setAction(String action) |
void |
setMethod(String method) |
String |
toString() |
public void addField(String type, String name, String value)
type
- name
- value
- public void setMethod(String method)
public String getAction()
public void setAction(String action)
public boolean seemsLoginForm()
public org.apache.commons.httpclient.NameValuePair[] asHttpClientDataWith(String username, String password)
username
- password
- public String asAnnotation()
Copyright © 2003-2014 Internet Archive. All Rights Reserved.