Package | Description |
---|---|
org.htmlunit |
Framework classes (contains the
WebClient
class which is the main entry point). |
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.http |
Abstract Http support.
|
org.htmlunit.httpclient |
All the customizations we did to make HttpClient behave like a real browser.
|
org.htmlunit.javascript.host |
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.javascript.host.xml |
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
org.htmlunit.util |
Miscellaneous utilities.
|
Modifier and Type | Method and Description |
---|---|
List<NameValuePair> |
MockWebConnection.RawResponseData.getHeaders()
Gets the configured headers.
|
List<NameValuePair> |
MockWebConnection.getLastParameters()
Returns the parameters that were used in the last call to submitRequest().
|
List<NameValuePair> |
WebRequest.getParameters()
Retrieves the request parameters used.
|
List<NameValuePair> |
WebRequest.getRequestParameters()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
List<NameValuePair> |
WebResponseData.getResponseHeaders() |
List<NameValuePair> |
WebResponse.getResponseHeaders()
Returns the response headers as a list of
NameValuePair s. |
Modifier and Type | Method and Description |
---|---|
void |
MockWebConnection.setDefaultResponse(String content,
int statusCode,
String statusMessage,
String contentType,
Charset charset,
List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.
|
void |
MockWebConnection.setDefaultResponse(String content,
int statusCode,
String statusMessage,
String contentType,
List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.
|
void |
WebRequest.setRequestParameters(List<NameValuePair> requestParameters)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
void |
MockWebConnection.setResponse(URL url,
byte[] content,
int statusCode,
String statusMessage,
String contentType,
List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.
|
void |
MockWebConnection.setResponse(URL url,
String content,
int statusCode,
String statusMessage,
String contentType,
Charset charset,
List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.
|
void |
MockWebConnection.setResponse(URL url,
String content,
int statusCode,
String statusMessage,
String contentType,
List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.
|
Constructor and Description |
---|
WebResponseData(byte[] body,
int statusCode,
String statusMessage,
List<NameValuePair> responseHeaders)
Constructs with a raw byte[] (mostly for testing).
|
WebResponseData(DownloadedContent downloadedContent,
int statusCode,
String statusMessage,
List<NameValuePair> responseHeaders)
Constructor.
|
WebResponseData(int statusCode,
String statusMessage,
List<NameValuePair> responseHeaders)
Constructs without data stream for subclasses that override getBody().
|
Modifier and Type | Method and Description |
---|---|
NameValuePair[] |
SubmittableElement.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlTextArea.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlSubmitInput.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlSelect.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlInput.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlImageInput.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlFileInput.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
NameValuePair[] |
HtmlButton.getSubmitNameValuePairs()
Returns an array of
NameValuePair s that are the values that will be sent
back to the server whenever this element's containing form is submitted. |
Modifier and Type | Method and Description |
---|---|
List<NameValuePair> |
HtmlForm.getParameterListForSubmit(SubmittableElement submitElement)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
static List<NameValuePair> |
HttpUtils.parseUrlQuery(String s,
Charset charset)
Returns a list of
NameValuePair s URI query parameters. |
Modifier and Type | Method and Description |
---|---|
static String |
HttpUtils.toQueryFormFields(Iterable<? extends NameValuePair> parameters,
Charset charset) |
Modifier and Type | Method and Description |
---|---|
static List<NameValuePair> |
HttpClientConverter.parseUrlQuery(String query,
Charset charset)
Deprecated.
as of version 4.1.0; use
HttpUtils.parseUrlQuery(String, Charset) instead |
Modifier and Type | Method and Description |
---|---|
static List<org.apache.http.NameValuePair> |
HttpClientConverter.nameValuePairsToHttpClient(List<NameValuePair> pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.
|
static String |
HttpClientConverter.toQueryFormFields(List<NameValuePair> parameters,
Charset enc)
Deprecated.
as of version 4.1.0; use
HttpUtils.toQueryFormFields(Iterable, Charset) instead |
Modifier and Type | Method and Description |
---|---|
void |
URL.setSearch(List<NameValuePair> nameValuePairs) |
Constructor and Description |
---|
NativeParamsIterator(org.htmlunit.corejs.javascript.Scriptable scope,
String className,
org.htmlunit.javascript.host.URLSearchParams.NativeParamsIterator.Type type,
Iterator<NameValuePair> iterator) |
Constructor and Description |
---|
FormDataIterator(org.htmlunit.corejs.javascript.Scriptable scope,
String className,
org.htmlunit.javascript.host.xml.FormData.FormDataIterator.Type type,
List<NameValuePair> nameValuePairList)
Ctor.
|
Modifier and Type | Class and Description |
---|---|
class |
KeyDataPair
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
NameValuePair |
NameValuePair.normalized()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
List<NameValuePair> |
WebResponseWrapper.getResponseHeaders()
Returns the response headers as a list of
NameValuePair s. |
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.