A B C D E F G H I K L M N O P R S T U V W X
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ACCEPT - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
Servers can advertise support for Client Hints using the
Accept-CHheader field or an equivalent HTML<meta>element with http-equiv attribute. - ACCEPT_ENCODING - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
Indicates whether the response can be shared.
- ACCESS_CONTROL_EXPOSE_HEADERS - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
Used when issuing a preflight request to let the server know which HTTP method will be used when the actual request is made.
- addQueries(Map<String, String>) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
-
Add multiple query parameters.
- AGE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
The time, in seconds, that the object has been in a proxy cache.
- ALLOW - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
WebDAVresponse 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.Headers
-
Used to list alternate ways to reach this service.
- ALT_USED - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.QueryWrapper
-
Apply the changes to the URL.
- AUTHORIZATION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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. ifExecutorType.HTTP_CLIENTis available it will be used, otherwiseExecutorType.URL_CONNECTIONwill be used.
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).
- 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.Headers
-
Directives for caching mechanisms in both requests and responses.
- CLEAR_SITE_DATA - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Clears browsing data (e.g. cookies, storage, cache) associated with the requesting website.
- clearHeaders() - Method in class net.lenni0451.commons.httpclient.HeaderStore
-
Clear all headers.
- client - Variable in class net.lenni0451.commons.httpclient.executor.RequestExecutor
- compute() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
- 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.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
CONNECTmethod 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.Headers
-
Controls whether the network connection stays open after the current transaction finishes.
- content - Variable in class net.lenni0451.commons.httpclient.content.HttpContent
- CONTENT_DISPOSITION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
Used to specify the compression algorithm.
- CONTENT_LANGUAGE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
The size of the resource, in decimal number of bytes.
- CONTENT_LOCATION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Indicates an alternate location for the returned data.
- CONTENT_RANGE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Indicates where in a full body message a partial message belongs.
- CONTENT_SECURITY_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
Contains stored HTTP cookies previously sent by the server with the
Headers.SET_COOKIEheader. - 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.Headers
-
Servers use
Critical-CHalong withHeaders.ACCEPT_CHto specify that accepted client hints are also critical client hints. - CROSS_ORIGIN_EMBEDDER_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
Prevents other domains from opening/controlling a window.
- CROSS_ORIGIN_RESOURCE_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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 usesStandardCharsets.UTF_8as charset. - decode(String, Charset) - Static method in class net.lenni0451.commons.httpclient.utils.URLCoder
-
Decode a string from a URL.
- 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
DELETEmethod 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.Headers
-
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
-
Discard the changes to the URL.
- DOWNLINK - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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
Linkheader, 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.Headers
-
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 usesStandardCharsets.UTF_8as 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.Headers
-
A unique string identifying the version of the resource.
- 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. - ExecutorType - Enum in net.lenni0451.commons.httpclient.executor
- EXPECT - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
Expectrequest header field cannot be met by the server. - EXPIRES - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.
Unlike401 Unauthorized, the client's identity is known to the server. - 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.
- FORWARDED - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
ProxyTypefrom aProxy.Type.
If the type isProxy.Type.DIRECTan IllegalArgumentException will be thrown.
If the type isProxy.Type.SOCKSProxyType.SOCKS5will be returned. - FROM - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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(String) - Method in interface net.lenni0451.commons.httpclient.HttpRequestBuilder
-
Create a new GET request with the given url.
- 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
GETmethod requests a representation of the specified resource. - getAsBytes() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
- 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
- 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.HttpResponse
- getContent() - Method in class net.lenni0451.commons.httpclient.requests.HttpContentRequest
- getContentAsString() - Method in class net.lenni0451.commons.httpclient.HttpResponse
- getContentAsString(Charset) - Method in class net.lenni0451.commons.httpclient.HttpResponse
-
Get the response body as a string with the given charset.
- getContentLength() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
- getContentLength() - Method in class net.lenni0451.commons.httpclient.content.impl.ByteArrayContent
- getContentLength() - Method in class net.lenni0451.commons.httpclient.content.impl.FileContent
- getContentLength() - Method in class net.lenni0451.commons.httpclient.content.impl.URLEncodedFormContent
- getContentType() - Method in class net.lenni0451.commons.httpclient.content.HttpContent
- getContentType() - Method in class net.lenni0451.commons.httpclient.HttpResponse
- getCookieHeaders(CookieManager, URL) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Get the cookie headers for a URL.
- 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
- getFirstHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
-
Get the first header with the given name.
- getFollowRedirects() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
- 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
- getHost() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
- getHost() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
- getLastHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
-
Get the last header with the given name.
- getMaxConnectRetries() - Method in class net.lenni0451.commons.httpclient.RetryHandler
-
Get the maximum amount of connect retries.
A connect attempt is counted when the connection times out. - getMaxHeaderRetries() - Method in class net.lenni0451.commons.httpclient.RetryHandler
-
Get the maximum amount of header retries.
A header retry is counted when theHeaders.RETRY_AFTERheader is present. - 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
- getPort() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
- getPort() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
- getProtocol() - 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
- getQuery() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
- getQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
-
Get a query parameter by its key.
- getReadTimeout() - Method in class net.lenni0451.commons.httpclient.HttpClient
- getReference() - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
- 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
- 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
- getUsername() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
- getValue() - Method in class net.lenni0451.commons.httpclient.model.HttpHeader
- 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
- 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.
- hasQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
-
Check if a query parameter exists.
- 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
HEADmethod asks for a response identical to aRequestMethods.GETrequest, but without the response body. - Headers - Class in net.lenni0451.commons.httpclient.constants
- Headers() - Constructor for class net.lenni0451.commons.httpclient.constants.Headers
- 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.Headers
-
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
- 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.
Sadly the only supported proxy type is HTTP, SOCKS is not supported. - 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
- 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
- HttpRequestUtils - Class in net.lenni0451.commons.httpclient.utils
- HttpRequestUtils() - Constructor for class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
- HttpResponse - Class in net.lenni0451.commons.httpclient
- HttpResponse(URL, int, byte[], Map<String, List<String>>) - Constructor for class net.lenni0451.commons.httpclient.HttpResponse
- 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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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
- 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
GETrequest 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
- 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
- isProxySet() - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
- isRetryHandlerSet() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
K
- KEEP_ALIVE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Controls how long a persistent connection should stay open.
L
- LAST_MODIFIED - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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-Lengthheader field is not defined and the server requires it. - LINK - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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
- MAX_FORWARDS - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.
- mergeHeaders(Map<String, List<String>>...) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Merge multiple headers into one map.
- 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 callingDELETEto 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. - 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.
- MULTIPART_FORM_DATA - Static variable in class net.lenni0451.commons.httpclient.constants.ContentTypes
- 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.Headers
-
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.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.utils - package net.lenni0451.commons.httpclient.utils
- 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. - 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, the200 OKresponse 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 of403 Forbiddento 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
-
Create a new URLWrapper from a
String. - 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. - 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
OPTIONSmethod describes the communication options for the target resource. - ORIGIN - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Indicates where a fetch originates from.
- ORIGIN_ISOLATION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Provides a mechanism to allow web applications to isolate their origins.
P
- parse(String) - Static method in class net.lenni0451.commons.httpclient.model.ContentType
-
Parse a content type string.
- parseHttpDate(String) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Parse a HTTP date.
- parseSecondsOrHttpDate(String) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Parse an HTTP date or seconds string as milliseconds until the date.
- PARTIAL_CONTENT - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
-
This response code is used when the
Rangeheader is sent from the client to request only part of a resource. - PATCH - Static variable in class net.lenni0451.commons.httpclient.constants.RequestMethods
-
The
PATCHmethod 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 anRetry-Afterheader 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 the301 Moved PermanentlyHTTP response code, with the exception that the user agent must not change the HTTP method used: if aPOSTwas used in the first request, aPOSTmust be used in the second request. - PERMISSIONS_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
POSTmethod 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.Headers
-
Implementation-specific header that may have various effects anywhere along the request-response chain.
Used for backwards compatibility with HTTP/1.0 caches where theCache-Controlheader 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 thelost updateproblem, where a clientGETs a resource's state, modifies it andPUTs 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.Headers
-
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 Unauthorizedbut authentication is needed to be done by a proxy. - PROXY_AUTHORIZATION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
- ProxyType - Enum in net.lenni0451.commons.httpclient.proxy
- PUSH_POLICY - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
PUTmethod 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
R
- RANGE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
Rangeheader field in the request cannot be fulfilled.
It's possible that the range is outside the size of the target URI's data. - readBody(HttpURLConnection) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Read the body of a connection.
- readFromStream(InputStream) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Read the body of a connection.
- REFERER - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
Governs which referrer information sent in the
Headers.REFERERheader should be included with requests made. - REFRESH - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Directs the browser to reload the page or redirect to another.
- removeHeader(String) - Method in class net.lenni0451.commons.httpclient.HeaderStore
-
Remove a header.
- removeQuery(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper.QueryWrapper
-
Remove a query parameter.
- REPORT_TO - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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() - 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.
- RETRY_AFTER - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Indicates how long the user agent should wait before making a follow-up request.
- 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 - Class in net.lenni0451.commons.httpclient
- RetryHandler() - Constructor for class net.lenni0451.commons.httpclient.RetryHandler
- RetryHandler(int, int) - Constructor for class net.lenni0451.commons.httpclient.RetryHandler
- RTT - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
A string
onthat indicates the user agent's preference for reduced data usage. - SEC_CH_UA - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
User agent's branding and version.
- SEC_CH_UA_ARCH - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
User agent's underlying platform architecture.
- SEC_CH_UA_BITNESS - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
User agent's device model.
- SEC_CH_UA_PLATFORM - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
User agent's underlying operation system/platform.
- SEC_CH_UA_PLATFORM_VERSION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
User agent's underlying operation system version.
- SEC_CH_UA_PREFERS_COLOR_SCHEME - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
User's preference of dark or light color scheme.
- SEC_CH_UA_PREFERS_REDUCED_MOTION - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
User's preference to see fewer animations and content layout shifts.
- SEC_FETCH_DEST - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Indicates the request's destination.
- SEC_FETCH_MODE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Indicates the request's mode to a server.
- SEC_FETCH_SITE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
Indicates whether or not a navigation request was triggered by user activation.
- SEC_GPC - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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 theRetry-AfterHTTP 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.Headers
-
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.Headers
-
A request header sent in preemptive request to
fetch()a resource during service worker boot.
The value, which is set withNavigationPreloadManager.setHeaderValue()", can be used to inform a server that a different resource should be returned than in a normalfetch()operation. - set() - 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_COOKIE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Send cookies from the server to the user-agent.
- 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.
- 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(HttpURLConnection, Map<String, List<String>>) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Set the headers for a connection.
- setHost(String) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
-
Set the proxy host.
- setHost(String) - Method in class net.lenni0451.commons.httpclient.utils.URLWrapper
-
Set the host of the URL.
e.g. - setMaxConnectRetries(int) - Method in class net.lenni0451.commons.httpclient.RetryHandler
-
Set the maximum amount of connect retries.
- setMaxHeaderRetries(int) - Method in class net.lenni0451.commons.httpclient.RetryHandler
-
Set the maximum amount of header retries.
- 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 file of the URL.
e.g. - setPort(int) - Method in class net.lenni0451.commons.httpclient.proxy.ProxyHandler
-
Set the proxy port.
- 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.
- 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
-
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
-
Set the reference of the URL.
e.g. - setRetryHandler(RetryHandler) - Method in class net.lenni0451.commons.httpclient.HttpClient
-
Set the retry handler for all requests.
- setRetryHandler(RetryHandler) - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
-
Set the retry handler to use for this request.
- 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.
- SIGNATURE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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
- SOCKS4 - net.lenni0451.commons.httpclient.proxy.ProxyType
- SOCKS5 - net.lenni0451.commons.httpclient.proxy.ProxyType
- SOURCEMAP - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
Set by a navigation target to opt-in to using various higher-risk loading modes.
For example, cross-origin, same-site prerendering requires aSupports-Loading-Modevalue ofcredentialed-prerender. - SWITCHING_PROTOCOLS - Static variable in class net.lenni0451.commons.httpclient.constants.StatusCodes
-
This code is sent in response to an
Upgraderequest header from the client and indicates the protocol the server is switching to.
T
- TE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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 the302 FoundHTTP response code, with the exception that the user agent must not change the HTTP method used: if aPOSTwas used in the first request, aPOSTmust 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
- 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.Headers
-
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
Proxyobject from this proxy.
TheProxymight 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.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
TRACEmethod performs a message loop-back test along the path to the target resource. - TRAILER - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Allows the sender to include additional fields at the end of chunked message.
- TRANSFER_ENCODING - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
Specifies the form of encoding used to safely transfer the resource to the user.
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.
- unsetCookieManager() - Method in class net.lenni0451.commons.httpclient.requests.HttpRequest
-
Unset the cookie manager.
- 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>>) - Static method in class net.lenni0451.commons.httpclient.utils.HttpRequestUtils
-
Update the cookies for a URL.
- UPGRADE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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-requestsdirective. - 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 anUpgradeheader 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
- 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
- URLWrapper(URI) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper
- URLWrapper(URL) - Constructor for class net.lenni0451.commons.httpclient.utils.URLWrapper
- URLWrapper.QueryWrapper - Class in net.lenni0451.commons.httpclient.utils
- 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.Headers
-
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.Headers
-
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.Headers
-
Added by proxies, both forward and reverse proxies, and can appear in the request headers and the response headers.
W
- WARNING - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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
-
Get a wrapper for the query parameters.
- WWW_AUTHENTICATE - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
Disables MIME sniffing and forces browser to use the type given in
Headers.CONTENT_TYPE. - X_DNS_PREFETCH_CONTROL - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
Indicates whether a browser should be allowed to render a page in a
frame,iframe,embedorobject. - X_PERMITTED_CROSS_DOMAIN_POLICIES - Static variable in class net.lenni0451.commons.httpclient.constants.Headers
-
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.Headers
-
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.Headers
-
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.Headers
-
Enables cross-site scripting filtering.
All Classes All Packages