A B C D E F G H I J L M N P R U W 
All Classes All Packages

A

asByteArray() - Method in interface io.avaje.http.client.HttpClientResponse
Return the content as byte array.
asDiscarding() - Method in interface io.avaje.http.client.HttpClientResponse
Return the response discarding the response content.
asFile(Path) - Method in interface io.avaje.http.client.HttpClientResponse
Return the content into the given file.
asInputStream() - Method in interface io.avaje.http.client.HttpClientResponse
Return the content as InputStream.
asJson(byte[]) - Static method in class io.avaje.http.client.BodyContent
 
asLines() - Method in interface io.avaje.http.client.HttpClientResponse
Return the content as a stream of string lines.
asString() - Method in interface io.avaje.http.client.HttpClientResponse
Return the content as string.
asVoid() - Method in interface io.avaje.http.client.HttpClientResponse
Return the response with check for 200 range status code.

B

bean(Class<T>) - Method in interface io.avaje.http.client.HttpClientResponse
Return the response as a single bean.
bean(Class<T>) - Method in exception io.avaje.http.client.HttpException
Return the response body content as a bean
beanReader(Class<T>) - Method in interface io.avaje.http.client.BodyAdapter
 
beanReader(Class<T>) - Method in class io.avaje.http.client.JacksonBodyAdapter
 
beanWriter(Class<?>) - Method in interface io.avaje.http.client.BodyAdapter
 
beanWriter(Class<?>) - Method in class io.avaje.http.client.JacksonBodyAdapter
 
body(byte[]) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body content as a bytes.
body(BodyContent) - Method in interface io.avaje.http.client.HttpClientRequest
Set encoded body content.
body(Object) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body as a bean using the default content type.
body(Object, String) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body as a bean with the given content type using a BodyWriter.
body(String) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body content as a string.
body(HttpRequest.BodyPublisher) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body content using http BodyPublisher.
body(Path) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body content with supplied InputStream.
body(Supplier<? extends InputStream>) - Method in interface io.avaje.http.client.HttpClientRequest
Set the body content with supplied InputStream.
BodyAdapter - Interface in io.avaje.http.client
 
bodyAsBytes() - Method in exception io.avaje.http.client.HttpException
Return the response body content as raw bytes.
bodyAsString() - Method in exception io.avaje.http.client.HttpException
Return the response body content as a UTF8 string.
BodyContent - Class in io.avaje.http.client
 
BodyContent(String, byte[]) - Constructor for class io.avaje.http.client.BodyContent
 
BodyReader<T> - Interface in io.avaje.http.client
 
BodyWriter - Interface in io.avaje.http.client
Writes beans as content for a specific content type.
build() - Method in interface io.avaje.http.client.HttpClientContext.Builder
Build and return the context.
build() - Method in class io.avaje.http.client.UrlBuilder
 

C

checkResponse(HttpResponse<?>) - Method in interface io.avaje.http.client.HttpClientContext
Check the response status code and throw HttpException if the status code is in the error range.
content() - Method in class io.avaje.http.client.BodyContent
 
contentType() - Method in class io.avaje.http.client.BodyContent
 
converters() - Method in interface io.avaje.http.client.HttpClientContext
Return the body adapter used by the client context.

D

decodeContent(String, byte[]) - Method in interface io.avaje.http.client.HttpClientContext
Decode the body using the given encoding.
decodeContent(HttpResponse<byte[]>) - Method in interface io.avaje.http.client.HttpClientContext
Decode the response content given the Content-Encoding http header.
delete() - Method in interface io.avaje.http.client.HttpClientRequest
Execute the request as a DELETE.

E

enc(String) - Static method in class io.avaje.http.client.UrlBuilder
 

F

formParam(String, String) - Method in interface io.avaje.http.client.HttpClientRequest
Add a form parameter.

G

get() - Method in interface io.avaje.http.client.HttpClientRequest
Execute the request as a GET.
getHttpResponse() - Method in exception io.avaje.http.client.HttpException
Return the underlying HttpResponse.
getStatusCode() - Method in exception io.avaje.http.client.HttpException
Return the HTTP status code.
gzip(boolean) - Method in interface io.avaje.http.client.HttpClientRequest
Set if body content should be gzip encoded.

H

header(String, String) - Method in interface io.avaje.http.client.HttpClientRequest
Add the header to the request.
HttpApiProvider<T> - Interface in io.avaje.http.client
 
httpClient() - Method in interface io.avaje.http.client.HttpClientContext
Return the underlying http client.
HttpClientContext - Interface in io.avaje.http.client
The HTTP client context that we use to build and process requests.
HttpClientContext.Builder - Interface in io.avaje.http.client
Builds the HttpClientContext.
HttpClientRequest - Interface in io.avaje.http.client
Http request that is built and sent to the server.
HttpClientResponse - Interface in io.avaje.http.client
Controls how the response is processed including potential conversion into beans.
HttpException - Exception in io.avaje.http.client
 
