Package | Description |
---|---|
com.gargoylesoftware.htmlunit |
Framework classes (contains the WebClient class which is the main entry point).
|
com.gargoylesoftware.htmlunit.html |
Classes specific to HTML pages, particularly the HtmlPage which represents
an HTML document and provides access to its content.
|
com.gargoylesoftware.htmlunit.util |
Misc utilities
|
Modifier and Type | Method and Description |
---|---|
List<NameValuePair> |
MockWebConnection.getLastParameters()
Returns the parameters that were used in the last call to submitRequest().
|
List<NameValuePair> |
WebRequest.getRequestParameters()
Retrieves the request parameters to use.
|
List<NameValuePair> |
WebResponse.getResponseHeaders()
Returns the response headers as a list of
NameValuePair s. |
List<NameValuePair> |
WebResponseData.getResponseHeaders() |
Modifier and Type | Method and Description |
---|---|
void |
MockWebConnection.setDefaultResponse(String content,
int statusCode,
String statusMessage,
String contentType,
List<? extends NameValuePair> responseHeaders)
Sets the response that will be returned when the specified URL is requested.
|
void |
MockWebConnection.setDefaultResponse(String content,
int statusCode,
String statusMessage,
String contentType,
String charset,
List<? extends NameValuePair> responseHeaders)
Sets the response that will be returned when the specified URL is requested.
|
void |
WebRequest.setRequestParameters(List<NameValuePair> requestParameters)
Sets the request parameters to use.
|
void |
MockWebConnection.setResponse(URL url,
byte[] content,
int statusCode,
String statusMessage,
String contentType,
List<? extends NameValuePair> responseHeaders)
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<? extends NameValuePair> responseHeaders)
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,
String charset,
List<? extends NameValuePair> responseHeaders)
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 responseBody,
int statusCode,
String statusMessage,
List<NameValuePair> responseHeaders)
Constructor.
|
WebResponseData(InputStream bodyStream,
int statusCode,
String statusMessage,
List<NameValuePair> responseHeaders)
Deprecated.
As of HtmlUnit-2.8.
|
WebResponseData(int statusCode,
String statusMessage,
List<NameValuePair> responseHeaders)
Constructs without data stream for subclasses that override getBody().
|
Modifier and Type | Method and Description |
---|---|
NameValuePair[] |
HtmlImageInput.getSubmitKeyValuePairs()
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.getSubmitKeyValuePairs()
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[] |
SubmittableElement.getSubmitKeyValuePairs()
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.getSubmitKeyValuePairs()
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.getSubmitKeyValuePairs()
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.getSubmitKeyValuePairs()
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[] |
HtmlIsIndex.getSubmitKeyValuePairs()
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.getSubmitKeyValuePairs()
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.getSubmitKeyValuePairs()
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 | Class and Description |
---|---|
class |
KeyDataPair
A holder for a key/value pair that represents a file to upload.
|
Modifier and Type | Method and Description |
---|---|
List<NameValuePair> |
WebResponseWrapper.getResponseHeaders()
Returns the response headers as a list of
NameValuePair s. |
Modifier and Type | Method and Description |
---|---|
static org.apache.http.NameValuePair[] |
NameValuePair.toHttpClient(NameValuePair[] pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.
|
Modifier and Type | Method and Description |
---|---|
static String |
EncodingSniffer.sniffEncoding(List<NameValuePair> headers,
InputStream content)
If the specified content is HTML content, this method sniffs encoding settings
from the specified HTML content and/or the corresponding HTTP headers based on the
HTML5
encoding sniffing algorithm.
|
static String |
EncodingSniffer.sniffHtmlEncoding(List<NameValuePair> headers,
InputStream content)
Sniffs encoding settings from the specified HTML content and/or the corresponding HTTP headers based on the
HTML5
encoding sniffing algorithm.
|
static String |
EncodingSniffer.sniffUnknownContentTypeEncoding(List<NameValuePair> headers,
InputStream content)
Sniffs encoding settings from the specified content of unknown type by looking for Content-Type
information in the HTTP headers and Byte Order Mark
information in the content.
|
static String |
EncodingSniffer.sniffXmlEncoding(List<NameValuePair> headers,
InputStream content)
Sniffs encoding settings from the specified XML content and/or the corresponding HTTP headers using
a custom algorithm.
|
static org.apache.http.NameValuePair[] |
NameValuePair.toHttpClient(List<NameValuePair> pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.
|
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.