| Package | Description |
|---|---|
| org.everit.http.client | |
| org.everit.http.client.async |
| Modifier and Type | Class and Description |
|---|---|
class |
FormUrlencodedAsyncContentProvider
Helper class to send HTTP requests with application/x-www-form-urlencoded content type.
|
class |
MultiPartAsyncContentProvider
Helper class to send HTTP requests with multipart/form-data content type.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncContentProvider |
HttpResponse.getBody()
The body of the HTTP response.
|
AsyncContentProvider |
Part.getContent() |
| Modifier and Type | Method and Description |
|---|---|
Optional<AsyncContentProvider> |
HttpRequest.getBody()
Optional body of the http request.
|
| Modifier and Type | Method and Description |
|---|---|
HttpResponse.Builder |
HttpResponse.Builder.body(AsyncContentProvider body)
The body of the HTTP response.
|
static Part |
Part.createFieldPart(String name,
AsyncContentProvider value)
Creates a simple text/plain field that can be part of the multipart request.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest.Builder |
HttpRequest.Builder.body(Optional<AsyncContentProvider> body)
Optional body of the http request.
|
| Constructor and Description |
|---|
Part(String name,
Optional<String> fileName,
Optional<String> contentType,
AsyncContentProvider content,
Map<String,String> fields)
Constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAsyncContentProvider
Helper class that makes it easier to implement Async content providers by having the complete and
error handling functionality.
|
class |
AutoCloseAsyncContentProvider
A wrapper around another
AsyncContentProviders that closes the provider instance and the
optionally specified additional Closeable objects when the reading from the provider is
completed. |
class |
ByteArrayAsyncContentProvider
Implementation of
AsyncContentProvider that wraps a byte array and provides it as one
chunk. |
class |
ConcatenatedAsyncContentProvider
An
AsyncContentProvider implementation that concatenates multiple
AsyncContentProvider instances. |
class |
InputStreamAsyncContentProvider
Implementation of
AsyncContentProvider that gets the reads from an InputStream. |
class |
ReadableByteChannelAsyncContentProvider
Implementation of
AsyncContentProvider that gets the reads from a
ReadableByteChannel. |
| Modifier and Type | Method and Description |
|---|---|
AsyncContentProvider |
AbstractAsyncContentProvider.onContent(AsyncContentListener listener) |
AsyncContentProvider |
AsyncContentProvider.onContent(AsyncContentListener listener)
Registering a listener that will be notified if new content is available.
|
AsyncContentProvider |
AutoCloseAsyncContentProvider.onContent(AsyncContentListener listener) |
AsyncContentProvider |
AbstractAsyncContentProvider.onError(Consumer<Throwable> action) |
AsyncContentProvider |
AsyncContentProvider.onError(Consumer<Throwable> action)
Registering a listener that is called if there is an error delivering the data or processing of
the data is failed either via
AsyncCallback.failed(Throwable) call or via an error
during calling the registered listener of onContent(AsyncContentListener) or
onSuccess(Runnable) functions. |
AsyncContentProvider |
AutoCloseAsyncContentProvider.onError(Consumer<Throwable> action) |
AsyncContentProvider |
AbstractAsyncContentProvider.onSuccess(Runnable action) |
AsyncContentProvider |
AsyncContentProvider.onSuccess(Runnable action)
Registering an action that will be called when all of the chunks are delivered.
|
AsyncContentProvider |
AutoCloseAsyncContentProvider.onSuccess(Runnable action) |
| Modifier and Type | Method and Description |
|---|---|
static io.reactivex.Single<byte[]> |
AsyncContentUtil.readAllBytes(AsyncContentProvider asyncContentProvider)
Reads all chunks from an
AsyncContentProvider and returns the result as one byte array. |
static io.reactivex.Single<String> |
AsyncContentUtil.readString(AsyncContentProvider asyncContentProvider,
Charset charset)
Reads all chunks from a provider and converts them to string.
|
| Constructor and Description |
|---|
AutoCloseAsyncContentProvider(AsyncContentProvider wrapped,
Closeable... additionalCloseables)
Constructor.
|
ConcatenatedAsyncContentProvider(Optional<MediaType> contentType,
AsyncContentProvider... contentProviders)
Constructor.
|
Copyright © 2011–2019 Everit Kft.. All rights reserved.