Index
All Classes|All Packages
B
- build() - Method in class com.intellectualsites.http.HttpClient.Builder
-
Create a new
HttpClientusing the settings specified in the builder
C
- com.intellectualsites.http - package com.intellectualsites.http
-
All HTTP4J objects that do not depend on external libraries
- com.intellectualsites.http.external - package com.intellectualsites.http.external
-
Support for external libraries
- ContentType - Class in com.intellectualsites.http
-
Wrapper for Content-Type header values
D
- delete(String) - Method in class com.intellectualsites.http.HttpClient
-
Initialise a request builder for a DELETE request
- deserialize(ContentType, @org.jetbrains.annotations.NotNull byte[]) - Method in interface com.intellectualsites.http.EntityMapper.EntityDeserializer
-
Deserialize the input byte array into an object.
- deserializer(Class<T>, Gson) - Static method in class com.intellectualsites.http.external.GsonMapper
-
Create a new deserializer
- DUMMY - Static variable in class com.intellectualsites.http.ContentType
E
- EntityMapper - Class in com.intellectualsites.http
-
Utility responsible for serializing and de-serializing HTTP entities
- EntityMapper() - Constructor for class com.intellectualsites.http.EntityMapper
- EntityMapper.EntityDeserializer<T> - Interface in com.intellectualsites.http
-
Deserializer for HTTP response bodies
- EntityMapper.EntitySerializer<T> - Interface in com.intellectualsites.http
-
Serializer for HTTP request bodies
- equals(Object) - Method in class com.intellectualsites.http.ContentType
- execute() - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Perform the request
G
- get(String) - Method in class com.intellectualsites.http.HttpClient
-
Initialise a request builder for a GET request
- getContentType() - Method in interface com.intellectualsites.http.EntityMapper.EntitySerializer
-
Get the content type of the object
- getDeserializer(Class<T>) - Method in class com.intellectualsites.http.EntityMapper
-
Attempt to retrieve the deserializer for a given content type
- getHeaders() - Method in class com.intellectualsites.http.HttpResponse
-
Get the response headers
- getMapper() - Method in class com.intellectualsites.http.HttpClient
-
Get the entity mapper used by the client
- getRawResponse() - Method in class com.intellectualsites.http.HttpResponse
-
Get the raw response body
- getResponseEntity(Class<T>) - Method in class com.intellectualsites.http.HttpResponse
-
Get the response entity and map it to a specific type
- getSerializer(Class<T>) - Method in class com.intellectualsites.http.EntityMapper
-
Attempt to retrieve the serializer for a given type
- getStatus() - Method in class com.intellectualsites.http.HttpResponse
-
Get the HTTP status message
- getStatusCode() - Method in class com.intellectualsites.http.HttpResponse
-
Get the HTTP status code
- GsonMapper - Class in com.intellectualsites.http.external
- GsonMapper() - Constructor for class com.intellectualsites.http.external.GsonMapper
H
- hashCode() - Method in class com.intellectualsites.http.ContentType
- head(String) - Method in class com.intellectualsites.http.HttpClient
-
Initialise a request builder for a HEAD request
- HttpClient - Class in com.intellectualsites.http
-
A simple Java HTTP client
- HttpClient.Builder - Class in com.intellectualsites.http
-
Builder for
HttpClient. - HttpClient.WrappedRequestBuilder - Class in com.intellectualsites.http
-
Wrapper used to interact with HTTP requests.
- HttpResponse - Class in com.intellectualsites.http
-
A HTTP response
J
- JSON - Static variable in class com.intellectualsites.http.ContentType
N
- newBuilder() - Static method in class com.intellectualsites.http.HttpClient
-
Create a new
HttpClient.Builder - newInstance() - Static method in class com.intellectualsites.http.EntityMapper
-
Create a new entity mapper instance
O
- of(String) - Static method in class com.intellectualsites.http.ContentType
-
Get the MIME type instance corresponding to the IANA template name
- onException(Consumer<Throwable>) - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Add an exception consumer
- onRemaining(Consumer<HttpResponse>) - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Add a consumer that acts on all remaining status code
- onStatus(int, Consumer<HttpResponse>) - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Add a consumer that acts on a specific status code
P
- patch(String) - Method in class com.intellectualsites.http.HttpClient
-
Initialise a request builder for a PATCH request
- post(String) - Method in class com.intellectualsites.http.HttpClient
-
Initialise a request builder for a POST request
- put(String) - Method in class com.intellectualsites.http.HttpClient
-
Initialise a request builder for a PUT request
R
- registerDeserializer(Class<T>, EntityMapper.EntityDeserializer<T>) - Method in class com.intellectualsites.http.EntityMapper
-
Register a deserializer that maps objects of a certain content type to Java objects
- registerSerializer(Class<T>, EntityMapper.EntitySerializer<T>) - Method in class com.intellectualsites.http.EntityMapper
-
Register a serializer that maps a given type to an array of bytes
S
- serialize(T) - Method in interface com.intellectualsites.http.EntityMapper.EntitySerializer
-
Serialize the input into a byte array, which can then be written to the HTTP request
- serializer(Class<T>, Gson) - Static method in class com.intellectualsites.http.external.GsonMapper
-
Create a new serializer
- STRING_UTF8 - Static variable in class com.intellectualsites.http.ContentType
T
- toString() - Method in class com.intellectualsites.http.ContentType
W
- withBaseURL(String) - Method in class com.intellectualsites.http.HttpClient.Builder
-
Set the base URL.
- withDecorator(Consumer<HttpClient.WrappedRequestBuilder>) - Method in class com.intellectualsites.http.HttpClient.Builder
-
Add a new request decorator.
- withEntityMapper(EntityMapper) - Method in class com.intellectualsites.http.HttpClient.Builder
-
Set the default entity mapper that is used by all requests, unless otherwise specified
- withHeader(String, String) - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Add a header to the request
- withInput(Supplier<Object>) - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Specify an input supplier which will be used to write to the connection, if it established correctly.
- withMapper(EntityMapper) - Method in class com.intellectualsites.http.HttpClient.WrappedRequestBuilder
-
Specify the entity mapper used by the request
X
- XML - Static variable in class com.intellectualsites.http.ContentType
All Classes|All Packages