Index

A B C D E F G H I J L M N P Q R T U W 
All Classes|All Packages|Constant Field Values|Serialized Form

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
Create and return as JSON body content given raw content.
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
Return a BodyReader to read response content and convert to a bean.
beanReader(Class<T>) - Method in class io.avaje.http.client.JacksonBodyAdapter
 
beanWriter(Class<?>) - Method in interface io.avaje.http.client.BodyAdapter
Return a BodyWriter to write beans of this type as request content.
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
Adaptor between beans and content of a request or response.
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
Content of request or response body used for adapting to beans.
BodyContent(String, byte[]) - Constructor for class io.avaje.http.client.BodyContent
Create with content type and content.
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
Return the raw content.
contentType() - Method in class io.avaje.http.client.BodyContent
Return the content type.
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.
HttpApi - Interface in io.avaje.http.client
Provides Http client service implementations for a given interface type.
HttpApiProvider<T> - Interface in io.avaje.http.client
Provides http client implementations for an interface.
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
HTTP Exception with support for converting the error response body into a bean.
HttpException(int, String) - Constructor for exception io.avaje.http.client.HttpException
Create with status code and message.
HttpException(int, String, Throwable) - Constructor for exception io.avaje.http.client.HttpException
Create with status code, message and throwable.
HttpException(int, Throwable) - Constructor for exception io.avaje.http.client.HttpException
Create with status code and throwable.

I

io.avaje.http.client - module io.avaje.http.client
 
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
Return a BodyReader to read response content and convert to a list of beans.
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

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
Return the provided implementation of the API.
provide(Class<T>, HttpClientContext) - Static method in interface io.avaje.http.client.HttpApi
Provide the http client implementation for the given interface type.
put() - Method in interface io.avaje.http.client.HttpClientRequest
Execute the request as a PUT.

Q

queryParam(String, String) - Method in interface io.avaje.http.client.HttpClientRequest
Add a query parameter
queryParam(String, String) - Method in class io.avaje.http.client.UrlBuilder
 

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
Logs request and response details for debug logging purposes.
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.

T

type() - Method in interface io.avaje.http.client.HttpApiProvider
Return the interface type this API implements.

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.
withExecutor(Executor) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Specify the Executor to use for asynchronous tasks.
withRedirect(HttpClient.Redirect) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Specify the redirect policy.
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.
withVersion(HttpClient.Version) - Method in interface io.avaje.http.client.HttpClientContext.Builder
Specify the HTTP version.
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 Q R T U W 
All Classes|All Packages|Constant Field Values|Serialized Form