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.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.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<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,
String charset,
List<NameValuePair> headers)
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<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.
|
void |
MockWebConnection.setResponse(URL url,
String content,
int statusCode,
String statusMessage,
String contentType,
String charset,
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[] |
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[] |
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[] |
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[] |
HtmlIsIndex.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[] |
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. |
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[] |
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. |
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.
Returns a list of NameValuePair s that represent the data that will be
sent to the server when this form is submitted. |
Modifier and Type | Class and Description |
---|---|
class |
KeyDataPair
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
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–2018 Gargoyle Software Inc.. All rights reserved.