A B C D E F G H I K L M N O P Q R S T U V W X 
All Classes All Packages

A

ACCEPT - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Informs the server about the mime types of data that can be sent back.
ACCEPT_CH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Servers can advertise support for Client Hints using the Accept-CH header field or an equivalent HTML <meta> element with http-equiv attribute.
ACCEPT_ENCODING - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The encoding algorithm, usually a compression algorithm, that can be used on the resource sent back.
ACCEPT_LANGUAGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Informs the server about the human language the server is expected to send back.
ACCEPT_PUSH_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
A client can express the desired push policy for a request by sending an Accept-Push-Policy header field in the request.
ACCEPT_RANGES - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates if the server supports range requests, and if so in which unit the range can be expressed.
ACCEPT_SIGNATURE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
A client can send the Accept-Signature header field to indicate intention to take advantage of any available signatures and to indicate what kinds of signatures it supports.
ACCEPTED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request has been received but not yet acted upon.
It is noncommittal, since there is no way in HTTP to later send an asynchronous response indicating the outcome of the request.
It is intended for cases where another process or server handles the request, or for batch processing.
ACCESS_CONTROL_ALLOW_CREDENTIALS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates whether the response to the request can be exposed when the credentials flag is true.
ACCESS_CONTROL_ALLOW_HEADERS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used in response to a preflight request to indicate which HTTP headers can be used when making the actual request.
ACCESS_CONTROL_ALLOW_METHODS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Specifies the methods allowed when accessing the resource in response to a preflight request.
ACCESS_CONTROL_ALLOW_ORIGIN - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates whether the response can be shared.
ACCESS_CONTROL_EXPOSE_HEADERS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates which headers can be exposed as part of the response by listing their names.
ACCESS_CONTROL_MAX_AGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates how long the results of a preflight request can be cached.
ACCESS_CONTROL_REQUEST_HEADERS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used when issuing a preflight request to let the server know which HTTP headers will be used when the actual request is made.
ACCESS_CONTROL_REQUEST_METHOD - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made.
addParameter(String, String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Add a parameter.
addParameter(URLWrapper.Parameter) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Add a parameter.
addParameters(Iterable<URLWrapper.Parameter>) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Add multiple parameters.
addParameters(Map<String, String>) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Add multiple parameters.
addParameters(URLWrapper.Parameter[]) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Add multiple parameters.
addPart(String, HttpContent) - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
Add a new part to the form data.
addPart(String, HttpContent, String) - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
Add a new part to the form data.
addPart(MultiPartFormContent.FormPart) - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
Add a new part to the form data.
addQueries(Map<String, String>) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Add multiple query parameters.
AGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The time, in seconds, that the object has been in a proxy cache.
ALLOW - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Lists the set of HTTP request methods supported by a resource.
ALREADY_REPORTED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Used inside a WebDAV response element to avoid repeatedly enumerating the internal members of multiple bindings to the same collection.
ALT_SVC - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used to list alternate ways to reach this service.
ALT_USED - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used to identify the alternative service in use.
appendHeader(String, String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Append a header.
appendHeader(Collection<HttpHeader>) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Append a header.
appendHeader(HttpHeader...) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Append a header.
APPLICATION_ATOM_XML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_FORM_URLENCODED - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_JSON - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_OCTET_STREAM - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_SOAP_XML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_SVG_XML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_XHTML_XML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
APPLICATION_XML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
apply() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Apply the changes to the URL.
apply() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Apply the changes to the URL.
AUTHORIZATION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains the credentials to authenticate a user-agent with a server.
AUTO - net.lenni0451.commons.httpclient.executor.ExecutorType
Automatically choose the best executor type for the current Java version.
This will try to use the other types in reverse order and use the first one that is available.
e.g.
available() - Method in class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 

B

BAD_GATEWAY - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This error response means that the server, while working as a gateway to get a response needed to handle the request, got an invalid response.
BAD_REQUEST - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
bind(HttpClient) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Bind this request to a client for execution.
bind(T) - Method in class net.lenni0451.commons.httpclient.HttpClient
 
bind(T) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Bind the given request to a client.
ByteArrayContent - Class in net.lenni0451.commons.httpclient.content.impl
 
ByteArrayContent(byte[]) - Constructor for class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
ByteArrayContent(byte[], int, int) - Constructor for class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
ByteArrayContent(ContentType, byte[]) - Constructor for class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
ByteArrayContent(ContentType, byte[], int, int) - Constructor for class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
bytes(byte[]) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given bytes.
bytes(byte[], int, int) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given bytes.

C

CACHE_CONTROL - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Directives for caching mechanisms in both requests and responses.
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.DelegatingHttpContent
 
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Get if the content can be streamed multiple times.
The return value is allowed to change between multiple calls depending on the implementation.
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.impl.FileContent
 
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.impl.InputStreamContent
 
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
 
canBeStreamedMultipleTimes() - Method in class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
checkClientTrusted(X509Certificate[], String) - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
checkClientTrusted(X509Certificate[], String, Socket) - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
checkClientTrusted(X509Certificate[], String, SSLEngine) - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
checkServerTrusted(X509Certificate[], String) - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
checkServerTrusted(X509Certificate[], String, Socket) - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
checkServerTrusted(X509Certificate[], String, SSLEngine) - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
CLEAR_SITE_DATA - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Clears browsing data (e.g.
clearCache() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Clear the cached byte array if present.
This will force the content to be recomputed on the next access.
This should only be used if HttpContent.canBeStreamedMultipleTimes() returns true.
clearHeaders() - Method in class net.lenni0451.commons.httpclient.HeaderStore
Clear all headers.
clearParameters() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Clear all parameters.
client - Variable in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
close() - Method in class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 
close() - Method in interface net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream.CloseListener
 
close() - Method in class net.lenni0451.commons.httpclient.utils.stream.MultiInputStream
 
CloseListenerInputStream - Class in net.lenni0451.commons.httpclient.utils.stream
 
CloseListenerInputStream(InputStream, CloseListenerInputStream.CloseListener) - Constructor for class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 
CloseListenerInputStream.CloseListener - Interface in net.lenni0451.commons.httpclient.utils.stream
 
compute() - Method in class net.lenni0451.commons.httpclient.content.DelegatingHttpContent
 
compute() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Compute the content and return it as an input stream.
This method can be called multiple times if HttpContent.canBeStreamedMultipleTimes() returns true.
compute() - Method in class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
compute() - Method in class net.lenni0451.commons.httpclient.content.impl.FileContent
 
compute() - Method in class net.lenni0451.commons.httpclient.content.impl.InputStreamContent
 
compute() - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
 
compute() - Method in class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
CONFLICT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response is sent when a request conflicts with the current state of the server.
CONNECT - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The CONNECT method establishes a tunnel to the server identified by the target resource.
connectFailed(URI, SocketAddress, IOException) - Method in class net.lenni0451.commons.httpclient.proxy.SingleProxySelector
 
CONNECTION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Controls whether the network connection stays open after the current transaction finishes.
CONTENT_DISPOSITION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates if the resource transmitted should be displayed inline (default behavior without the header), or if it should be handled like a download and the browser should present a "Save As" dialog.
CONTENT_ENCODING - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used to specify the compression algorithm.
CONTENT_LANGUAGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Describes the human language(s) intended for the audience, so that it allows a user to differentiate according to the users' own preferred language.
CONTENT_LENGTH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The size of the resource, in decimal number of bytes.
CONTENT_LOCATION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates an alternate location for the returned data.
CONTENT_RANGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates where in a full body message a partial message belongs.
CONTENT_SECURITY_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Controls resources the user agent is allowed to load for a given page.
CONTENT_SECURITY_POLICY_REPORT_ONLY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Allows web developers to experiment with policies by monitoring, but not enforcing, their effects.
CONTENT_TYPE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the media type of the resource.
contentRequest(String, String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new request with the given method and url.
This request will send content to the server if specified.
contentRequest(String, URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new request with the given method and url.
This request will send content to the server if specified.
ContentType - Class in net.lenni0451.commons.httpclient.model
 
ContentType(String) - Constructor for class net.lenni0451.commons.httpclient.model.ContentType
 
ContentType(String, String) - Constructor for class net.lenni0451.commons.httpclient.model.ContentType
 
ContentType(String, Charset) - Constructor for class net.lenni0451.commons.httpclient.model.ContentType
 
ContentType(String, Charset, String) - Constructor for class net.lenni0451.commons.httpclient.model.ContentType
 
ContentTypes - Class in net.lenni0451.commons.httpclient.constants
 
ContentTypes() - Constructor for class net.lenni0451.commons.httpclient.constants.ContentTypes
 
CONTINUE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This interim response indicates that the client should continue the request or ignore the response if the request is already finished.
COOKIE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains stored HTTP cookies previously sent by the server with the HttpHeaders.SET_COOKIE header.
CREATED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request succeeded, and a new resource was created as a result.
CRITICAL_CH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Servers use Critical-CH along with HttpHeaders.ACCEPT_CH to specify that accepted client hints are also critical client hints.
CROSS_ORIGIN_EMBEDDER_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Allows a server to declare an embedder policy for a given document.
CROSS_ORIGIN_OPENER_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Prevents other domains from opening/controlling a window.
CROSS_ORIGIN_RESOURCE_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Prevents other domains from reading the response of the resources to which this header is applied.

D

DATE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains the date and time at which the message was originated.
decode(String) - Static method in class net.lenni0451.commons.httpclient.utils.URLCoder
Decode a string from a URL.
This method uses StandardCharsets.UTF_8 as charset.
decode(String, Charset) - Static method in class net.lenni0451.commons.httpclient.utils.URLCoder
Decode a string from a URL.
DelegatingHttpContent - Class in net.lenni0451.commons.httpclient.content
 
DelegatingHttpContent(HttpContent) - Constructor for class net.lenni0451.commons.httpclient.content.DelegatingHttpContent
 
delete(String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new DELETE request with the given url.
delete(URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new DELETE request with the given url.
DELETE - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The DELETE method deletes the specified resource.
DeleteRequest - Class in net.lenni0451.commons.httpclient.requests.impl
 
DeleteRequest(String) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.DeleteRequest
 
DeleteRequest(URL) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.DeleteRequest
 
DEVICE_MEMORY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Approximate amount of available client RAM memory.
This is part of the Device Memory API.
discard() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Discard the changes to the URL.
DOWNLINK - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Approximate bandwidth of the client's connection to the server, in Mbps.
This is part of the Network Information API.

E

EARLY_DATA - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates that the request has been conveyed in TLS early data.
EARLY_HINTS - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This status code is primarily intended to be used with the Link header, letting the user agent start preloading resources while the server prepares a response or preconnect to an origin from which the page will need resources.
ECT - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The effective connection type ("network profile") that best matches the connection's latency and bandwidth.
This is part of the Network Information API.
empty() - Static method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Create a new empty URLWrapper.
encode(String) - Static method in class net.lenni0451.commons.httpclient.utils.URLCoder
Encode a string to be used in a URL.
This method uses StandardCharsets.UTF_8 as charset.
encode(String, Charset) - Static method in class net.lenni0451.commons.httpclient.utils.URLCoder
Encode a string to be used in a URL.
equals(Object) - Method in class net.lenni0451.commons.httpclient.model.ContentType
 
equals(Object) - Method in class net.lenni0451.commons.httpclient.model.HttpHeader
 
ETAG - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
A unique string identifying the version of the resource.
execute() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Execute this request and return the response.
If a client is bound to this request it will be used for execution.
If no client is bound a new client will be created.
execute(HttpResponseHandler<R>) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Execute this request and pass the response to the response handler.
If a client is bound to this request it will be used for execution.
If no client is bound a new client will be created.
execute(HttpRequest) - Method in class net.lenni0451.commons.httpclient.executor.extra.ReactorNettyExecutor
 
execute(HttpRequest) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
execute(HttpRequest) - Method in class net.lenni0451.commons.httpclient.executor.URLConnectionExecutor
 
execute(HttpRequest) - Method in class net.lenni0451.commons.httpclient.HttpClient
Execute a request and return the response.
execute(HttpRequest, HttpResponseHandler<R>) - Method in class net.lenni0451.commons.httpclient.HttpClient
Execute a request and pass the response to the response handler.
The return value of the response handler will be returned.
executeAndHandle(T) - Method in class net.lenni0451.commons.httpclient.HttpClient
Execute a request that is also a response handler and return the handled response.
This is just a shortcut for HttpClient.execute(HttpRequest, HttpResponseHandler).
ExecutorType - Enum in net.lenni0451.commons.httpclient.executor
 
EXPECT - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates expectations that need to be fulfilled by the server to properly handle the request.
EXPECTATION_FAILED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response code means the expectation indicated by the Expect request header field cannot be met by the server.
EXPIRES - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The date/time after which the response is considered stale.

F

FAILED_DEPENDENCY - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request failed due to failure of a previous request.
file(File) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given file.
FileContent - Class in net.lenni0451.commons.httpclient.content.impl
 
FileContent(File) - Constructor for class net.lenni0451.commons.httpclient.content.impl.FileContent
 
FileContent(ContentType, File) - Constructor for class net.lenni0451.commons.httpclient.content.impl.FileContent
 
FOLLOW - net.lenni0451.commons.httpclient.requests.HttpRequest.FollowRedirects
 
FORBIDDEN - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource.
Unlike 401 Unauthorized, the client's identity is known to the server.
forEachHeader(BiConsumer<String, String>) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Iterate over all headers.
form(String, String) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given form data.
form(Map<String, String>) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given form data.
FormPart(String, HttpContent) - Constructor for class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent.FormPart
 
FormPart(String, HttpContent, String) - Constructor for class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent.FormPart
 
FORWARDED - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains information from the client-facing side of proxy servers that is altered or lost when a proxy is involved in the path of the request.
from(Proxy.Type) - Static method in enum net.lenni0451.commons.httpclient.proxy.ProxyType
Get the ProxyType from a Proxy.Type.
If the type is Proxy.Type.DIRECT an IllegalArgumentException will be thrown.
If the type is Proxy.Type.SOCKS ProxyType.SOCKS5 will be returned.
FROM - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains an Internet email address for a human user who controls the requesting user agent.

G

GATEWAY_TIMEOUT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This error response is given when the server is acting as a gateway and cannot get a response in time.
get() - Method in class net.lenni0451.commons.httpclient.utils.ResettableStorage
 
get(String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new GET request with the given url.
get(String) - Method in interface net.lenni0451.commons.httpclient.HttpResponse.DecoderProvider
Get a decoder for the given encoding name.
All names will be converted to lower case before lookup.
get(URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new GET request with the given url.
GET - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The GET method requests a representation of the specified resource.
getAcceptedIssuers() - Method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
getAddress() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
getAsBytes() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
 
getAsStream() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Get the content as an input stream.
You are responsible for closing the input stream after use.
getAsString() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
 
getAsString(Charset) - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Get the content as a string with the given charset.
getBoundary() - Method in class net.lenni0451.commons.httpclient.model.ContentType
 
getBufferSize() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
 
getCharset() - Method in class net.lenni0451.commons.httpclient.model.ContentType
 
getConnectTimeout() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
getContent() - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent.FormPart
 
getContent() - Method in class net.lenni0451.commons.httpclient.HttpResponse
 
getContent() - Method in class net.lenni0451.commons.httpclient.requests.HttpContentRequest
 
getContentAsString() - Method in class net.lenni0451.commons.httpclient.HttpResponse
Deprecated.
getContentAsString(Charset) - Method in class net.lenni0451.commons.httpclient.HttpResponse
Deprecated.
getContentLength() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Deprecated.
getContentType() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Deprecated.
getContentType() - Method in class net.lenni0451.commons.httpclient.HttpResponse
Deprecated.
getCookieManager() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
getCookieManager() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
getCookieManager(HttpRequest) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
getDecodedContent() - Method in class net.lenni0451.commons.httpclient.HttpResponse
Get the decoded content of the response.
Supported encodings are: identify (no encoding) gzip (also x-gzip) deflate Library support for the following encodings is also included, if the respective library is available on the classpath: brotli com.aayushatharva.brotli4j:brotli4j org.brotli:dec zstd io.airlift:aircompressor io.airlift:aircompressor-v3 com.github.luben:zstd-jni
getDecodedContent(HttpResponse.DecoderProvider) - Method in class net.lenni0451.commons.httpclient.HttpResponse
Get the decoded content of the response.
Closing the returned content will also close the original content.
If the content is not encoded, or uses an unsupported encoding, the original content will be returned.
The HttpHeaders.CONTENT_ENCODING header is renamed to Original-Content-Encoding if the content has been decoded.
getFirstHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Get the first header with the given name.
getFirstValue(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Get the first value for a specific key.
null values are filtered out.
getFollowRedirects() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
getFragment() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getFragmentOr(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Get a header.
getHeaders() - Method in class net.lenni0451.commons.httpclient.HeaderStore
 
getHeaders(HttpRequest, CookieManager) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
getHeaders(HttpRequest, CookieManager, boolean) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
getHost() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getHostOr(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getIgnoreInvalidSSL() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
getInputStream() - Method in class net.lenni0451.commons.httpclient.HttpResponse
Deprecated.
getLastHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Get the last header with the given name.
getLength() - Method in class net.lenni0451.commons.httpclient.content.DelegatingHttpContent
 
getLength() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Get the content length in bytes.
If the content length is unknown, return -1.
Streaming the content may require valid content length depending on the implementation.
getLength() - Method in class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
 
getLength() - Method in class net.lenni0451.commons.httpclient.content.impl.FileContent
 
getLength() - Method in class net.lenni0451.commons.httpclient.content.impl.InputStreamContent
 
getLength() - Method in class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
 
getLength() - Method in class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
getMethod() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
getMimeType() - Method in class net.lenni0451.commons.httpclient.model.ContentType
 
getName() - Method in class net.lenni0451.commons.httpclient.model.HttpHeader
 
getPassword() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
getPasswordAuthentication() - Method in class net.lenni0451.commons.httpclient.proxy.SingleProxyAuthenticator
 
getPath() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getPathOr(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getPort() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getPortOr(int) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getProtocol() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getProtocolOr(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getProxyAuthenticator() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
getProxyHandler() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
getProxySelector() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
getProxyType() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
getQueries() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
 
getQuery() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Get a query parameter by its key.
getQueryOr(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getReadTimeout() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
getReference() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Deprecated.
GetRequest - Class in net.lenni0451.commons.httpclient.requests.impl
 
GetRequest(String) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.GetRequest
 
GetRequest(URL) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.GetRequest
 
getResponse() - Method in exception net.lenni0451.commons.httpclient.exceptions.HttpRequestException
 
getRetryHandler() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
getRetryHandler() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
getStatusCode() - Method in class net.lenni0451.commons.httpclient.HttpResponse
 
getStatusMessage() - Method in class net.lenni0451.commons.httpclient.HttpResponse
 
getType() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
 
getURL() - Method in class net.lenni0451.commons.httpclient.HttpResponse
 
getURL() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
getUserInfo() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getUserInfoOr(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
getUsername() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
getValue() - Method in class net.lenni0451.commons.httpclient.model.HttpHeader
 
getValues(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Get all values for a specific key.
null values are filtered out.
GONE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
Clients are expected to remove their caches and links to the resource.
The HTTP specification intends this status code to be used for "limited-time, promotional services".
APIs should not feel compelled to indicate resources that have been deleted with this status code.

H

handle(HttpResponse) - Method in interface net.lenni0451.commons.httpclient.handler.HttpResponseHandler
Handle the response and return the result.
handle(HttpResponse) - Method in class net.lenni0451.commons.httpclient.handler.ThrowingResponseHandler
 
hasContent() - Method in class net.lenni0451.commons.httpclient.requests.HttpContentRequest
 
hasFragment() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
hashCode() - Method in class net.lenni0451.commons.httpclient.model.ContentType
 
hashCode() - Method in class net.lenni0451.commons.httpclient.model.HttpHeader
 
hasHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Check if a header is set.
hasHeader(String, String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Check if a header is set.
hasHeader(HttpHeader) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Check if a header is set.
hasHost() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
hasParameter(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Check if a parameter with the given key exists.
hasPath() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
hasPort() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
hasProtocol() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
hasQuery() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
hasQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Check if a query parameter exists.
hasUserInfo() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
head(String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new HEAD request with the given url.
head(URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new HEAD request with the given url.
HEAD - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The HEAD method asks for a response identical to a RequestMethods.GET request, but without the response body.
HeaderStore<T extends HeaderStore<T>> - Class in net.lenni0451.commons.httpclient
 
HeaderStore() - Constructor for class net.lenni0451.commons.httpclient.HeaderStore
 
HeaderStore(Map<String, List<String>>) - Constructor for class net.lenni0451.commons.httpclient.HeaderStore
 
HeadRequest - Class in net.lenni0451.commons.httpclient.requests.impl
 
HeadRequest(String) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.HeadRequest
 
HeadRequest(URL) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.HeadRequest
 
HOST - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Specifies the domain name of the server (for virtual hosting), and (optionally) the TCP port number on which the server is listening.
HTTP - net.lenni0451.commons.httpclient.proxy.ProxyType
By default, basic authentication is deactivated for HTTP proxies because it is insecure.
If you need it, you can enable it by setting the jdk.http.auth.tunneling.disabledSchemes system property to an empty string.
HTTP_CLIENT - net.lenni0451.commons.httpclient.executor.ExecutorType
Use the new HttpClient executor which was added in Java 11.
This implementation is faster than the URLConnection executor and supports HTTP/2.
HTTP_VERSION_NOT_SUPPORTED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The HTTP version used in the request is not supported by the server.
HttpClient - Class in net.lenni0451.commons.httpclient
 
HttpClient() - Constructor for class net.lenni0451.commons.httpclient.HttpClient
Create a new http client with the default executor.
HttpClient(Function<HttpClient, RequestExecutor>) - Constructor for class net.lenni0451.commons.httpclient.HttpClient
Create a new http client with the given executor.
You'll only need this if you want to use a custom executor.
HttpClient(ExecutorType) - Constructor for class net.lenni0451.commons.httpclient.HttpClient
Create a new http client with the given executor type.
Some executor types may not be supported by your Java version.
HttpContent - Class in net.lenni0451.commons.httpclient.content
 
HttpContent(ContentType) - Constructor for class net.lenni0451.commons.httpclient.content.HttpContent
 
HttpContentRequest - Class in net.lenni0451.commons.httpclient.requests
 
HttpContentRequest(String, String) - Constructor for class net.lenni0451.commons.httpclient.requests.HttpContentRequest
 
HttpContentRequest(String, URL) - Constructor for class net.lenni0451.commons.httpclient.requests.HttpContentRequest
 
HttpHeader - Class in net.lenni0451.commons.httpclient.model
 
HttpHeader(String, String) - Constructor for class net.lenni0451.commons.httpclient.model.HttpHeader
 
HttpHeaders - Class in net.lenni0451.commons.httpclient.constants
 
HttpHeaders() - Constructor for class net.lenni0451.commons.httpclient.constants.HttpHeaders
 
HttpRequest - Class in net.lenni0451.commons.httpclient.requests
 
HttpRequest(String, String) - Constructor for class net.lenni0451.commons.httpclient.requests.HttpRequest
 
HttpRequest(String, URL) - Constructor for class net.lenni0451.commons.httpclient.requests.HttpRequest
 
HttpRequest.FollowRedirects - Enum in net.lenni0451.commons.httpclient.requests
 
HttpRequestBuilder - Interface in net.lenni0451.commons.httpclient
 
HttpRequestException - Exception in net.lenni0451.commons.httpclient.exceptions
 
HttpRequestException(HttpResponse) - Constructor for exception net.lenni0451.commons.httpclient.exceptions.HttpRequestException
 
HttpRequestException(HttpResponse, String) - Constructor for exception net.lenni0451.commons.httpclient.exceptions.HttpRequestException
 
HttpResponse - Class in net.lenni0451.commons.httpclient
 
HttpResponse(URL, int, byte[], Map<String, List<String>>) - Constructor for class net.lenni0451.commons.httpclient.HttpResponse
 
HttpResponse(URL, int, InputStream, Map<String, List<String>>) - Constructor for class net.lenni0451.commons.httpclient.HttpResponse
 
HttpResponse(URL, int, HttpContent, Map<String, List<String>>) - Constructor for class net.lenni0451.commons.httpclient.HttpResponse
 
HttpResponse.DecoderProvider - Interface in net.lenni0451.commons.httpclient
A provider for decoders based on the encoding name.
HttpResponse.InputStreamMapper - Interface in net.lenni0451.commons.httpclient
A function that maps an input stream to another input stream, e.g., for decompression.
HttpResponseHandler<R> - Interface in net.lenni0451.commons.httpclient.handler
 

I

identity() - Static method in interface net.lenni0451.commons.httpclient.handler.HttpResponseHandler
 
IF_MATCH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Makes the request conditional, and applies the method only if the stored resource matches one of the given ETags.
IF_MODIFIED_SINCE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Makes the request conditional, and expects the resource to be transmitted only if it has been modified after the given date.
This is used to transmit data only when the cache is out of date.
IF_NONE_MATCH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Makes the request conditional, and applies the method only if the stored resource doesn't match any of the given ETags.
This is used to update caches (for safe requests), or to prevent uploading a new resource when one already exists.
IF_RANGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Creates a conditional range request that is only fulfilled if the given etag or date matches the remote resource.
IF_UNMODIFIED_SINCE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Makes the request conditional, and expects the resource to be transmitted only if it has not been modified after the given date.
This ensures the coherence of a new fragment of a specific range with previous ones, or to implement an optimistic concurrency control system when modifying existing documents.
IGNORE - net.lenni0451.commons.httpclient.requests.HttpRequest.FollowRedirects
 
IgnoringTrustManager - Class in net.lenni0451.commons.httpclient.utils
 
IgnoringTrustManager() - Constructor for class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
IM_A_TEAPOT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server refuses the attempt to brew coffee with a teapot.
IM_USED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server has fulfilled a GET request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
IMAGE_BMP - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
IMAGE_GIF - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
IMAGE_JPEG - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
IMAGE_PNG - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
IMAGE_SVG - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
IMAGE_TIFF - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
IMAGE_WEBP - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
init() - Method in enum net.lenni0451.commons.httpclient.executor.ExecutorType
 
initExecutor(HttpClient) - Method in enum net.lenni0451.commons.httpclient.executor.ExecutorType
 
inputStream(ContentType, InputStream, int) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new input stream content from the given input stream.
InputStreamContent - Class in net.lenni0451.commons.httpclient.content.impl
 
InputStreamContent(ContentType, InputStream, int) - Constructor for class net.lenni0451.commons.httpclient.content.impl.InputStreamContent
 
INSUFFICIENT_STORAGE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The method could not be performed on the resource because the server is unable to store the representation needed to successfully complete the request.
INTERNAL_SERVER_ERROR - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server has encountered a situation it does not know how to handle.
isAuthenticationSet() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
isAvailable() - Method in enum net.lenni0451.commons.httpclient.executor.ExecutorType
 
isCookieManagerSet() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
isFollowRedirects() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
isFollowRedirects(HttpRequest) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
isIgnoreInvalidSSL() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
isIgnoreInvalidSSL(HttpRequest) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
isIgnoreInvalidSSLSet() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
isProxySet() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
isRetryHandlerSet() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
isSet() - Method in class net.lenni0451.commons.httpclient.utils.ResettableStorage
 
isStreamedRequest() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 
isStreamedResponse() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
 

K

KEEP_ALIVE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Controls how long a persistent connection should stay open.

L

LAST_MODIFIED - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The last modification date of the resource, used to compare several versions of the same resource.
LENGTH_REQUIRED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Server rejected the request because the Content-Length header field is not defined and the server requires it.
LINK - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
This entity-header field provides a means for serializing one or more links in HTTP headers.
LOCATION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the URL to redirect a page to.
LOCKED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The resource that is being accessed is locked.
LOOP_DETECTED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server detected an infinite loop while processing the request.

M

makeExecutor(HttpClient) - Method in enum net.lenni0451.commons.httpclient.executor.ExecutorType
 
makeIgnoringSSLContext() - Static method in class net.lenni0451.commons.httpclient.utils.IgnoringTrustManager
 
map(InputStream) - Method in interface net.lenni0451.commons.httpclient.HttpResponse.InputStreamMapper
 
MAX_FORWARDS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
When using https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE, indicates the maximum number of hops the request can do before being reflected to the sender.
METHOD_NOT_ALLOWED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request method is known by the server but is not supported by the target resource.
For example, an API may not allow calling DELETE to remove a resource.
MISDIRECTED_REQUEST - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request was directed at a server that is not able to produce a response.
This can be sent by a server that is not configured to produce responses for the combination of scheme and authority that are included in the request URI.
modify(InputStream) - Method in class net.lenni0451.commons.httpclient.content.DelegatingHttpContent
 
modify(InputStream) - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Modify the given input stream before returning it to the user.
This can be used to wrap the input stream with another stream (e.g.
MOVED_PERMANENTLY - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The URL of the requested resource has been changed permanently.
MOVED_TEMPORARILY - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response code means that the URI of requested resource has been changed temporarily.
Further changes in the URI might be made in the future.
MULTI_STATUS - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Conveys information about multiple resources, for situations where multiple status codes might be appropriate.
MultiInputStream - Class in net.lenni0451.commons.httpclient.utils.stream
 
MultiInputStream() - Constructor for class net.lenni0451.commons.httpclient.utils.stream.MultiInputStream
 
MULTIPART_FORM_DATA - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
multiPartForm() - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new multipart form content.
MultiPartFormContent - Class in net.lenni0451.commons.httpclient.content.impl
 
MultiPartFormContent() - Constructor for class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
 
MultiPartFormContent(String) - Constructor for class net.lenni0451.commons.httpclient.content.impl.MultiPartFormContent
 
MultiPartFormContent.FormPart - Class in net.lenni0451.commons.httpclient.content.impl
 
MULTIPLE_CHOICES - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request has more than one possible response.

N

NEL - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Defines a mechanism that enables developers to declare a network error reporting policy.
net.lenni0451.commons.httpclient - package net.lenni0451.commons.httpclient
 
net.lenni0451.commons.httpclient.constants - package net.lenni0451.commons.httpclient.constants
 
net.lenni0451.commons.httpclient.content - package net.lenni0451.commons.httpclient.content
 
net.lenni0451.commons.httpclient.content.impl - package net.lenni0451.commons.httpclient.content.impl
 
net.lenni0451.commons.httpclient.exceptions - package net.lenni0451.commons.httpclient.exceptions
 
net.lenni0451.commons.httpclient.executor - package net.lenni0451.commons.httpclient.executor
 
net.lenni0451.commons.httpclient.executor.extra - package net.lenni0451.commons.httpclient.executor.extra
 
net.lenni0451.commons.httpclient.handler - package net.lenni0451.commons.httpclient.handler
 
net.lenni0451.commons.httpclient.model - package net.lenni0451.commons.httpclient.model
 
net.lenni0451.commons.httpclient.proxy - package net.lenni0451.commons.httpclient.proxy
 
net.lenni0451.commons.httpclient.requests - package net.lenni0451.commons.httpclient.requests
 
net.lenni0451.commons.httpclient.requests.impl - package net.lenni0451.commons.httpclient.requests.impl
 
net.lenni0451.commons.httpclient.retry - package net.lenni0451.commons.httpclient.retry
 
net.lenni0451.commons.httpclient.retry.handlers - package net.lenni0451.commons.httpclient.retry.handlers
 
net.lenni0451.commons.httpclient.utils - package net.lenni0451.commons.httpclient.utils
 
net.lenni0451.commons.httpclient.utils.stream - package net.lenni0451.commons.httpclient.utils.stream
 
NETWORK_AUTHENTICATION_REQUIRED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Indicates that the client needs to authenticate to gain network access.
NO_CONTENT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
There is no content to send for this request, but the headers may be useful.
The user agent may update its cached headers for this resource with the new ones.
NO_RETRY - Static variable in class net.lenni0451.commons.httpclient.retry.RetryAction
 
NON_AUTHORITATIVE_INFORMATION - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response code means the returned metadata is not exactly the same as is available from the origin server, but is collected from a local or a third-party copy.
This is mostly used for mirrors or backups of another resource.
Except for that specific case, the 200 OK response is preferred to this status.
NOT_ACCEPTABLE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response is sent when the web server, after performing server-driven content negotiation, doesn't find any content that conforms to the criteria given by the user agent.
NOT_EXTENDED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Further extensions to the request are required for the server to fulfill it.
NOT_FOUND - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server cannot find the requested resource.
In the browser, this means the URL is not recognized.
In an API, this can also mean that the endpoint is valid but the resource itself does not exist.
Servers may also send this response instead of 403 Forbidden to hide the existence of a resource from an unauthorized client.
This response code is probably the most well known due to its frequent occurrence on the web.
NOT_IMPLEMENTED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request method is not supported by the server and cannot be handled.
NOT_MODIFIED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This is used for caching purposes.
It tells the client that the response has not been modified, so the client can continue to use the same cached version of the response.
NOT_SET - net.lenni0451.commons.httpclient.requests.HttpRequest.FollowRedirects
 

O

of(String) - Static method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Deprecated.
of(URI) - Static method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Create a new URLWrapper from an URI.
of(URL) - Static method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Create a new URLWrapper from an URL.
ofURI(String) - Static method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Create a new URLWrapper from a URI string.
ofURL(String) - Static method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Create a new URLWrapper from a URL string.
OK - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request succeeded.
OPTIONS - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The OPTIONS method describes the communication options for the target resource.
ORIGIN - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates where a fetch originates from.
ORIGIN_ISOLATION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Provides a mechanism to allow web applications to isolate their origins.

P

Parameter(String) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper.Parameter
 
Parameter(String, String) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper.Parameter
 
parse(String) - Static method in class net.lenni0451.commons.httpclient.model.ContentType
Parse a content type string.
PARTIAL_CONTENT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response code is used when the Range header is sent from the client to request only part of a resource.
PATCH - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The PATCH method applies partial modifications to a resource.
PAYLOAD_TOO_LARGE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Request entity is larger than limits defined by server.
The server might close the connection or return an Retry-After header field.
PAYMENT_REQUIRED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response code is reserved for future use.
The initial aim for creating this code was using it for digital payment systems, however this status code is used very rarely and no standard convention exists.
PERMANENT_REDIRECT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This means that the resource is now permanently located at another URI, specified by the Location: HTTP Response header.
This has the same semantics as the 301 Moved Permanently HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.
PERMISSIONS_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Provides a mechanism to allow and deny the use of browser features in a website's own frame, and in iframes that it embeds.
post(String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new POST request with the given url.
post(URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new POST request with the given url.
POST - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The POST method submits an entity to the specified resource, often causing a change in state or side effects on the server.
PostRequest - Class in net.lenni0451.commons.httpclient.requests.impl
 
PostRequest(String) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.PostRequest
 
PostRequest(URL) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.PostRequest
 
PRAGMA - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Implementation-specific header that may have various effects anywhere along the request-response chain.
Used for backwards compatibility with HTTP/1.0 caches where the Cache-Control header is not yet present.
PRECONDITION_FAILED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The client has indicated preconditions in its headers which the server does not meet.
PRECONDITION_REQUIRED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The origin server requires the request to be conditional.
This response is intended to prevent the lost update problem, where a client GETs a resource's state, modifies it and PUTs it back to the server, when meanwhile a third party has modified the state on the server, leading to a conflict.
PROCESSING - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This code indicates that the server has received and is processing the request, but no response is available yet.
PROXY_AUTHENTICATE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Defines the authentication method that should be used to access a resource behind a proxy server.
PROXY_AUTHENTICATION_REQUIRED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This is similar to 401 Unauthorized but authentication is needed to be done by a proxy.
PROXY_AUTHORIZATION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains the credentials to authenticate a user agent with a proxy server.
ProxyHandler - Class in net.lenni0451.commons.httpclient.proxy
 
ProxyHandler() - Constructor for class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
ProxyHandler(ProxyType, String, int) - Constructor for class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
ProxyHandler(ProxyType, String, int, String, String) - Constructor for class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
ProxyHandler(ProxyType, SocketAddress) - Constructor for class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
ProxyHandler(ProxyType, SocketAddress, String, String) - Constructor for class net.lenni0451.commons.httpclient.proxy.ProxyHandler
 
ProxyType - Enum in net.lenni0451.commons.httpclient.proxy
 
PUSH_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
A Push-Policy defines the server behavior regarding push when processing a request.
put(String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new PUT request with the given url.
put(String, String) - Method in class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
Add a new entry to the form.
put(URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new PUT request with the given url.
PUT - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The PUT method replaces all current representations of the target resource with the request payload.
PutRequest - Class in net.lenni0451.commons.httpclient.requests.impl
 
PutRequest(String) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.PutRequest
 
PutRequest(URL) - Constructor for class net.lenni0451.commons.httpclient.requests.impl.PutRequest
 

Q

QueryParametersWrapper() - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
 

R

RANGE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the part of a document that the server should return.
RANGE_NOT_SATISFIABLE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The range specified by the Range header field in the request cannot be fulfilled.
It's possible that the range is outside the size of the target URI's data.
REACTOR_NETTY - net.lenni0451.commons.httpclient.executor.ExecutorType
Use the reactor-netty executor.
reactor-netty needs to be added as a dependency to your project.
ReactorNettyExecutor - Class in net.lenni0451.commons.httpclient.executor.extra
Executor that uses reactor-netty to execute requests.
Make sure to add the dependency to your project before using this executor.

Limitations: Does not support streaming (request and response)
ReactorNettyExecutor(HttpClient) - Constructor for class net.lenni0451.commons.httpclient.executor.extra.ReactorNettyExecutor
 
read() - Method in class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 
read() - Method in class net.lenni0451.commons.httpclient.utils.stream.MultiInputStream
 
read(byte[]) - Method in class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 
read(byte[], int, int) - Method in class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 
read(byte[], int, int) - Method in class net.lenni0451.commons.httpclient.utils.stream.MultiInputStream
 
REFERER - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The address of the previous web page from which a link to the currently requested page was followed.
REFERRER_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Governs which referrer information sent in the HttpHeaders.REFERER header should be included with requests made.
REFRESH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Directs the browser to reload the page or redirect to another.
removeHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Remove a header.
removeParameters(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Remove all parameters with the given key.
removeQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Remove a query parameter.
REPORT_TO - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used to specify a server endpoint for the browser to send warning and error reports to.
request(String, String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new request with the given method and url.
request(String, URL) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
Create a new request with the given method and url.
REQUEST_HEADER_FIELDS_TOO_LARGE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server is unwilling to process the request because its header fields are too large.
The request may be resubmitted after reducing the size of the request header fields.
REQUEST_TIMEOUT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response is sent on an idle connection by some servers, even without any previous request by the client.
It means that the server would like to shut down this unused connection.
This response is used much more since some browsers, like Chrome, Firefox 27+, or IE9, use HTTP pre-connection mechanisms to speed up surfing.
Also note that some servers merely shut down the connection without sending this message.
RequestExecutor - Class in net.lenni0451.commons.httpclient.executor
 
RequestExecutor(HttpClient) - Constructor for class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
RequestMethods - Class in net.lenni0451.commons.httpclient.constants
 
RequestMethods() - Constructor for class net.lenni0451.commons.httpclient.constants.RequestMethods
 
reset(boolean) - Method in class net.lenni0451.commons.httpclient.proxy.SingleProxySelector
Reset the default proxy selector and authenticator.
RESET_CONTENT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Tells the user agent to reset the document which sent this request.
ResettableStorage<T> - Class in net.lenni0451.commons.httpclient.utils
 
ResettableStorage() - Constructor for class net.lenni0451.commons.httpclient.utils.ResettableStorage
 
ResettableStorage(T) - Constructor for class net.lenni0451.commons.httpclient.utils.ResettableStorage
 
RETRY_AFTER - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates how long the user agent should wait before making a follow-up request.
RetryAction - Class in net.lenni0451.commons.httpclient.retry
 
RetryAction() - Constructor for class net.lenni0451.commons.httpclient.retry.RetryAction
 
RetryAfterRetryHandler - Class in net.lenni0451.commons.httpclient.retry.handlers
 
RetryAfterRetryHandler() - Constructor for class net.lenni0451.commons.httpclient.retry.handlers.RetryAfterRetryHandler
 
RetryConfig - Class in net.lenni0451.commons.httpclient.retry
 
RetryConfig() - Constructor for class net.lenni0451.commons.httpclient.retry.RetryConfig
 
RetryConfig(int, int) - Constructor for class net.lenni0451.commons.httpclient.retry.RetryConfig
 
RetryConfig(int, int, RetryHandler) - Constructor for class net.lenni0451.commons.httpclient.retry.RetryConfig
 
RetryExceededException - Exception in net.lenni0451.commons.httpclient.exceptions
 
RetryExceededException(HttpResponse) - Constructor for exception net.lenni0451.commons.httpclient.exceptions.RetryExceededException
 
RetryExceededException(HttpResponse, String) - Constructor for exception net.lenni0451.commons.httpclient.exceptions.RetryExceededException
 
RetryHandler - Interface in net.lenni0451.commons.httpclient.retry
 
RTT - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Application layer round trip time (RTT) in milliseconds, which includes the server processing time.
This is part of the Network Information API.

S

SAVE_DATA - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
A string on that indicates the user agent's preference for reduced data usage.
SEC_CH_UA - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent's branding and version.
SEC_CH_UA_ARCH - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent's underlying platform architecture.
SEC_CH_UA_BITNESS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent's underlying CPU architecture bitness (for example "64" bit).
SEC_CH_UA_FULL_VERSION_LIST - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Full version for each brand in the user agent's brand list.
SEC_CH_UA_MOBILE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent is running on a mobile device or, more generally, prefers a "mobile" user experience.
SEC_CH_UA_MODEL - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent's device model.
SEC_CH_UA_PLATFORM - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent's underlying operation system/platform.
SEC_CH_UA_PLATFORM_VERSION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User agent's underlying operation system version.
SEC_CH_UA_PREFERS_COLOR_SCHEME - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User's preference of dark or light color scheme.
SEC_CH_UA_PREFERS_REDUCED_MOTION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
User's preference to see fewer animations and content layout shifts.
SEC_FETCH_DEST - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the request's destination.
SEC_FETCH_MODE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the request's mode to a server.
SEC_FETCH_SITE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the relationship between a request initiator's origin and its target's origin.
SEC_FETCH_USER - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates whether or not a navigation request was triggered by user activation.
SEC_GPC - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates whether the user consents to a website or service selling or sharing their personal information with third parties.
SEC_PURPOSE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates the purpose of the request, when the purpose is something other than immediate use by the user-agent.
The header currently has one possible value, prefetch, which indicates that the resource is being fetched preemptively for a possible future navigation.
SEE_OTHER - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server sent this response to direct the client to get the requested resource at another URI with a GET request.
select(URI) - Method in class net.lenni0451.commons.httpclient.proxy.SingleProxySelector
 
SERVER - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains information about the software used by the origin server to handle the request.
SERVER_TIMING - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Communicates one or more metrics and descriptions for the given request-response cycle.
SERVICE_UNAVAILABLE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server is not ready to handle the request.
Common causes are a server that is down for maintenance or that is overloaded.
Note that together with this response, a user-friendly page explaining the problem should be sent.
This response should be used for temporary conditions and the Retry-After HTTP header should, if possible, contain the estimated time before the recovery of the service.
The webmaster must also take care about the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.
SERVICE_WORKER_ALLOWED - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Used to remove the path restriction by including this header in the response of the Service Worker script.
SERVICE_WORKER_NAVIGATION_PRELOAD - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
A request header sent in preemptive request to fetch() a resource during service worker boot.
The value, which is set with NavigationPreloadManager.setHeaderValue()", can be used to inform a server that a different resource should be returned than in a normal fetch() operation.
set(boolean) - Method in class net.lenni0451.commons.httpclient.proxy.SingleProxySelector
Set this proxy selector as default.
This also sets the authenticator if username and password are set.
set(T) - Method in class net.lenni0451.commons.httpclient.utils.ResettableStorage
 
SET_COOKIE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Send cookies from the server to the user-agent.
setAddress(SocketAddress) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Set the proxy address.
setBufferSize(int) - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Set the recommended buffer size for streaming the content.
This is only a recommendation and may be ignored by the implementation.
setConnectTimeout(int) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set the connect timeout for all requests.
setContent(HttpContent) - Method in class net.lenni0451.commons.httpclient.requests.HttpContentRequest
Set the content of this request.
setCookieManager(CookieManager) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set the cookie manager to use for all requests.
If this is null no cookies will be used.
setCookieManager(CookieManager) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set the cookie manager to use for this request.
setExecutor(Function<HttpClient, RequestExecutor>) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set the executor to use for all requests.
setFollowRedirects(boolean) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set whether redirects should be followed.
setFollowRedirects(boolean) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set if redirects should be followed.
setFollowRedirects(HttpRequest.FollowRedirects) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set if redirects should be followed.
setFragment(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the fragment of the URL (e.g.
setHeader(String, String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Set a header.
setHeader(Collection<HttpHeader>) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Set a header.
setHeader(HttpHeader...) - Method in class net.lenni0451.commons.httpclient.HeaderStore
Set a header.
setHeaders(Map<String, List<String>>, BiConsumer<String, String>, BiConsumer<String, String>) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
setHost(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the host of the URL (e.g.
setIgnoreInvalidSSL(boolean) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set whether invalid SSL certificates should be ignored.
setIgnoreInvalidSSL(boolean) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set the ignore invalid SSL flag to use for this request.
setParameter(String, String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Set a parameter.
setParameters(Map<String, String>) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryParametersWrapper
Set multiple parameters.
setPassword(String) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Set the password for the proxy.
setPath(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the path of the URL (e.g.
setPort(int) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the port of the URL (e.g.
setProtocol(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the protocol of the URL (e.g.
setProxy(ProxyType, String, int) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Set the proxy to use.
setProxy(ProxyType, SocketAddress) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Set the proxy to use.
setProxyHandler(ProxyHandler) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set the proxy handler for all requests.
setProxyType(ProxyType) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Set the type of the proxy.
setQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the query of the URL (e.g.
setQuery(String, String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
Deprecated.
Set a query parameter.
setReadTimeout(int) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set the read timeout for all requests.
setReference(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Deprecated.
setRetryHandler(RetryConfig) - Method in class net.lenni0451.commons.httpclient.HttpClient
Set the retry handler for all requests.
setRetryHandler(RetryConfig) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set the retry handler to use for this request.
setStreamedRequest(boolean) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set if the request should be streamed.
Streaming the request will not buffer the content and will allow you to write the content while it is being uploaded.
Streaming is not a mandatory feature and might not be supported by all executors.
setStreamedResponse(boolean) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Set if the response should be streamed.
Streaming the response will not buffer the content and will allow you to read the content while it is being downloaded.
You are responsible for closing the input stream of the response to close the connection and free resources.
Streaming is not a mandatory feature and might not be supported by all executors.
setUserInfo(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Set the user info of the URL (e.g.
setUsername(String) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Set the username for the proxy.
shouldRetry(HttpResponse) - Method in class net.lenni0451.commons.httpclient.retry.handlers.RetryAfterRetryHandler
 
shouldRetry(HttpResponse) - Method in interface net.lenni0451.commons.httpclient.retry.RetryHandler
 
SIGNATURE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The Signature header field conveys a list of signatures for an exchange, each one accompanied by information about how to determine the authority of and refresh that signature.
SIGNED_HEADERS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The Signed-Headers header field identifies an ordered list of response header fields to include in a signature.
SingleProxyAuthenticator - Class in net.lenni0451.commons.httpclient.proxy
 
SingleProxyAuthenticator(String, String) - Constructor for class net.lenni0451.commons.httpclient.proxy.SingleProxyAuthenticator
 
SingleProxySelector - Class in net.lenni0451.commons.httpclient.proxy
 
SingleProxySelector(Proxy, String, String) - Constructor for class net.lenni0451.commons.httpclient.proxy.SingleProxySelector
 
skip(long) - Method in class net.lenni0451.commons.httpclient.utils.stream.CloseListenerInputStream
 
sleep() - Method in class net.lenni0451.commons.httpclient.retry.RetryAction
 
SOCKS4 - net.lenni0451.commons.httpclient.proxy.ProxyType
 
SOCKS5 - net.lenni0451.commons.httpclient.proxy.ProxyType
 
SOURCEMAP - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Links generated code to a source map.
STATUS_CODES - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
A map of all status codes and their messages.
StatusCodes - Class in net.lenni0451.commons.httpclient.constants
 
StatusCodes() - Constructor for class net.lenni0451.commons.httpclient.constants.StatusCodes
 
STRICT_TRANSPORT_SECURITY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Force communication using HTTPS instead of HTTP.
string(String) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given string.
string(String, Charset) - Static method in class net.lenni0451.commons.httpclient.content.HttpContent
Create a new content from the given string.
StringContent - Class in net.lenni0451.commons.httpclient.content.impl
 
StringContent(String) - Constructor for class net.lenni0451.commons.httpclient.content.impl.StringContent
 
StringContent(String, Charset) - Constructor for class net.lenni0451.commons.httpclient.content.impl.StringContent
 
StringContent(ContentType, String) - Constructor for class net.lenni0451.commons.httpclient.content.impl.StringContent
 
StringContent(ContentType, String, Charset) - Constructor for class net.lenni0451.commons.httpclient.content.impl.StringContent
 
SUPPORTS_LOADING_MODE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Set by a navigation target to opt-in to using various higher-risk loading modes.
For example, cross-origin, same-site prerendering requires a Supports-Loading-Mode value of credentialed-prerender.
SWITCHING_PROTOCOLS - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This code is sent in response to an Upgrade request header from the client and indicates the protocol the server is switching to.

T

TE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Specifies the transfer encodings the user agent is willing to accept.
TEMPORARY_REDIRECT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server sends this response to direct the client to get the requested resource at another URI with the same method that was used in the prior request.
This has the same semantics as the 302 Found HTTP response code, with the exception that the user agent must not change the HTTP method used: if a POST was used in the first request, a POST must be used in the second request.
TEXT_HTML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
TEXT_PLAIN - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
TEXT_XML - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
throwing() - Static method in interface net.lenni0451.commons.httpclient.handler.HttpResponseHandler
 
ThrowingResponseHandler - Class in net.lenni0451.commons.httpclient.handler
 
ThrowingResponseHandler() - Constructor for class net.lenni0451.commons.httpclient.handler.ThrowingResponseHandler
 
TIMING_ALLOW_ORIGIN - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Specifies origins that are allowed to see values of attributes retrieved via features of the Resource Timing API, which would otherwise be reported as zero due to cross-origin restrictions.
toJavaProxy() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Create a Proxy object from this proxy.
The Proxy might not support all proxy types.
TOO_EARLY - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Indicates that the server is unwilling to risk processing a request that might be replayed.
TOO_MANY_REQUESTS - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The user has sent too many requests in a given amount of time ("rate limiting").
toString() - Method in class net.lenni0451.commons.httpclient.HttpClient
 
toString() - Method in class net.lenni0451.commons.httpclient.model.ContentType
 
toString() - Method in class net.lenni0451.commons.httpclient.model.HttpHeader
 
toString() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
toURI() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
toURL() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
 
TRACE - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
The TRACE method performs a message loop-back test along the path to the target resource.
TRAILER - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Allows the sender to include additional fields at the end of chunked message.
TRANSFER_ENCODING - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Specifies the form of encoding used to safely transfer the resource to the user.
transferTo(OutputStream) - Method in class net.lenni0451.commons.httpclient.content.HttpContent
Transfer the content to the given output stream.
The content stream will be closed after the transfer is complete.

U

UNAUTHORIZED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated".
That is, the client must authenticate itself to get the requested response.
UNAVAILABLE_FOR_LEGAL_REASONS - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The user agent requested a resource that cannot legally be provided, such as a web page censored by a government.
UNPROCESSABLE_CONTENT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The request was well-formed but was unable to be followed due to semantic errors.
unset() - Method in class net.lenni0451.commons.httpclient.utils.ResettableStorage
 
unsetCookieManager() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Unset the cookie manager.
unsetIgnoreInvalidSSL() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Unset the ignore invalid SSL flag.
unsetProxy() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
Unset the proxy.
unsetRetryHandler() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
Unset the retry handler.
UNSUPPORTED_MEDIA_TYPE - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The media format of the requested data is not supported by the server, so the server is rejecting the request.
UNUSED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
This response code is no longer used; it is just reserved.
updateCookies(CookieManager, URL, Map<String, List<String>>) - Method in class net.lenni0451.commons.httpclient.executor.RequestExecutor
 
UPGRADE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
This HTTP/1.1 (only) header can be used to upgrade an already established client/server connection to a different protocol (over the same transport protocol).
For example, it can be used by a client to upgrade a connection from HTTP 1.1 to HTTP 2.0, or an HTTP or HTTPS connection into a WebSocket.
UPGRADE_INSECURE_REQUESTS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Sends a signal to the server expressing the client's preference for an encrypted and authenticated response, and that it can successfully handle the upgrade-insecure-requests directive.
UPGRADE_REQUIRED - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server refuses to perform the request using the current protocol but might be willing to do so after the client upgrades to a different protocol.
The server sends an Upgrade header in a 426 response to indicate the required protocol(s).
URI_TOO_LONG - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The URI requested by the client is longer than the server is willing to interpret.
URL_CONNECTION - net.lenni0451.commons.httpclient.executor.ExecutorType
Use the default URLConnection executor.
This is the default executor for Java 10 and below.
URLCoder - Class in net.lenni0451.commons.httpclient.utils
 
URLCoder() - Constructor for class net.lenni0451.commons.httpclient.utils.URLCoder
 
URLConnectionExecutor - Class in net.lenni0451.commons.httpclient.executor
Executor that uses HttpURLConnection to execute requests.
This executor is available on all Java versions and is the default executor if no other executor is available.

Limitations: Only supports HTTP/1.1 Proxies are static and can't be used multithreaded
URLConnectionExecutor(HttpClient) - Constructor for class net.lenni0451.commons.httpclient.executor.URLConnectionExecutor
 
URLEncodedFormContent - Class in net.lenni0451.commons.httpclient.content.impl
 
URLEncodedFormContent() - Constructor for class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
URLEncodedFormContent(Charset) - Constructor for class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
URLEncodedFormContent(Map<String, String>) - Constructor for class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
URLEncodedFormContent(Map<String, String>, Charset) - Constructor for class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
 
URLWrapper - Class in net.lenni0451.commons.httpclient.utils
 
URLWrapper() - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper
 
URLWrapper(String) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper
Deprecated.
URLWrapper(URI) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper
 
URLWrapper(URL) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper
 
URLWrapper.Parameter - Class in net.lenni0451.commons.httpclient.utils
 
URLWrapper.QueryParametersWrapper - Class in net.lenni0451.commons.httpclient.utils
 
URLWrapper.QueryWrapper - Class in net.lenni0451.commons.httpclient.utils
Deprecated.
USE_PROXY - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
Defined in a previous version of the HTTP specification to indicate that a requested response must be accessed by a proxy.
It has been deprecated due to security concerns regarding in-band configuration of a proxy.
USER_AGENT - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Contains a characteristic string that allows the network protocol peers to identify the application type, operating system, software vendor or software version of the requesting software user agent.

V

valueOf(String) - Static method in enum net.lenni0451.commons.httpclient.executor.ExecutorType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.lenni0451.commons.httpclient.proxy.ProxyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum net.lenni0451.commons.httpclient.requests.HttpRequest.FollowRedirects
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.lenni0451.commons.httpclient.executor.ExecutorType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.lenni0451.commons.httpclient.proxy.ProxyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum net.lenni0451.commons.httpclient.requests.HttpRequest.FollowRedirects
Returns an array containing the constants of this enum type, in the order they are declared.
VARIANT_ALSO_NEGOTIATES - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
The server has an internal configuration error: the chosen variant resource is configured to engage in transparent content negotiation itself, and is therefore not a proper end point in the negotiation process.
VARY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Determines how to match request headers to decide whether a cached response can be used rather than requesting a fresh one from the origin server.
VIA - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers.

W

waitFor(long) - Static method in class net.lenni0451.commons.httpclient.retry.RetryAction
 
waitFor(long, TimeUnit) - Static method in class net.lenni0451.commons.httpclient.retry.RetryAction
 
WARNING - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
General warning information about possible problems.
WILDCARD - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
 
wrapQuery() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Deprecated.
wrapQueryParameters() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
Get a wrapper for the query parameters.
WWW_AUTHENTICATE - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Defines the authentication method that should be used to access a resource.

X

X_CONTENT_TYPE_OPTIONS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Disables MIME sniffing and forces browser to use the type given in HttpHeaders.CONTENT_TYPE.
X_DNS_PREFETCH_CONTROL - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Controls DNS prefetching, a feature by which browsers proactively perform domain name resolution on both links that the user may choose to follow as well as URLs for items referenced by the document, including images, CSS, JavaScript, and so forth.
X_FORWARDED_FOR - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Identifies the originating IP addresses of a client connecting to a web server through an HTTP proxy or a load balancer.
X_FORWARDED_HOST - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Identifies the original host requested that a client used to connect to your proxy or load balancer.
X_FORWARDED_PROTO - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Identifies the protocol (HTTP or HTTPS) that a client used to connect to your proxy or load balancer.
X_FRAME_OPTIONS - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Indicates whether a browser should be allowed to render a page in a frame, iframe, embed or object.
X_PERMITTED_CROSS_DOMAIN_POLICIES - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Specifies if a cross-domain policy file (crossdomain.xml) is allowed.
The file may define a policy to grant clients, such as Adobe's Flash Player (now obsolete), Adobe Acrobat, Microsoft Silverlight (now obsolete), or Apache Flex, permission to handle data across domains that would otherwise be restricted due to the Same-Origin Policy.
X_POWERED_BY - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
May be set by hosting environments or other frameworks and contains information about them while not providing any usefulness to the application or its visitors.
Unset this header to avoid exposing potential vulnerabilities.
X_ROBOTS_TAG - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
The X-Robots-Tag HTTP header is used to indicate how a web page is to be indexed within public search engine results.
The header is effectively equivalent to <meta name="robots" content="…">.
X_XSS_PROTECTION - Static variable in class net.lenni0451.commons.httpclient.constants.HttpHeaders
Enables cross-site scripting filtering.
A B C D E F G H I K L M N O P Q R S T U V W X 
All Classes All Packages