Uses of Class
org.htmlunit.util.NameValuePair
Packages that use NameValuePair
Package
Description
Framework classes (contains the
WebClient
class which is the main entry point).Classes specific to HTML pages, particularly the
HtmlPage
which represents
an HTML document and provides access to its content.Abstract Http support.
All the customizations we did to make HttpClient behave like a real browser.
Implementations of the various JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Implementations of the XML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
Miscellaneous utilities.
-
Uses of NameValuePair in org.htmlunit
Fields in org.htmlunit with type parameters of type NameValuePairModifier and TypeFieldDescriptionprivate final List
<NameValuePair> MockWebConnection.RawResponseData.headers_
private List
<NameValuePair> WebRequest.requestParameters_
private final List
<NameValuePair> WebResponseData.responseHeaders_
private final List
<NameValuePair> WebResponseFromCache.responseHeaders_
Methods in org.htmlunit that return types with arguments of type NameValuePairModifier and TypeMethodDescriptionprivate static List
<NameValuePair> MockWebConnection.RawResponseData.compileHeaders
(List<NameValuePair> headers, String contentType) MockWebConnection.RawResponseData.getHeaders()
Gets the configured headers.MockWebConnection.getLastParameters()
Returns the parameters that were used in the last call to submitRequest().WebRequest.getParameters()
Retrieves the request parameters in use.WebRequest.getRequestParameters()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Retrieves the request parameters to use.WebResponse.getResponseHeaders()
Returns the response headers as a list ofNameValuePair
s.WebResponseData.getResponseHeaders()
WebResponseFromCache.getResponseHeaders()
Returns the response headers as a list ofNameValuePair
s.private static List
<NameValuePair> WebRequest.normalize
(List<NameValuePair> pairs) Method parameters in org.htmlunit with type arguments of type NameValuePairModifier and TypeMethodDescriptionprivate static MockWebConnection.RawResponseData
MockWebConnection.buildRawResponseData
(byte[] content, int statusCode, String statusMessage, String contentType, List<NameValuePair> headers) private static MockWebConnection.RawResponseData
MockWebConnection.buildRawResponseData
(String content, Charset charset, int statusCode, String statusMessage, String contentType, List<NameValuePair> headers) private static List
<NameValuePair> MockWebConnection.RawResponseData.compileHeaders
(List<NameValuePair> headers, String contentType) private static Charset
HttpWebConnection.getCharset
(Charset charset, List<NameValuePair> pairs) private static String
WebResponseData.getHeader
(List<NameValuePair> headers, String name) private static List
<NameValuePair> WebRequest.normalize
(List<NameValuePair> pairs) 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.
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, 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 parameters in org.htmlunit with type arguments of type NameValuePairModifierConstructorDescription(package private)
RawResponseData
(byte[] byteContent, int statusCode, String statusMessage, String contentType, List<NameValuePair> headers) (package private)
RawResponseData
(String stringContent, Charset charset, int statusCode, String statusMessage, String contentType, List<NameValuePair> headers) WebResponseData
(byte[] body, int statusCode, String statusMessage, List<NameValuePair> responseHeaders) Constructs with a raw byte[] (mostly for testing).protected
WebResponseData
(int statusCode, String statusMessage, List<NameValuePair> responseHeaders) Constructs without data stream for subclasses that override getBody().WebResponseData
(DownloadedContent downloadedContent, int statusCode, String statusMessage, List<NameValuePair> responseHeaders) Constructor.(package private)
WebResponseFromCache
(WebResponse cachedResponse, List<NameValuePair> overwriteHeaders, WebRequest currentRequest) Wraps the provided cached response for a new request. -
Uses of NameValuePair in org.htmlunit.html
Methods in org.htmlunit.html that return NameValuePairModifier and TypeMethodDescriptionHtmlButton.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlFileInput.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlImageInput.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlInput.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlIsIndex.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlSelect.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlSubmitInput.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.HtmlTextArea.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.SubmittableElement.getSubmitNameValuePairs()
Returns an array ofNameValuePair
s that are the values that will be sent back to the server whenever this element's containing form is submitted.Methods in org.htmlunit.html that return types with arguments of type NameValuePairModifier and TypeMethodDescriptionHtmlForm.getParameterListForSubmit
(SubmittableElement submitElement) INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns a list ofNameValuePair
s that represent the data that will be sent to the server when this form is submitted. -
Uses of NameValuePair in org.htmlunit.http
Methods in org.htmlunit.http that return types with arguments of type NameValuePairModifier and TypeMethodDescriptionstatic List
<NameValuePair> HttpUtils.parseUrlQuery
(String s, Charset charset) Returns a list ofNameValuePair
s URI query parameters.Method parameters in org.htmlunit.http with type arguments of type NameValuePairModifier and TypeMethodDescriptionstatic String
HttpUtils.toQueryFormFields
(Iterable<? extends NameValuePair> parameters, Charset charset) -
Uses of NameValuePair in org.htmlunit.httpclient
Methods in org.htmlunit.httpclient that return types with arguments of type NameValuePairModifier and TypeMethodDescriptionstatic List
<NameValuePair> HttpClientConverter.parseUrlQuery
(String query, Charset charset) Deprecated.Method parameters in org.htmlunit.httpclient with type arguments of type NameValuePairModifier and TypeMethodDescriptionstatic 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; useHttpUtils.toQueryFormFields(Iterable, Charset)
instead -
Uses of NameValuePair in org.htmlunit.javascript.host
Fields in org.htmlunit.javascript.host with type parameters of type NameValuePairModifier and TypeFieldDescriptionprivate final Iterator
<NameValuePair> URLSearchParams.NativeParamsIterator.iterator_
Methods in org.htmlunit.javascript.host that return NameValuePairModifier and TypeMethodDescriptionprivate static NameValuePair
URLSearchParams.splitQueryParameter
(String singleParam) Methods in org.htmlunit.javascript.host that return types with arguments of type NameValuePairModifier and TypeMethodDescriptionprivate static List
<NameValuePair> URLSearchParams.resolveParams
(Object params) private List
<NameValuePair> URLSearchParams.splitQuery()
private static List
<NameValuePair> URLSearchParams.splitQuery
(String params) Method parameters in org.htmlunit.javascript.host with type arguments of type NameValuePairConstructor parameters in org.htmlunit.javascript.host with type arguments of type NameValuePairModifierConstructorDescriptionNativeParamsIterator
(org.htmlunit.corejs.javascript.Scriptable scope, String className, URLSearchParams.NativeParamsIterator.Type type, Iterator<NameValuePair> iterator) -
Uses of NameValuePair in org.htmlunit.javascript.host.xml
Fields in org.htmlunit.javascript.host.xml with type parameters of type NameValuePairModifier and TypeFieldDescriptionprivate final List
<NameValuePair> FormData.FormDataIterator.nameValuePairList_
private final List
<NameValuePair> FormData.requestParameters_
Methods in org.htmlunit.javascript.host.xml that return types with arguments of type NameValuePairConstructor parameters in org.htmlunit.javascript.host.xml with type arguments of type NameValuePairModifierConstructorDescriptionFormDataIterator
(org.htmlunit.corejs.javascript.Scriptable scope, String className, FormData.FormDataIterator.Type type, List<NameValuePair> nameValuePairList) -
Uses of NameValuePair in org.htmlunit.util
Subclasses of NameValuePair in org.htmlunit.utilModifier and TypeClassDescriptionclass
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.Methods in org.htmlunit.util that return NameValuePairModifier and TypeMethodDescriptionNameValuePair.normalized()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
convert null values to empty stringMethods in org.htmlunit.util that return types with arguments of type NameValuePairModifier and TypeMethodDescriptionWebResponseWrapper.getResponseHeaders()
Returns the response headers as a list ofNameValuePair
s.Method parameters in org.htmlunit.util with type arguments of type NameValuePairModifier and TypeMethodDescription(package private) static boolean
EncodingSniffer.contentTypeEndsWith
(List<NameValuePair> headers, String... contentTypeEndings) Returnstrue
if the specified HTTP response headers contain aContent-Type
that ends with one of the specified strings.(package private) static boolean
EncodingSniffer.isHtml
(List<NameValuePair> headers) Deprecated.as of version 4.0.0; method will be removed without replacement(package private) static boolean
EncodingSniffer.isXml
(List<NameValuePair> headers) Deprecated.as of version 4.0.0; method will be removed without replacement(package private) static String
DebuggingWebConnection.nameValueListToJsMap
(List<NameValuePair> headers) Produces a String that will produce a JS map like "{'key1': 'value1', 'key 2': 'value2'}".private static Charset
EncodingSniffer.sniffCssEncoding
(List<NameValuePair> headers, InputStream content) Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic Charset
EncodingSniffer.sniffEncoding
(List<NameValuePair> headers, InputStream content) Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic Charset
EncodingSniffer.sniffEncodingFromHttpHeaders
(List<NameValuePair> headers) Deprecated.as of version 4.0.0; method will be removed without replacementstatic Charset
EncodingSniffer.sniffHtmlEncoding
(List<NameValuePair> headers, InputStream content) Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic Charset
EncodingSniffer.sniffUnknownContentTypeEncoding
(List<NameValuePair> headers, InputStream content) Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic Charset
EncodingSniffer.sniffXmlEncoding
(List<NameValuePair> headers, InputStream content) Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
instead
HttpUtils.parseUrlQuery(String, Charset)
instead