public final class MimeTransfer extends Object
| Modifier and Type | Method and Description |
|---|---|
static net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> |
createTransfer(MimeHeaders headers,
long bodySize,
Supplier<List<MimeHeader>> trailerSupplier,
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
Create a transfer for the given headers and body size.
|
static net.lecousin.framework.concurrent.async.IAsync<IOException> |
transfer(MimeEntity entity,
Supplier<List<MimeHeader>> trailerSupplier,
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
Transfer a MIME entity to the sender.
|
static net.lecousin.framework.concurrent.async.IAsync<IOException> |
transfer(MimeHeaders headers,
net.lecousin.framework.io.IO.Readable body,
Supplier<List<MimeHeader>> trailerSupplier,
net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
Transfer headers and given body (may be null) to the sender.
|
public static net.lecousin.framework.concurrent.async.IAsync<IOException> transfer(MimeHeaders headers, net.lecousin.framework.io.IO.Readable body, Supplier<List<MimeHeader>> trailerSupplier, net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
public static net.lecousin.framework.concurrent.async.IAsync<IOException> transfer(MimeEntity entity, Supplier<List<MimeHeader>> trailerSupplier, net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
public static net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> createTransfer(MimeHeaders headers, long bodySize, Supplier<List<MimeHeader>> trailerSupplier, net.lecousin.framework.concurrent.util.AsyncConsumer<ByteBuffer,IOException> sender)
Copyright © 2020. All rights reserved.