HttpException(int, String) - Constructor for exception io.avaje.http.client.HttpException
 
HttpException(int, String, Throwable) - Constructor for exception io.avaje.http.client.HttpException
 
HttpException(int, Throwable) - Constructor for exception io.avaje.http.client.HttpException
 

I

io.avaje.http.client - package io.avaje.http.client
 

J

JacksonBodyAdapter - Class in io.avaje.http.client
Jackson BodyAdapter to read and write beans as JSON.
JacksonBodyAdapter(ObjectMapper) - Constructor for class io.avaje.http.client.JacksonBodyAdapter
 
JSON_UTF8 - Static variable in class io.avaje.http.client.BodyContent
 

L

list(Class<T>) - Method in interface io.avaje.http.client.HttpClientResponse
Return the response as a list of beans.
listReader(Class<T>) - Method in interface io.avaje.http.client.BodyAdapter
 
listReader(Class<T>) - Method in class io.avaje.http.client.JacksonBodyAdapter
 

M

matrixParam(String, String) - Method in interface io.avaje.http.client.HttpClientRequest
Add a matrix parameter to the current path segment.
matrixParam(String, String) - Method in class io.avaje.http.client.UrlBuilder
 

N

newBuilder() - Static method in interface io.avaje.http.client.HttpClientContext
Return the builder to config and build the client context.

P

param(String, String) - Method in interface io.avaje.http.client.HttpClientRequest
Add a query parameter
param(String, String) - Method in class io.avaje.http.client.UrlBuilder
 
path(String) - Method in interface io.avaje.http.client.HttpClientRequest
Add a path segment to the URL.
path(String) - Method in class io.avaje.http.client.UrlBuilder
 
post() - Method in interface io.avaje.http.client.HttpClientRequest
Execute the request as a POST.
provide(HttpClientContext) - Method in interface io.avaje.http.client.HttpApiProvider
 
put() - Method in interface io.avaje.http.client.HttpClientRequest
Execute the request as a PUT.

R

read(BodyContent) - Method in interface io.avaje.http.client.BodyReader
 
read(BodyReader<T>) - Method in interface io.avaje.http.client.HttpClientResponse
Returning the response using the given response reader.
readContent(HttpResponse<byte[]>) - Method in interface io.avaje.http.client.HttpClientContext
Return the response content taking into account content encoding.
request() - Method in interface io.avaje.http.client.HttpClientContext
Create a new request.
request() - Method in interface io.avaje.http.client.ResponseListener.Event
Return the related request.
requestBody() - Method in interface io.avaje.http.client.ResponseListener.Event
Return the related request body as string content if available.
RequestLogger - Class in io.avaje.http.client
 
RequestLogger() - Constructor for class io.avaje.http.client.RequestLogger
 
RequestLogger(String) - Constructor for class io.avaje.http.client.RequestLogger
 
requestTimeout(Duration) - Method in interface io.avaje.http.client.HttpClientRequest
Set the request timeout to use for this request.
response() - Method in interface io.avaje.http.client.ResponseListener.Event
Return the response.
response(ResponseListener.Event) - Method in class io.avaje.http.client.RequestLogger
 
response(ResponseListener.Event) - Method in interface io.avaje.http.client.ResponseListener
Handle the response.
responseBody() - Method in interface io.avaje.http.client.ResponseListener.Event
Return the response body as string content if applicable.
ResponseListener - Interface in io.avaje.http.client
Listen to responses.
ResponseListener.Event - Interface in io.avaje.http.client
The response event details.
responseTimeNanos() - Method in interface io.avaje.http.client.ResponseListener.Event
Return the time from request to response in nanos.

U

uri() - Method in interface io.avaje.http.client.ResponseListener.Event
Return the URI for the request.
url() - Method in interface io.avaje.http.client.HttpClientContext
Return a UrlBuilder to use to build an URL taking into account the base URL.
UrlBuilder - Class in io.avaje.http.client
 
UrlBuilder(String) - Constructor for class io.avaje.http.client.UrlBuilder
 

W

with(HttpClient) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Set the underlying HttpClient to use.
withBaseUrl(String) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Set the base URL to use for requests created from the context.
withBodyAdapter(BodyAdapter) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Set the body adapter to use to convert beans to body content and response content back to beans.
withCookieHandler(CookieHandler) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Specify a cookie handler to use on the HttpClient.
withRequestTimeout(Duration) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Set the default request timeout.
withResponseHandler(HttpResponse.BodyHandler<T>) - Method in interface io.avaje.http.client.HttpClientResponse
Return the response using the given response body handler.
withResponseListener(ResponseListener) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Add a response listener.
write(Object) - Method in interface io.avaje.http.client.BodyWriter
Write the bean as content using the default content type.
write(Object, String) - Method in interface io.avaje.http.client.BodyWriter
Write the bean as content with the requested content type.
A B C D E F G H I J L M N P R U W 
All Classes All Packages