Uses of Class
org.htmlunit.util.NameValuePair
-
Packages that use NameValuePair Package Description org.htmlunit Framework classes (contains theWebClient
class which is the main entry point).org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPage
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. -
-
Uses of NameValuePair in org.htmlunit
Fields in org.htmlunit with type parameters of type NameValuePair Modifier and Type Field Description private java.util.List<NameValuePair>
MockWebConnection.RawResponseData. headers_
private java.util.List<NameValuePair>
WebRequest. requestParameters_
private java.util.List<NameValuePair>
WebResponseData. responseHeaders_
private java.util.List<NameValuePair>
WebResponseFromCache. responseHeaders_
Methods in org.htmlunit that return types with arguments of type NameValuePair Modifier and Type Method Description private static java.util.List<NameValuePair>
MockWebConnection.RawResponseData. compileHeaders(java.util.List<NameValuePair> headers, java.lang.String contentType)
java.util.List<NameValuePair>
MockWebConnection.RawResponseData. getHeaders()
Gets the configured headers.java.util.List<NameValuePair>
MockWebConnection. getLastParameters()
Returns the parameters that were used in the last call to submitRequest().java.util.List<NameValuePair>
WebRequest. getParameters()
Retrieves the request parameters in use.java.util.List<NameValuePair>
WebRequest. getRequestParameters()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Retrieves the request parameters to use.java.util.List<NameValuePair>
WebResponse. getResponseHeaders()
Returns the response headers as a list ofNameValuePair
s.java.util.List<NameValuePair>
WebResponseData. getResponseHeaders()
java.util.List<NameValuePair>
WebResponseFromCache. getResponseHeaders()
Returns the response headers as a list ofNameValuePair
s.private static java.util.List<NameValuePair>
WebRequest. normalize(java.util.List<NameValuePair> pairs)
Method parameters in org.htmlunit with type arguments of type NameValuePair Modifier and Type Method Description private static MockWebConnection.RawResponseData
MockWebConnection. buildRawResponseData(byte[] content, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.List<NameValuePair> headers)
private static MockWebConnection.RawResponseData
MockWebConnection. buildRawResponseData(java.lang.String content, java.nio.charset.Charset charset, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.List<NameValuePair> headers)
private static java.util.List<NameValuePair>
MockWebConnection.RawResponseData. compileHeaders(java.util.List<NameValuePair> headers, java.lang.String contentType)
private static java.nio.charset.Charset
HttpWebConnection. getCharset(java.nio.charset.Charset charset, java.util.List<NameValuePair> pairs)
private static java.lang.String
WebResponseData. getHeader(java.util.List<NameValuePair> headers, java.lang.String name)
private static java.util.List<NameValuePair>
WebRequest. normalize(java.util.List<NameValuePair> pairs)
void
MockWebConnection. setDefaultResponse(java.lang.String content, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.nio.charset.Charset charset, java.util.List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.void
MockWebConnection. setDefaultResponse(java.lang.String content, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.void
WebRequest. setRequestParameters(java.util.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(java.net.URL url, byte[] content, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.void
MockWebConnection. setResponse(java.net.URL url, java.lang.String content, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.nio.charset.Charset charset, java.util.List<NameValuePair> headers)
Sets the response that will be returned when the specified URL is requested.void
MockWebConnection. setResponse(java.net.URL url, java.lang.String content, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.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 NameValuePair Constructor Description RawResponseData(byte[] byteContent, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.List<NameValuePair> headers)
RawResponseData(java.lang.String stringContent, java.nio.charset.Charset charset, int statusCode, java.lang.String statusMessage, java.lang.String contentType, java.util.List<NameValuePair> headers)
WebResponseData(byte[] body, int statusCode, java.lang.String statusMessage, java.util.List<NameValuePair> responseHeaders)
Constructs with a raw byte[] (mostly for testing).WebResponseData(int statusCode, java.lang.String statusMessage, java.util.List<NameValuePair> responseHeaders)
Constructs without data stream for subclasses that override getBody().WebResponseData(DownloadedContent downloadedContent, int statusCode, java.lang.String statusMessage, java.util.List<NameValuePair> responseHeaders)
Constructor.WebResponseFromCache(WebResponse cachedResponse, java.util.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 NameValuePair Modifier and Type Method Description NameValuePair[]
HtmlButton. 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.NameValuePair[]
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.NameValuePair[]
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.NameValuePair[]
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.NameValuePair[]
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.NameValuePair[]
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.NameValuePair[]
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.NameValuePair[]
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.NameValuePair[]
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 NameValuePair Modifier and Type Method Description java.util.List<NameValuePair>
HtmlForm. 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 NameValuePair Modifier and Type Method Description static java.util.List<NameValuePair>
HttpUtils. parseUrlQuery(java.lang.String s, java.nio.charset.Charset charset)
Returns a list ofNameValuePair
s URI query parameters.Method parameters in org.htmlunit.http with type arguments of type NameValuePair Modifier and Type Method Description static java.lang.String
HttpUtils. toQueryFormFields(java.lang.Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)
-
Uses of NameValuePair in org.htmlunit.httpclient
Methods in org.htmlunit.httpclient that return types with arguments of type NameValuePair Modifier and Type Method Description static java.util.List<NameValuePair>
HttpClientConverter. parseUrlQuery(java.lang.String query, java.nio.charset.Charset charset)
Deprecated.as of version 4.1.0; useHttpUtils.parseUrlQuery(String, Charset)
insteadMethod parameters in org.htmlunit.httpclient with type arguments of type NameValuePair Modifier and Type Method Description static java.util.List<org.apache.http.NameValuePair>
HttpClientConverter. nameValuePairsToHttpClient(java.util.List<NameValuePair> pairs)
Converts the specified name/value pairs into HttpClient name/value pairs.static java.lang.String
HttpClientConverter. toQueryFormFields(java.util.List<NameValuePair> parameters, java.nio.charset.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 NameValuePair Modifier and Type Field Description private java.util.Iterator<NameValuePair>
URLSearchParams.NativeParamsIterator. iterator_
Methods in org.htmlunit.javascript.host that return NameValuePair Modifier and Type Method Description private static NameValuePair
URLSearchParams. splitQueryParameter(java.lang.String singleParam)
Methods in org.htmlunit.javascript.host that return types with arguments of type NameValuePair Modifier and Type Method Description private static java.util.List<NameValuePair>
URLSearchParams. resolveParams(java.lang.Object params)
private java.util.List<NameValuePair>
URLSearchParams. splitQuery()
private static java.util.List<NameValuePair>
URLSearchParams. splitQuery(java.lang.String params)
Method parameters in org.htmlunit.javascript.host with type arguments of type NameValuePair Modifier and Type Method Description void
URL. setSearch(java.util.List<NameValuePair> nameValuePairs)
Constructor parameters in org.htmlunit.javascript.host with type arguments of type NameValuePair Constructor Description NativeParamsIterator(org.htmlunit.corejs.javascript.Scriptable scope, java.lang.String className, URLSearchParams.NativeParamsIterator.Type type, java.util.Iterator<NameValuePair> iterator)
-
Uses of NameValuePair in org.htmlunit.javascript.host.xml
Fields in org.htmlunit.javascript.host.xml with type parameters of type NameValuePair Modifier and Type Field Description private java.util.List<NameValuePair>
FormData.FormDataIterator. nameValuePairList_
private java.util.List<NameValuePair>
FormData. requestParameters_
Methods in org.htmlunit.javascript.host.xml that return types with arguments of type NameValuePair Modifier and Type Method Description java.util.List<NameValuePair>
XMLHttpRequest.NetworkErrorWebResponse. getResponseHeaders()
Constructor parameters in org.htmlunit.javascript.host.xml with type arguments of type NameValuePair Constructor Description FormDataIterator(org.htmlunit.corejs.javascript.Scriptable scope, java.lang.String className, FormData.FormDataIterator.Type type, java.util.List<NameValuePair> nameValuePairList)
-
Uses of NameValuePair in org.htmlunit.util
Subclasses of NameValuePair in org.htmlunit.util Modifier and Type Class 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.Methods in org.htmlunit.util that return NameValuePair Modifier and Type Method Description NameValuePair
NameValuePair. 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 NameValuePair Modifier and Type Method Description java.util.List<NameValuePair>
WebResponseWrapper. getResponseHeaders()
Returns the response headers as a list ofNameValuePair
s.Method parameters in org.htmlunit.util with type arguments of type NameValuePair Modifier and Type Method Description (package private) static boolean
EncodingSniffer. contentTypeEndsWith(java.util.List<NameValuePair> headers, java.lang.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(java.util.List<NameValuePair> headers)
Deprecated.as of version 4.0.0; method will be removed without replacement(package private) static boolean
EncodingSniffer. isXml(java.util.List<NameValuePair> headers)
Deprecated.as of version 4.0.0; method will be removed without replacement(package private) static java.lang.String
DebuggingWebConnection. nameValueListToJsMap(java.util.List<NameValuePair> headers)
Produces a String that will produce a JS map like "{'key1': 'value1', 'key 2': 'value2'}".private static java.nio.charset.Charset
EncodingSniffer. sniffCssEncoding(java.util.List<NameValuePair> headers, java.io.InputStream content)
Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic java.nio.charset.Charset
EncodingSniffer. sniffEncoding(java.util.List<NameValuePair> headers, java.io.InputStream content)
Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic java.nio.charset.Charset
EncodingSniffer. sniffEncodingFromHttpHeaders(java.util.List<NameValuePair> headers)
Deprecated.as of version 4.0.0; method will be removed without replacementstatic java.nio.charset.Charset
EncodingSniffer. sniffHtmlEncoding(java.util.List<NameValuePair> headers, java.io.InputStream content)
Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic java.nio.charset.Charset
EncodingSniffer. sniffUnknownContentTypeEncoding(java.util.List<NameValuePair> headers, java.io.InputStream content)
Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
insteadstatic java.nio.charset.Charset
EncodingSniffer. sniffXmlEncoding(java.util.List<NameValuePair> headers, java.io.InputStream content)
Deprecated.as of version 4.0.0; depending on the content useEncodingSniffer.sniffEncodingFromMetaTag(InputStream)
,EncodingSniffer.sniffEncodingFromXmlDeclaration(InputStream)
, orEncodingSniffer.sniffEncodingFromCssDeclaration(InputStream)
instead
-